Changeset 4893

Show
Ignore:
Timestamp:
01/18/08 18:41:56 (5 years ago)
Author:
lyokato
Message:

lang/perl/OAuth-Lite: Checking in changes prior to tagging of version 1.06. Changelog diff is:

Index: Changes
===================================================================
--- Changes (リビジョン 4869)
+++ Changes (作業コピー)
@@ -1,5 +1,9 @@

Revision history for Perl extension OAuth::Lite.


+1.06 Fri Jan 18 18:28:00 2008
+ - changed not to use syntax like 'any {...} qw/FOO BAR/'.
+ it seems to cause error on perl5.6
+

1.05 Thu Jan 17 10:15:00 2008

  • added inc/Module/Install to MANIFEST


Location:
lang/perl/OAuth-Lite/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/OAuth-Lite/trunk/Changes

    r4759 r4893  
    11Revision history for Perl extension OAuth::Lite. 
     2 
     31.06  Fri Jan 18 18:28:00 2008 
     4        - changed not to use syntax like 'any {...} qw/FOO BAR/'. 
     5          it seems to cause error on perl5.6 
    26 
    371.05  Thu Jan 17 10:15:00 2008 
  • lang/perl/OAuth-Lite/trunk/lib/OAuth/Lite.pm

    r4759 r4893  
    44use warnings; 
    55 
    6 our $VERSION = "1.05"; 
     6our $VERSION = "1.06"; 
    77our $OAUTH_DEFAULT_VERSION = "1.0"; 
    88 
  • lang/perl/OAuth-Lite/trunk/lib/OAuth/Lite/Consumer.pm

    r4630 r4893  
    511511    } 
    512512 
    513     if (any { $method eq $_ } qw/POST PUT/) { 
     513                my @send_data_methods = qw/POST PUT/; 
     514                my @non_send_data_methods = qw/GET HEAD DELETE/; 
     515    if (any { $method eq $_ } @send_data_methods) { 
    514516        $headers->header('Content-Type', q{application/x-www-form-urlencoded}) 
    515517            unless $headers->header('Content-Type'); 
     
    517519 
    518520    my $auth_method = $self->{auth_method}; 
    519     if (any { $method eq $_ } qw/GET HEAD DELETE/) { 
     521    if (any { $method eq $_ } @non_send_data_methods) { 
    520522        $auth_method = AUTH_HEADER 
    521523            unless $auth_method eq URL_QUERY;  
     
    538540            my $data = join('&', map(sprintf(q{%s=%s}, 
    539541                encode_param($_), encode_param($extra->{$_}) ), keys %$extra)); 
    540             if (any { $method eq $_ } qw/POST PUT/) { 
     542            if (any { $method eq $_ } @send_data_methods) { 
    541543                $content = $data; 
    542544            } else {