powerman / perl-mojolicious-plugin-jsonrpc2 Goto Github PK
View Code? Open in Web Editor NEWPerl module: Mojolicious::Plugin::JSONRPC2 - JSON RPC 2.0 over HTTP
Home Page: https://metacpan.org/release/Mojolicious-Plugin-JSONRPC2
License: Other
Perl module: Mojolicious::Plugin::JSONRPC2 - JSON RPC 2.0 over HTTP
Home Page: https://metacpan.org/release/Mojolicious-Plugin-JSONRPC2
License: Other
As of Mojolicious 9.0 the ->over method is now ->requires https://github.com/mojolicious/mojo/blob/bd3a50d4f2c53ce5be06706cfdf05d0771a1bf78/Changes#L80
I see that you're providing a condition so your module itself looks ok but the tests and documentation need fixes
On some of my smokers the test suite fails:
Can't locate object method "requires" via package "Mojolicious::Routes::Route" at t/basic.t line 24.
t/basic.t .................
Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
This seems to happen if older Mojolicious versions are installed. Statistical analysis:
****************************************************************
Regression 'mod:Mojolicious'
****************************************************************
Name Theta StdErr T-stat
[0='const'] 0.0000 0.0000 0.42
[1='eq_7.18'] 0.0000 0.0000 0.21
[2='eq_7.55'] -0.0000 0.0000 -1.06
[3='eq_8.09'] -0.0000 0.0000 -2.33
[4='eq_8.12'] -0.0000 0.0000 -1.61
[5='eq_8.17'] 0.0000 0.0000 2.96
[6='eq_8.40'] 0.0000 0.0000 0.21
[7='eq_8.41'] 0.0000 0.0000 1.07
[8='eq_8.43'] 0.0000 0.0000 0.85
[9='eq_8.58'] -0.0000 0.0000 -1.27
[10='eq_8.67'] 1.0000 0.0000 6600543558787867.00
[11='eq_8.71'] 1.0000 0.0000 4820355465258053.00
[12='eq_8.72'] 1.0000 0.0000 6916535763280344.00
[13='eq_8.73'] 1.0000 0.0000 6957583813641054.00
[14='eq_9.0'] 1.0000 0.0000 7149742581742021.00
R^2= 1.000, N= 76, K= 15
****************************************************************
So the missing method was introduced at some point between 8.58 and 8.67.
The test suite started to fail on my smoker systems:
# Failed test '200 OK'
# at t/basic.t line 104.
# got: '404'
# expected: '200'
# Failed test 'exact match for content'
# at t/basic.t line 104.
# got: '<!DOCTYPE html>
# <!-- Request ID: v7aHzzaj0LwC -->
# <html>
# <head>
# <title>Page Not Found (development mode)</title>
# <meta http-equiv="Pragma" content="no-cache">
# <meta http-equiv="Expires" content="-1">
...
# </div>
# </footer>
# </body>
# </html>
# '
# expected: 'Only Full API'
# Looks like you failed 4 tests of 57.
t/basic.t .................
Dubious, test returned 4 (wstat 1024, 0x400)
Failed 4/57 subtests
Possibly this happens with newer Mojolicious versions, 9.11 and up.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.