Created
November 14, 2011 22:20
-
-
Save ambs/1365387 to your computer and use it in GitHub Desktop.
Fix some issues with current Dancer...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Makefile.PL b/Makefile.PL | |
index f46c7f2..3533af9 100644 | |
--- a/Makefile.PL | |
+++ b/Makefile.PL | |
@@ -17,7 +17,7 @@ WriteMakefile1( | |
}, | |
PREREQ_PM => { | |
- 'Dancer' => '1.178_01', | |
+ 'Dancer' => '1.3080', | |
}, | |
test => {TESTS => join( ' ', (glob( 't/*.t'), glob('t/*/*.t')))}, | |
diff --git a/lib/Dancer/Plugin/Params/Normalization.pm b/lib/Dancer/Plugin/Params/Normalization.pm | |
index 7411327..4a1b359 100644 | |
--- a/lib/Dancer/Plugin/Params/Normalization.pm | |
+++ b/lib/Dancer/Plugin/Params/Normalization.pm | |
@@ -100,10 +100,10 @@ if (defined $conf->{general_rule}) { | |
if ($conf->{general_rule} eq 'ondemand') { | |
register normalize => sub{ $normalization_fonction->() }; | |
} else { | |
- before $normalization_fonction; | |
+ hook before => $normalization_fonction; | |
} | |
} else { | |
- before $normalization_fonction; | |
+ hook before => $normalization_fonction; | |
} | |
register_plugin; | |
diff --git a/t/TestUtils.pm b/t/TestUtils.pm | |
index d067bbb..fdc309f 100644 | |
--- a/t/TestUtils.pm | |
+++ b/t/TestUtils.pm | |
@@ -23,7 +23,7 @@ sub get_response_for_request { | |
my ($method, $path, $params) = @_; | |
my $request = fake_request($method => $path, $params); | |
Dancer::SharedData->request($request); | |
- Dancer::Renderer::get_action_response(); | |
+ Dancer::Renderer->get_action_response(); | |
} | |
1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment