auth-hmac 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,7 @@
1
+ == 1.1.1 2009-10-01
2
+
3
+ * Fixed bug in headers on recent versions of Ruby.
4
+
1
5
  == 1.1.0 2009-02-26
2
6
 
3
7
  * Added support for custom request signatures and service ids. (ascarter)
@@ -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
@@ -2,7 +2,7 @@ class AuthHMAC
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 1
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
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.0
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-02-26 00:00:00 +10:30
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.8.2
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