PerlDancer / dancer2-session-json

Dancer 2 session storage in files with JSON

Home Page:https://metacpan.org/author/DAGOLDEN

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

doesn't install from cpan

drebolo opened this issue · comments

should your dist.ini have "[Prereqs] Dancer2 = 2"?

name = Dancer2-Session-JSON
author = David Golden dagolden@cpan.org
license = Apache_2_0
copyright_holder = David Golden
copyright_year = 2013

[@dagolden]
:version = 0.035
AutoMetaResources.bugtracker.rt = 0
AutoMetaResources.bugtracker.github = user:dagolden

[Prereqs]
Dancer2 = 2

$ cpanm -v Dancer2::Session::JSON
cpanm (App::cpanminus) 1.7001 on perl 5.018001 built for x86_64-linux
Work directory is /home/dinis/.cpanm/work/1395914493.26834
You have make /usr/bin/make
You have LWP 6.05
You have /bin/tar: tar (GNU tar) 1.26
Copyright © 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
You have /usr/bin/unzip
Searching Dancer2::Session::JSON on cpanmetadb ...
--> Working on Dancer2::Session::JSON
Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/Dancer2-Session-JSON-0.001.tar.gz ... OK
Unpacking Dancer2-Session-JSON-0.001.tar.gz
Dancer2-Session-JSON-0.001/
Dancer2-Session-JSON-0.001/Changes
Dancer2-Session-JSON-0.001/CONTRIBUTING
Dancer2-Session-JSON-0.001/dist.ini
Dancer2-Session-JSON-0.001/lib/
Dancer2-Session-JSON-0.001/LICENSE
Dancer2-Session-JSON-0.001/Makefile.PL
Dancer2-Session-JSON-0.001/MANIFEST
Dancer2-Session-JSON-0.001/META.json
Dancer2-Session-JSON-0.001/META.yml
Dancer2-Session-JSON-0.001/perlcritic.rc
Dancer2-Session-JSON-0.001/README
Dancer2-Session-JSON-0.001/t/
Dancer2-Session-JSON-0.001/tidyall.ini
Dancer2-Session-JSON-0.001/xt/
Dancer2-Session-JSON-0.001/xt/author/
Dancer2-Session-JSON-0.001/xt/release/
Dancer2-Session-JSON-0.001/xt/release/distmeta.t
Dancer2-Session-JSON-0.001/xt/release/pod-coverage.t
Dancer2-Session-JSON-0.001/xt/release/pod-syntax.t
Dancer2-Session-JSON-0.001/xt/release/portability.t
Dancer2-Session-JSON-0.001/xt/release/test-version.t
Dancer2-Session-JSON-0.001/xt/author/critic.t
Dancer2-Session-JSON-0.001/xt/author/pod-spell.t
Dancer2-Session-JSON-0.001/t/00-compile.t
Dancer2-Session-JSON-0.001/t/00-report-prereqs.t
Dancer2-Session-JSON-0.001/t/lifecycle.t
Dancer2-Session-JSON-0.001/lib/Dancer2/
Dancer2-Session-JSON-0.001/lib/Dancer2/Session/
Dancer2-Session-JSON-0.001/lib/Dancer2/Session/JSON.pm
Entering Dancer2-Session-JSON-0.001
Checking configure dependencies from META.json
Checking if you have ExtUtils::MakeMaker 6.30 ... Yes (6.84)
Running Makefile.PL
Configuring Dancer2-Session-JSON-0.001 ... Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Dancer2::Session::JSON
Writing MYMETA.yml and MYMETA.json
OK
Checking dependencies from MYMETA.json ...
Checking if you have YAML 0 ... Yes (0.84)
Checking if you have strict 0 ... Yes (1.07)
Checking if you have File::Find 0 ... Yes (1.23)
Checking if you have Test::TCP 1.13 ... Yes (2.01)
Checking if you have warnings 0 ... Yes (1.18)
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.84)
Checking if you have File::Spec::Functions 0 ... Yes (3.40)
Checking if you have List::Util 0 ... Yes (1.35)
Checking if you have Dancer2::Core::Types 0 ... Yes (0.11)
Checking if you have Dancer2 2 ... No (0.11 < 2)
Checking if you have Test::More 0 ... Yes (1.001002)
Checking if you have File::Spec 0 ... Yes (3.40)
Checking if you have JSON 0 ... Yes (2.90)
Checking if you have LWP::UserAgent 0 ... Yes (6.05)
Checking if you have File::Temp 0.22 ... Yes (0.2304)
Checking if you have Moo 0 ... Yes (1.003001)
Checking if you have Dancer2::Core::Role::SessionFactory::File 0 ... Yes (0.11)
Checking if you have HTTP::Date 0 ... Yes (6.02)
==> Found dependencies: Dancer2
Searching Dancer2 on cpanmetadb ...
Found Dancer2 0.11 which doesn't satisfy 2.
! Installing the dependencies failed: Installed version (0.11) of Dancer2 is not in range '2'
! Bailing out the installation for Dancer2-Session-JSON-0.001.
Expiring 1 work directories.

also, after that fixed when running dzil test:
dzil test
[DZ] building distribution under .build/ARJClSw31p for installation
[DZ] beginning to build Dancer2-Session-JSON
[@DAGOLDEN/Git::NextVersion] Bumping version from 0.001 to 0.002
[DZ] guessing dist's main_module is lib/Dancer2/Session/JSON.pm
[DZ] extracting distribution abstract from lib/Dancer2/Session/JSON.pm
[DZ] writing Dancer2-Session-JSON in .build/ARJClSw31p
[@DAGOLDEN/CopyFilesFromBuild] Copied .build/ARJClSw31p/cpanfile to ./cpanfile
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Dancer2::Session::JSON
Writing MYMETA.yml and MYMETA.json
cp lib/Dancer2/Session/JSON.pm blib/lib/Dancer2/Session/JSON.pm
Manifying blib/man3/Dancer2::Session::JSON.3
PERL_DL_NONLAZY=1 /home/dinis/perl5/perlbrew/perls/perl-5.18.1/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/.t
t/00-report-prereqs.t .. #

Versions for all modules listed in MYMETA.json (including optional ones):

Version Module

-------- -----------------------------------------

2.133380 CPAN::Meta

2.122 CPAN::Meta::Requirements

0.11 Dancer2

0.11 Dancer2::Core::Role::SessionFactory::File

0.11 Dancer2::Core::Types

5.006 Dist::Zilla

5.006 Dist::Zilla::Plugin::Prereqs

0.059 Dist::Zilla::PluginBundle::DAGOLDEN

6.84 ExtUtils::MakeMaker

3.40 File::Spec

3.40 File::Spec::Functions

0.2304 File::Temp

6.02 HTTP::Date

1.34 IO::Handle

1.13 IPC::Open3

2.90 JSON

6.05 LWP::UserAgent

1.35 List::Util

1.003001 Moo

0.100003 Pod::Coverage::TrustPod

0.23 Test::CPAN::Meta

1.001002 Test::More

1.48 Test::Pod

1.08 Test::Pod::Coverage

2.01 Test::TCP

0.84 YAML

1.07 strict

1.18 warnings

t/00-report-prereqs.t .. ok
t/lifecycle.t .......... # Testing engine JSON

Dancer2 v0.11 server 31905 listening on http://0.0.0.0:50757
t/lifecycle.t .......... 1/?

Failed test 'session cookie set'

at t/lifecycle.t line 53.

undef

Failed test 'correct cookie expired'

at t/lifecycle.t line 86.

got: 'UzP88ov_rxs0JmLSkpKgGoLtjugXlbUX'

expected: undef

Looks like you failed 2 tests of 27.

t/lifecycle.t .......... Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/27 subtests

Test Summary Report

t/lifecycle.t (Wstat: 512 Tests: 27 Failed: 2)
Failed tests: 4, 15
Non-zero exit status: 2
Files=2, Tests=28, 1 wallclock secs ( 0.03 usr 0.01 sys + 0.46 cusr 0.04 csys = 0.54 CPU)
Result: FAIL
Failed 1/2 test programs. 2/28 subtests failed.
make: *** [test_dynamic] Error 2
error running make test

Just released 0.002 to CPAN which should fix this.