[Jifty-commit] jifty branch, plack-rebased, updated. 737e9ce93105b2cb830ec26f4d264800a4fed50f

Jifty commits jifty-commit at lists.jifty.org
Sat Feb 6 23:17:45 EST 2010


The branch, plack-rebased has been updated
       via  737e9ce93105b2cb830ec26f4d264800a4fed50f (commit)
       via  f24151aaa607f4760ffa7be92caa032263e32921 (commit)
      from  8129fc4feef2cfa13e57c32909a2aa3fc228fe89 (commit)

Summary of changes:
 lib/Jifty/Action.pm                 |    3 ++-
 lib/Jifty/Plugin/REST/Dispatcher.pm |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit f24151aaa607f4760ffa7be92caa032263e32921
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Sun Feb 7 12:15:46 2010 +0800

    tiny tweak to avoid warning

diff --git a/lib/Jifty/Action.pm b/lib/Jifty/Action.pm
index 5774742..499a9a2 100644
--- a/lib/Jifty/Action.pm
+++ b/lib/Jifty/Action.pm
@@ -473,7 +473,8 @@ sub _form_widget {
         render_mode => 'update',
         @_,
     );
-    my $cache_key = join '!!', %args;
+    my $cache_key = join '!!',
+      map { $_ => defined $args{$_} ? $args{$_} : '' } keys %args;
 
     # Setup the field name
     my $field = $args{'argument'};

commit 737e9ce93105b2cb830ec26f4d264800a4fed50f
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Sun Feb 7 12:17:24 2010 +0800

    typo fix

diff --git a/lib/Jifty/Plugin/REST/Dispatcher.pm b/lib/Jifty/Plugin/REST/Dispatcher.pm
index d63c4d2..5c490cf 100644
--- a/lib/Jifty/Plugin/REST/Dispatcher.pm
+++ b/lib/Jifty/Plugin/REST/Dispatcher.pm
@@ -20,7 +20,7 @@ before qr{^ (/=/ .*) \. (js|json|yml|yaml|perl|pl|xml|html) $}x => run {
 };
 
 before POST qr{^ (/=/ .*) ! (DELETE|PUT|GET|POST|OPTIONS|HEAD|TRACE|CONNECT) $}x => run {
-    Jifty->web->request->request_method($2);
+    Jifty->web->request->method($2);
     Jifty->web->request->env->{REST_REWROTE_METHOD} = 1;
     dispatch $1;
 };

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


More information about the Jifty-commit mailing list