Skip to content

Commit

Permalink
Merge branch 'release/1.3059_04'
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexis Sukrieh committed Jun 12, 2011
2 parents b106f91 + 3dc673a commit 1b876f4
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 14 deletions.
6 changes: 6 additions & 0 deletions CHANGES
@@ -1,3 +1,9 @@
1.3059_04 12.06.2011

[ BUG FIXES ]
* Fix a bunch of cpan testers reports
(Alberto Simões)

1.3059_03 11.06.2011 1.3059_03 11.06.2011


[ BUG FIXES ] [ BUG FIXES ]
Expand Down
2 changes: 1 addition & 1 deletion lib/Dancer.pm
Expand Up @@ -5,7 +5,7 @@ use warnings;
use Carp; use Carp;
use Cwd 'realpath'; use Cwd 'realpath';


our $VERSION = '1.3059_03'; our $VERSION = '1.3059_04';
our $AUTHORITY = 'SUKRIA'; our $AUTHORITY = 'SUKRIA';


use Dancer::App; use Dancer::App;
Expand Down
2 changes: 1 addition & 1 deletion lib/Dancer/Test.pm
Expand Up @@ -323,7 +323,7 @@ Content-Type: text/plain
$l = length $content if defined $content; $l = length $content if defined $content;
open my $in, '<', \$content; open my $in, '<', \$content;
$ENV{'CONTENT_LENGTH'} = $l; $ENV{'CONTENT_LENGTH'} = $l;
$ENV{'CONTENT_TYPE'} = $content_type; $ENV{'CONTENT_TYPE'} = $content_type || "";
$ENV{'psgi.input'} = $in; $ENV{'psgi.input'} = $in;
} }


Expand Down
2 changes: 1 addition & 1 deletion t/03_route_handler/24_named_captures.t
Expand Up @@ -8,7 +8,7 @@ use Dancer::Test;
plan tests => 2; plan tests => 2;


SKIP: { SKIP: {
skip "Need perl >= 5.10", 3 unless $] >= 5.010; skip "Need perl >= 5.10", 2 unless $] >= 5.010;


my $route_regex = my $route_regex =
"/(?<class> user | content | post )/(?<action> delete | find )/(?<id> \\d+ )"; "/(?<class> user | content | post )/(?<action> delete | find )/(?<id> \\d+ )";
Expand Down
6 changes: 3 additions & 3 deletions t/14_serializer/01_helpers.t
Expand Up @@ -43,7 +43,7 @@ SKIP: {
} }


SKIP: { SKIP: {
skip 'JSON is needed to run this test', 17 skip 'JSON is needed to run this test', 16
unless Dancer::ModuleLoader->load('JSON'); unless Dancer::ModuleLoader->load('JSON');


# helpers syntax # helpers syntax
Expand Down Expand Up @@ -154,10 +154,10 @@ SKIP: {
} }


SKIP: { SKIP: {
skip 'YAML is needed to run this test', 1 skip 'YAML is needed to run this test', 7
unless Dancer::ModuleLoader->load('YAML'); unless Dancer::ModuleLoader->load('YAML');


skip 'JSON is needed to run this test', 1 skip 'JSON is needed to run this test', 7
unless Dancer::ModuleLoader->load('JSON'); unless Dancer::ModuleLoader->load('JSON');


setting( 'serializer' => 'Mutable' ); setting( 'serializer' => 'Mutable' );
Expand Down
5 changes: 3 additions & 2 deletions t/14_serializer/06_api.t
Expand Up @@ -48,7 +48,7 @@ SKIP: {
"application/json is not supported" ); "application/json is not supported" );
} }


{ SKIP: {
skip 'JSON is needed to run this test', 3 skip 'JSON is needed to run this test', 3
unless Dancer::ModuleLoader->load('JSON'); unless Dancer::ModuleLoader->load('JSON');
skip 'YAML is needed to run this test', 3 skip 'YAML is needed to run this test', 3
Expand Down Expand Up @@ -92,7 +92,7 @@ SKIP: {
} }


# handler helper # handler helper
{ SKIP: {
skip 'JSON is needed to run this test', 3 skip 'JSON is needed to run this test', 3
unless Dancer::ModuleLoader->load('JSON'); unless Dancer::ModuleLoader->load('JSON');


Expand All @@ -108,6 +108,7 @@ SKIP: {


my $expected_params = { foo => '42', }; my $expected_params = { foo => '42', };


# ---
my $req = Dancer::Request->new( env => $env); my $req = Dancer::Request->new( env => $env);
is $req->body, $body, "body is untouched"; is $req->body, $body, "body is untouched";


Expand Down
12 changes: 6 additions & 6 deletions t/14_serializer/99_bugs.t
Expand Up @@ -8,7 +8,7 @@ use HTTP::Request;
plan tests => 13; plan tests => 13;


# issue 57829 # issue 57829
{ SKIP: {
skip 'JSON is needed to run this test', 2 skip 'JSON is needed to run this test', 2
unless Dancer::ModuleLoader->load('JSON'); unless Dancer::ModuleLoader->load('JSON');


Expand All @@ -21,7 +21,7 @@ plan tests => 13;
} }


# issue gh-106 # issue gh-106
{ SKIP: {
skip 'JSON is needed to run this test', 1 skip 'JSON is needed to run this test', 1
unless Dancer::ModuleLoader->load('JSON'); unless Dancer::ModuleLoader->load('JSON');


Expand All @@ -38,7 +38,7 @@ plan tests => 13;
} }


# issue gh-299 # issue gh-299
{ SKIP: {
skip 'JSON is needed to run this test', 5 skip 'JSON is needed to run this test', 5
unless Dancer::ModuleLoader->load('JSON'); unless Dancer::ModuleLoader->load('JSON');


Expand All @@ -59,7 +59,7 @@ plan tests => 13;
# #
# Serializer issue: params hash not populated when the Content-Type is a # Serializer issue: params hash not populated when the Content-Type is a
# supported media type with additional parameters # supported media type with additional parameters
{ SKIP: {
skip 'JSON is needed to run this test', 3 skip 'JSON is needed to run this test', 3
unless Dancer::ModuleLoader->load('JSON'); unless Dancer::ModuleLoader->load('JSON');


Expand Down Expand Up @@ -88,12 +88,12 @@ plan tests => 13;
} }


# show errors # show errors
{ SKIP: {
skip 'JSON is needed to run this test', 2 skip 'JSON is needed to run this test', 2
unless Dancer::ModuleLoader->load('JSON'); unless Dancer::ModuleLoader->load('JSON');


set environment => 'production'; set environment => 'production';

get '/with_errors' => sub { get '/with_errors' => sub {
setting show_errors => 1; setting show_errors => 1;
# bam! # bam!
Expand Down

0 comments on commit 1b876f4

Please sign in to comment.