ey_services_api 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -20,5 +20,5 @@ Gem::Specification.new do |s|
20
20
 
21
21
  s.add_development_dependency 'rspec'
22
22
  s.add_dependency 'json'
23
- s.add_dependency 'ey_api_hmac', ">= 0.1.0"
23
+ s.add_dependency 'ey_api_hmac', ">= 0.3.0"
24
24
  end
@@ -1,6 +1,9 @@
1
1
  class APIStruct < Struct
2
+ attr_reader :raw
3
+
2
4
  def initialize(atts = {})
3
5
  #converting all keys of atts to Symbols
6
+ @raw = atts
4
7
  atts = Hash[atts.map {|k,v| [k.to_sym, v]}]
5
8
  super(*atts.values_at(*self.members.map(&:to_sym)))
6
9
  end
@@ -4,7 +4,7 @@ require 'ey_api_hmac'
4
4
 
5
5
  module EY
6
6
  module ServicesAPI
7
- class Connection < EY::ApiHMAC::BaseConnection
7
+ class Connection < EY::ApiHMAC::AuthedConnection
8
8
 
9
9
  def default_user_agent
10
10
  "EY-ServicesAPI/#{VERSION}"
@@ -1,5 +1,5 @@
1
1
  module EY
2
2
  module ServicesAPI
3
- VERSION = "0.3.1"
3
+ VERSION = "0.3.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ey_services_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-12-05 00:00:00.000000000 Z
12
+ date: 2011-12-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70167594972880 !ruby/object:Gem::Requirement
16
+ requirement: &70241270031680 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70167594972880
24
+ version_requirements: *70241270031680
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: json
27
- requirement: &70167594972260 !ruby/object:Gem::Requirement
27
+ requirement: &70241270031260 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,18 +32,18 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70167594972260
35
+ version_requirements: *70241270031260
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: ey_api_hmac
38
- requirement: &70167594985660 !ruby/object:Gem::Requirement
38
+ requirement: &70241270030760 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
42
42
  - !ruby/object:Gem::Version
43
- version: 0.1.0
43
+ version: 0.3.0
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70167594985660
46
+ version_requirements: *70241270030760
47
47
  description: API for Partner Services (talks to services.engineyard.com)
48
48
  email:
49
49
  - jacob@engineyard.com