auth-hmac 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +4 -0
 - data/lib/auth-hmac.rb +3 -3
 - data/lib/auth-hmac/version.rb +1 -1
 - metadata +3 -3
 
    
        data/History.txt
    CHANGED
    
    
    
        data/lib/auth-hmac.rb
    CHANGED
    
    | 
         @@ -31,10 +31,10 @@ class AuthHMAC 
     | 
|
| 
       31 
31 
     | 
    
         
             
                # Currently handles net/http and Rails.
         
     | 
| 
       32 
32 
     | 
    
         
             
                #
         
     | 
| 
       33 
33 
     | 
    
         
             
                def headers(request)
         
     | 
| 
       34 
     | 
    
         
            -
                  if request.respond_to?(: 
     | 
| 
       35 
     | 
    
         
            -
                    request
         
     | 
| 
       36 
     | 
    
         
            -
                  elsif request.respond_to?(:headers)
         
     | 
| 
      
 34 
     | 
    
         
            +
                  if request.respond_to?(:headers)
         
     | 
| 
       37 
35 
     | 
    
         
             
                    request.headers
         
     | 
| 
      
 36 
     | 
    
         
            +
                  elsif request.respond_to?(:[])
         
     | 
| 
      
 37 
     | 
    
         
            +
                    request
         
     | 
| 
       38 
38 
     | 
    
         
             
                  else
         
     | 
| 
       39 
39 
     | 
    
         
             
                    raise ArgumentError, "Don't know how to get the headers from #{request.inspect}"
         
     | 
| 
       40 
40 
     | 
    
         
             
                  end
         
     | 
    
        data/lib/auth-hmac/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification 
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: auth-hmac
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version 
         
     | 
| 
       4 
     | 
    
         
            -
              version: 1.1. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 1.1.1
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors: 
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Sean Geoghegan
         
     | 
| 
         @@ -10,7 +10,7 @@ autorequire: 
     | 
|
| 
       10 
10 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       11 
11 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       12 
12 
     | 
    
         | 
| 
       13 
     | 
    
         
            -
            date: 2009- 
     | 
| 
      
 13 
     | 
    
         
            +
            date: 2009-10-01 00:00:00 +09:30
         
     | 
| 
       14 
14 
     | 
    
         
             
            default_executable: 
         
     | 
| 
       15 
15 
     | 
    
         
             
            dependencies: 
         
     | 
| 
       16 
16 
     | 
    
         
             
            - !ruby/object:Gem::Dependency 
         
     | 
| 
         @@ -21,7 +21,7 @@ dependencies: 
     | 
|
| 
       21 
21 
     | 
    
         
             
                requirements: 
         
     | 
| 
       22 
22 
     | 
    
         
             
                - - ">="
         
     | 
| 
       23 
23 
     | 
    
         
             
                  - !ruby/object:Gem::Version 
         
     | 
| 
       24 
     | 
    
         
            -
                    version: 1. 
     | 
| 
      
 24 
     | 
    
         
            +
                    version: 1.12.2
         
     | 
| 
       25 
25 
     | 
    
         
             
                version: 
         
     | 
| 
       26 
26 
     | 
    
         
             
            description: A gem providing HMAC based authentication for HTTP
         
     | 
| 
       27 
27 
     | 
    
         
             
            email: seangeo@gmail.com
         
     |