ey_api_hmac 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -24,6 +24,9 @@ Rack-Client middleware:
24
24
 
25
25
  ```ruby
26
26
  client = Rack::Client.new do
27
+ use Rack::Config do |env|
28
+ env['HTTP_DATE'] = Time.now.httpdate
29
+ end
27
30
  use EY::ApiHMAC::ApiAuth::Client, auth_id_arg, auth_key_arg
28
31
  run Rack::Client::Handler::NetHTTP
29
32
  end
data/ey_api_hmac.gemspec CHANGED
@@ -20,5 +20,6 @@ Gem::Specification.new do |s|
20
20
 
21
21
  s.add_dependency 'rack-client'
22
22
  s.add_dependency 'json'
23
+ s.add_dependency 'rack-idempotent'
23
24
  s.add_development_dependency "rspec"
24
25
  end
@@ -76,6 +76,7 @@ module EY
76
76
  def client
77
77
  bak = self.backend
78
78
  @client ||= Rack::Client.new do
79
+ use Rack::Idempotent
79
80
  run bak
80
81
  end
81
82
  end
@@ -1,5 +1,5 @@
1
1
  module EY
2
2
  module ApiHMAC
3
- VERSION = "0.4.1"
3
+ VERSION = "0.4.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,59 +1,90 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: ey_api_hmac
3
- version: !ruby/object:Gem::Version
4
- version: 0.4.1
3
+ version: !ruby/object:Gem::Version
4
+ hash: 11
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 4
9
+ - 2
10
+ version: 0.4.2
6
11
  platform: ruby
7
- authors:
8
- - Jacob Burkhart & Thorben Schröder & David Calavera & others
12
+ authors:
13
+ - "Jacob Burkhart & Thorben Schr\xC3\xB6der & David Calavera & others"
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2012-01-23 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2012-02-07 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
15
21
  name: rack-client
16
- requirement: &70353024621180 !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
17
24
  none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 3
29
+ segments:
30
+ - 0
31
+ version: "0"
22
32
  type: :runtime
23
- prerelease: false
24
- version_requirements: *70353024621180
25
- - !ruby/object:Gem::Dependency
33
+ version_requirements: *id001
34
+ - !ruby/object:Gem::Dependency
26
35
  name: json
27
- requirement: &70353024620760 !ruby/object:Gem::Requirement
36
+ prerelease: false
37
+ requirement: &id002 !ruby/object:Gem::Requirement
28
38
  none: false
29
- requirements:
30
- - - ! '>='
31
- - !ruby/object:Gem::Version
32
- version: '0'
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ hash: 3
43
+ segments:
44
+ - 0
45
+ version: "0"
33
46
  type: :runtime
47
+ version_requirements: *id002
48
+ - !ruby/object:Gem::Dependency
49
+ name: rack-idempotent
34
50
  prerelease: false
35
- version_requirements: *70353024620760
36
- - !ruby/object:Gem::Dependency
51
+ requirement: &id003 !ruby/object:Gem::Requirement
52
+ none: false
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ hash: 3
57
+ segments:
58
+ - 0
59
+ version: "0"
60
+ type: :runtime
61
+ version_requirements: *id003
62
+ - !ruby/object:Gem::Dependency
37
63
  name: rspec
38
- requirement: &70353024620340 !ruby/object:Gem::Requirement
64
+ prerelease: false
65
+ requirement: &id004 !ruby/object:Gem::Requirement
39
66
  none: false
40
- requirements:
41
- - - ! '>='
42
- - !ruby/object:Gem::Version
43
- version: '0'
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ hash: 3
71
+ segments:
72
+ - 0
73
+ version: "0"
44
74
  type: :development
45
- prerelease: false
46
- version_requirements: *70353024620340
47
- description: basic wrapper for rack-client + middlewares for HMAC auth + helpers for
48
- SSO auth
49
- email:
75
+ version_requirements: *id004
76
+ description: basic wrapper for rack-client + middlewares for HMAC auth + helpers for SSO auth
77
+ email:
50
78
  - jacob@engineyard.com
51
79
  - jlane@engineyard.com
52
80
  - jrucker@engineyard.com
53
81
  executables: []
82
+
54
83
  extensions: []
84
+
55
85
  extra_rdoc_files: []
56
- files:
86
+
87
+ files:
57
88
  - .gitignore
58
89
  - Gemfile
59
90
  - LICENSE
@@ -70,31 +101,40 @@ files:
70
101
  - spec/authed_connection_spec.rb
71
102
  - spec/spec_helper.rb
72
103
  - spec/sso_spec.rb
73
- homepage: ''
104
+ homepage: ""
74
105
  licenses: []
106
+
75
107
  post_install_message:
76
108
  rdoc_options: []
77
- require_paths:
109
+
110
+ require_paths:
78
111
  - lib
79
- required_ruby_version: !ruby/object:Gem::Requirement
112
+ required_ruby_version: !ruby/object:Gem::Requirement
80
113
  none: false
81
- requirements:
82
- - - ! '>='
83
- - !ruby/object:Gem::Version
84
- version: '0'
85
- required_rubygems_version: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ hash: 3
118
+ segments:
119
+ - 0
120
+ version: "0"
121
+ required_rubygems_version: !ruby/object:Gem::Requirement
86
122
  none: false
87
- requirements:
88
- - - ! '>='
89
- - !ruby/object:Gem::Version
90
- version: '0'
123
+ requirements:
124
+ - - ">="
125
+ - !ruby/object:Gem::Version
126
+ hash: 3
127
+ segments:
128
+ - 0
129
+ version: "0"
91
130
  requirements: []
131
+
92
132
  rubyforge_project: ey_api_hmac
93
133
  rubygems_version: 1.8.10
94
134
  signing_key:
95
135
  specification_version: 3
96
136
  summary: HMAC Rack basic implementation for Engine Yard services
97
- test_files:
137
+ test_files:
98
138
  - spec/api_auth_spec.rb
99
139
  - spec/authed_connection_spec.rb
100
140
  - spec/spec_helper.rb