ey_api_hmac 0.0.18 → 0.0.19

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1 +1,2 @@
1
1
  *.gem
2
+ Gemfile.lock
@@ -11,7 +11,6 @@ module EY
11
11
  @auth_id = auth_id
12
12
  @auth_key = auth_key
13
13
  @standard_headers = {
14
- 'CONTENT_TYPE' => 'application/json',
15
14
  'Accept' => 'application/json',
16
15
  'HTTP_DATE' => Time.now.httpdate,
17
16
  'USER_AGENT' => user_agent || default_user_agent
@@ -87,10 +86,11 @@ module EY
87
86
 
88
87
  def request(method, url, body = nil, &block)
89
88
  response = nil
90
- request_headers = @standard_headers
89
+ request_headers = @standard_headers.dup
91
90
  if body
92
91
  body_json = body.to_json
93
92
  request_headers["CONTENT_LENGTH"] = body_json.size.to_s
93
+ request_headers["CONTENT_TYPE"] = 'application/json'
94
94
  response = client.send(method, url, request_headers, body_json)
95
95
  else
96
96
  response = client.send(method, url, request_headers)
@@ -1,5 +1,5 @@
1
1
  module EY
2
2
  module ApiHMAC
3
- VERSION = "0.0.18"
3
+ VERSION = "0.0.19"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ey_api_hmac
3
3
  version: !ruby/object:Gem::Version
4
- hash: 59
4
+ hash: 57
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 18
10
- version: 0.0.18
9
+ - 19
10
+ version: 0.0.19
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Jacob Burkhart & Thorben Schr\xC3\xB6der & David Calavera & others"
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-07 00:00:00 Z
18
+ date: 2011-11-30 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rack-client
@@ -71,7 +71,6 @@ extra_rdoc_files: []
71
71
  files:
72
72
  - .gitignore
73
73
  - Gemfile
74
- - Gemfile.lock
75
74
  - LICENSE
76
75
  - README.md
77
76
  - Rakefile
data/Gemfile.lock DELETED
@@ -1,39 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- ey_api_hmac (0.0.17)
5
- json
6
- rack-client
7
-
8
- GEM
9
- remote: http://rubygems.org/
10
- specs:
11
- diff-lcs (1.1.2)
12
- halorgium-auth-hmac (1.1.1.2010100601)
13
- json (1.5.3)
14
- rack (1.3.2)
15
- rack-client (0.4.0)
16
- rack (>= 1.0.0)
17
- rack-contrib (1.1.0)
18
- rack (>= 0.9.1)
19
- rake (0.9.2)
20
- rspec (2.6.0)
21
- rspec-core (~> 2.6.0)
22
- rspec-expectations (~> 2.6.0)
23
- rspec-mocks (~> 2.6.0)
24
- rspec-core (2.6.4)
25
- rspec-expectations (2.6.0)
26
- diff-lcs (~> 1.1.2)
27
- rspec-mocks (2.6.0)
28
-
29
- PLATFORMS
30
- ruby
31
-
32
- DEPENDENCIES
33
- ey_api_hmac!
34
- halorgium-auth-hmac
35
- json
36
- rack-client
37
- rack-contrib
38
- rake
39
- rspec