forwardever / mojox-scaffold Goto Github PK
View Code? Open in Web Editor NEWresourceful routes for mojolicious
resourceful routes for mojolicious
Log:
--> Working on .
Entering /home/matthew/workspace/Conifer/paperwall-copy/forwardever-mojox-scaffold-79804ab
Configuring /home/matthew/workspace/Conifer/paperwall-copy/forwardever-mojox-scaffold-79804ab
Running Build.PL
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Mojolicious-Plugin-ResourcefulRoutes' version '0.04'
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have Test::More 0 ... Yes (0.98)
Checking if you have Mojolicious 0.999929 ... Yes (2.37)
Building and testing Mojolicious-Plugin-ResourcefulRoutes-0.04
Building Mojolicious-Plugin-ResourcefulRoutes
Can't locate object method "new" via package "app" at /home/matthew/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/Mojo/Server.pm line 13.
t/resources.t ..
Dubious, test returned 2 (wstat 512, 0x200)
Failed 185/185 subtests
Test Summary Report
t/resources.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: Bad plan. You planned 185 tests but ran 0.
Files=1, Tests=0, 0 wallclock secs ( 0.03 usr 0.01 sys + 0.20 cusr 0.01 csys = 0.25 CPU)
Result: FAIL
Failed 1/1 test programs. 0/0 subtests failed.
-> FAIL Installing . failed. See /home/matthew/.cpanm/build.log for details.
It seems that the signature for Test::Mojo->new is that it takes the class or app object as its only parameter, so:
Test::Mojo->new('Test') # OK
Test::Mojo->new(app => 'Test') # WRONG
Cheers,
-R
I am new at this, let me know if you need more info.
Mac OSX Snow Leopard 10.6.5
macports installed perl 5.12
This is perl 5, version 12, subversion 2 (v5.12.2) built for darwin-thread-multi-2level
$ sudo cpanm -v .
You have make /usr/bin/make
You have LWP 5.837
You have /usr/bin/tar: bsdtar 2.6.2 - libarchive 2.6.2
You have /usr/bin/unzip
--> Working on .
Entering /Users/fleveillee/Downloads/forwardever-mojox-scaffold-b0c1cd2
Configuring /Users/fleveillee/Downloads/forwardever-mojox-scaffold-b0c1cd2 ... Running Build.PL
WARNING: the following files are missing in your kit:
MYMETA.yml
Please inform the author.
Creating new 'MYMETA.yml' with configuration results
Creating new 'Build' script for 'Mojolicious-Plugin-ResourcefulRoutes' version '0.04'
OK
Checking dependencies from MYMETA.yml ...
Finding PREREQ from Makefile ...
Checking if you have Mojolicious 0.999929 ... Yes (0.999950)
Checking if you have Test::More 0 ... Yes (0.96)
Checking if you have Mojolicious 0.999931 ... Yes (0.999950)
Building and testing Mojolicious-Plugin-ResourcefulRoutes-0.04 ... Building Mojolicious-Plugin-ResourcefulRoutes
t/resources.t .. 1/125
Failed test '200 OK'
at t/resources.t line 47.
got: '404'
expected: '200'
Failed test 'exact match for content'
at t/resources.t line 47.
got: '<!doctype html>
<title>Not Found</title>
<style type="text/css">
body {
font: 0.9em Verdana, "Bitstream Vera Sans", sans-serif;
}
</style>
expected: 'Template for displaying a form that allows to delete an existing resource item! Route name: users_delete_form'
Use of uninitialized value in lc at /Users/fleveillee/Downloads/forwardever-mojox-scaffold-b0c1cd2/blib/lib/Mojolicious/Plugin/ResourcefulRoutes.pm line 20.
Use of uninitialized value in lc at /Users/fleveillee/Downloads/forwardever-mojox-scaffold-b0c1cd2/blib/lib/Mojolicious/Plugin/ResourcefulRoutes.pm line 23.
t/resources.t .. 59/125
Failed test '200 OK'
at t/resources.t line 115.
got: '404'
expected: '200'
Failed test 'exact match for content'
at t/resources.t line 115.
got: '<!doctype html>
<title>Not Found</title>
<style type="text/css">
body {
font: 0.9em Verdana, "Bitstream Vera Sans", sans-serif;
}
</style>
expected: 'Template for displaying a form that allows to delete an existing resource item! Route name: admin-users_delete_form'
Use of uninitialized value in lc at /Users/fleveillee/Downloads/forwardever-mojox-scaffold-b0c1cd2/blib/lib/Mojolicious/Plugin/ResourcefulRoutes.pm line 20.
Use of uninitialized value in lc at /Users/fleveillee/Downloads/forwardever-mojox-scaffold-b0c1cd2/blib/lib/Mojolicious/Plugin/ResourcefulRoutes.pm line 23.
Failed test '200 OK'
at t/resources.t line 161.
got: '404'
expected: '200'
Failed test 'exact match for content'
at t/resources.t line 161.
got: '<!doctype html>
<title>Not Found</title>
<style type="text/css">
body {
font: 0.9em Verdana, "Bitstream Vera Sans", sans-serif;
}
</style>
Failed test '200 OK'
at t/resources.t line 167.
got: '404'
expected: '200'
Failed test 'exact match for content'
at t/resources.t line 167.
got: '<!doctype html>
<title>Not Found</title>
<style type="text/css">
body {
font: 0.9em Verdana, "Bitstream Vera Sans", sans-serif;
}
</style>
Failed test '200 OK'
at t/resources.t line 173.
got: '404'
expected: '200'
Failed test 'exact match for content'
at t/resources.t line 173.
got: '<!doctype html>
<title>Not Found</title>
<style type="text/css">
body {
font: 0.9em Verdana, "Bitstream Vera Sans", sans-serif;
}
</style>
Failed test '200 OK'
at t/resources.t line 179.
got: '404'
expected: '200'
Failed test 'exact match for content'
at t/resources.t line 179.
got: '<!doctype html>
<title>Not Found</title>
<style type="text/css">
body {
font: 0.9em Verdana, "Bitstream Vera Sans", sans-serif;
}
</style>
Failed test '200 OK'
at t/resources.t line 185.
got: '404'
expected: '200'
Failed test 'exact match for content'
at t/resources.t line 185.
got: '<!doctype html>
<title>Not Found</title>
<style type="text/css">
body {
font: 0.9em Verdana, "Bitstream Vera Sans", sans-serif;
}
</style>
Failed test '200 OK'
at t/resources.t line 191.
got: '404'
expected: '200'
Failed test 'exact match for content'
at t/resources.t line 191.
got: '<!doctype html>
<title>Not Found</title>
<style type="text/css">
body {
font: 0.9em Verdana, "Bitstream Vera Sans", sans-serif;
}
</style>
Failed test '200 OK'
at t/resources.t line 197.
got: '404'
expected: '200'
Failed test 'exact match for content'
at t/resources.t line 197.
got: '<!doctype html>
<title>Not Found</title>
<style type="text/css">
body {
font: 0.9em Verdana, "Bitstream Vera Sans", sans-serif;
}
</style>
Failed test '200 OK'
at t/resources.t line 203.
got: '404'
expected: '200'
Failed test 'exact match for content'
at t/resources.t line 203.
got: '<!doctype html>
<title>Not Found</title>
<style type="text/css">
body {
font: 0.9em Verdana, "Bitstream Vera Sans", sans-serif;
}
</style>
Failed test '200 OK'
at t/resources.t line 209.
got: '404'
expected: '200'
Failed test 'exact match for content'
at t/resources.t line 209.
got: '<!doctype html>
<title>Not Found</title>
<style type="text/css">
body {
font: 0.9em Verdana, "Bitstream Vera Sans", sans-serif;
}
</style>
t/resources.t (Wstat: 5632 Tests: 125 Failed: 22)
Failed tests: 20, 22, 63, 65, 91, 93, 95, 97, 99, 101
103, 105, 107, 109, 111, 113, 115, 117
119, 121, 123, 125
Non-zero exit status: 22
Files=1, Tests=125, 1 wallclock secs ( 0.06 usr 0.02 sys + 0.81 cusr 0.08 csys = 0.97 CPU)
Result: FAIL
Failed 1/1 test programs. 22/125 subtests failed.
FAIL
! Installing . failed. See /Users/fleveillee/.cpanm/build.log for details.
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.