byterock / mojolicious-plugin-routes-restful

A Mojo Plugin for Restrul route creation
0 stars 0 forks source link

Can't locate object method "route" via package "Mojolicious::Routes" #11

Open eserte opened 3 years ago

eserte commented 3 years ago

The test suite started to fail, probably due to changes in Mojolicious 9.x:

Can't locate object method "route" via package "Mojolicious::Routes" at /home/cpansand/.cpan/build/2021030712/Mojolicious-Plugin-Routes-Restful-0.03-2/blib/lib/Mojolicious/Plugin/Routes/Restful.pm line 124.
# Tests were run but no plan was declared and done_testing() was not seen.
# Looks like your test exited with 255 just after 1.
t/10-basic-routes.t ..... 
Dubious, test returned 255 (wstat 65280, 0xff00)
All 1 subtests passed 
... (etc) ...
byterock commented 1 year ago

Opps been a while since I have played with this.

I am in the process of fixing this now. Seem that '->route' sub had been deprecated. and removed in 9.

Will have a fix on CPAN in the next day or so

eserte commented 1 year ago

With 0.04 I see a variation on some systems (possibly now with older Mojolicious):

Can't locate object method "methods" via package "Mojolicious::Routes::Route" at /home/cpansand/.cpan/build/2023020216/Mojolicious-Plugin-Routes-Restful-0.04-7AyKEV/blib/lib/Mojolicious/Plugin/Routes/Restful.pm line 124.