ey_api_hmac 0.4.9 → 0.4.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 63fed7b036a2deb878cf92cffe50ebdf03f54d6e
4
+ data.tar.gz: ad4ddf40d7c289d2a1837bb326a94adff1817a47
5
+ SHA512:
6
+ metadata.gz: 7fc8fac8d5d3ec35535a9b708616b7c12bf11435ae2a4386f9a06ddc1b031f24d2013af52bf3b7c59a673680ba62d83d28ee23ce7f77ea75753700fe0132c142
7
+ data.tar.gz: 8f7c15c05fb8cb7c7d6d55dc70160c1c65f358070db133073356fe430ceb5c900544ac08ba97bd16ccdec448781721b61ee2faf892ebfb50d729a79910a8d969
@@ -100,6 +100,11 @@ module EY
100
100
  else
101
101
  response = client.send(method, url, request_headers)
102
102
  end
103
+ class << response
104
+ def json
105
+ JSON.parse(self.body)
106
+ end
107
+ end
103
108
  handle_response(url, response, &block)
104
109
  rescue => e
105
110
  request_hash = {:method => method, :url => url, :headers => request_headers, :body => body}
@@ -117,8 +122,7 @@ module EY
117
122
  case response.status
118
123
  when 200, 201
119
124
  if block_given?
120
- json_body = JSON.parse(response.body)
121
- yield json_body, response["Location"]
125
+ yield response.json, response["Location"]
122
126
  else
123
127
  response
124
128
  end
@@ -1,5 +1,5 @@
1
1
  module EY
2
2
  module ApiHMAC
3
- VERSION = "0.4.9"
3
+ VERSION = "0.4.10"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,78 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ey_api_hmac
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.9
5
- prerelease:
4
+ version: 0.4.10
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jacob Burkhart & Thorben Schröder & David Calavera & others
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-01-22 00:00:00.000000000 Z
11
+ date: 2013-12-09 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rack-client
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: json
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rack-idempotent
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: 0.0.3
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: 0.0.3
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: rspec
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - '>='
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - '>='
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
69
  description: basic wrapper for rack-client + middlewares for HMAC auth + helpers for
@@ -103,27 +94,26 @@ files:
103
94
  - spec/sso_spec.rb
104
95
  homepage: ''
105
96
  licenses: []
97
+ metadata: {}
106
98
  post_install_message:
107
99
  rdoc_options: []
108
100
  require_paths:
109
101
  - lib
110
102
  required_ruby_version: !ruby/object:Gem::Requirement
111
- none: false
112
103
  requirements:
113
- - - ! '>='
104
+ - - '>='
114
105
  - !ruby/object:Gem::Version
115
106
  version: '0'
116
107
  required_rubygems_version: !ruby/object:Gem::Requirement
117
- none: false
118
108
  requirements:
119
- - - ! '>='
109
+ - - '>='
120
110
  - !ruby/object:Gem::Version
121
111
  version: '0'
122
112
  requirements: []
123
113
  rubyforge_project: ey_api_hmac
124
- rubygems_version: 1.8.24
114
+ rubygems_version: 2.0.3
125
115
  signing_key:
126
- specification_version: 3
116
+ specification_version: 4
127
117
  summary: HMAC Rack basic implementation for Engine Yard services
128
118
  test_files:
129
119
  - spec/api_auth_spec.rb