ascarter-auth-hmac 1.0.1 → 1.1.0

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.
@@ -1,3 +1,7 @@
1
+ == 1.1.0 2009-02-26
2
+
3
+ * Added support for custom request signatures and service ids. (ascarter)
4
+
1
5
  == 1.0.1 2008-08-22
2
6
 
3
7
  * Fixed nil pointer exception when with_auth called with nil creds.
@@ -1,6 +1,6 @@
1
1
  require 'auth-hmac/version'
2
2
 
3
- AUTHOR = 'Sean Geoghegan' # can also be an array of Authors
3
+ AUTHOR = ['Sean Geoghegan', 'ascarter'] # can also be an array of Authors
4
4
  EMAIL = "seangeo@gmail.com"
5
5
  DESCRIPTION = "A gem providing HMAC based authentication for HTTP"
6
6
  GEM_NAME = 'auth-hmac' # what ppl will type to install your gem
@@ -51,7 +51,8 @@ end
51
51
  # Generate all the Rake tasks
52
52
  # Run 'rake -T' to see list of generated tasks (from gem root directory)
53
53
  $hoe = Hoe.new(GEM_NAME, VERS) do |p|
54
- p.developer(AUTHOR, EMAIL)
54
+ p.author = AUTHOR
55
+ p.email = EMAIL
55
56
  p.description = DESCRIPTION
56
57
  p.summary = DESCRIPTION
57
58
  p.url = HOMEPATH
@@ -102,7 +102,7 @@ class AuthHMAC
102
102
  end
103
103
 
104
104
  def content_md5(headers)
105
- find_header(%w(CONTENT-MD5 CONTENT_MD5), headers)
105
+ find_header(%w(CONTENT-MD5 CONTENT_MD5 HTTP_CONTENT_MD5), headers)
106
106
  end
107
107
 
108
108
  def request_path(request)
@@ -117,7 +117,6 @@ class AuthHMAC
117
117
  end
118
118
  end
119
119
 
120
- # @@default_signature_method = lambda { |r| CanonicalString.new(r) }
121
120
  @@default_signature_class = CanonicalString
122
121
 
123
122
  # Create an AuthHMAC instance using the given credential store
@@ -143,7 +142,6 @@ class AuthHMAC
143
142
  # Defaults
144
143
  @service_id = self.class.name
145
144
  @signature_class = @@default_signature_class
146
- #@signature_method = @@default_signature_method
147
145
 
148
146
  unless options.nil?
149
147
  @service_id = options[:service_id] if options.key?(:service_id)
@@ -1,8 +1,8 @@
1
1
  class AuthHMAC
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
- MINOR = 0
5
- TINY = 1
4
+ MINOR = 1
5
+ TINY = 0
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -1,29 +1,30 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ascarter-auth-hmac
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Geoghegan
8
+ - ascarter
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
12
 
12
- date: 2009-01-27 00:00:00 -08:00
13
+ date: 2009-02-26 00:00:00 -08:00
13
14
  default_executable:
14
15
  dependencies:
15
16
  - !ruby/object:Gem::Dependency
16
17
  name: hoe
18
+ type: :development
17
19
  version_requirement:
18
20
  version_requirements: !ruby/object:Gem::Requirement
19
21
  requirements:
20
22
  - - ">="
21
23
  - !ruby/object:Gem::Version
22
- version: 1.8.0
24
+ version: 1.8.2
23
25
  version:
24
26
  description: A gem providing HMAC based authentication for HTTP
25
- email:
26
- - seangeo@gmail.com
27
+ email: seangeo@gmail.com
27
28
  executables: []
28
29
 
29
30
  extensions: []
@@ -68,7 +69,7 @@ post_install_message: |+
68
69
 
69
70
  rdoc_options:
70
71
  - --main
71
- - README.rdoc
72
+ - README.txt
72
73
  require_paths:
73
74
  - lib
74
75
  required_ruby_version: !ruby/object:Gem::Requirement