agcod 0.1.0 → 0.1.1

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: 26927b3c904bced40d919af5989d1eb96c637940
4
+ data.tar.gz: d5f51d14848607b934bd83f476612f9bfa84521f
5
+ SHA512:
6
+ metadata.gz: bb2a3cd5684f7c85067dc0dae49b8cce45e0d4969bfd0ec5e123a9c9d28101d708a1d95490acede28b9bb997153e9a81ac87ccece19cf185539be4a112b01d0b
7
+ data.tar.gz: 81e1445ae657173ca6b3d147dda4c700abfe1bd7bf605e3caeae4aad8788ace3832378af1c3b7a7d423e284d56c29531212ef8c4eb0f037cb85e9ba526e0fd5f
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
6
6
  s.name = "agcod"
7
7
  s.version = Agcod::VERSION
8
8
  s.authors = ["Dan Pickett"]
9
- s.email = %q{dpickett@enlightsolutions.com}
9
+ s.email = %q{dan.pickett@launchacademy.com}
10
10
  s.homepage = %q{http://github.com/dpickett/agcod}
11
11
  s.summary = %q{A Wrapper for Amazon Gift Codes On Demand}
12
12
  s.description = %q{Access the Amazon API to order gift codes}
@@ -32,7 +32,7 @@ module Agcod
32
32
  attr_reader :errors, :request_id, :sent, :action, :request, :parameters, :response, :xml_response, :status, :timestamp
33
33
 
34
34
  def sign_string(string_to_sign)
35
- digest = OpenSSL::Digest::Digest.new('sha256')
35
+ digest = OpenSSL::Digest.new('sha256')
36
36
  sha256 = OpenSSL::HMAC.digest(digest, Agcod::Configuration.secret_key, string_to_sign)
37
37
 
38
38
  #Base64 encoding adds a linefeed to the end of the string so chop the last character!
@@ -1,3 +1,3 @@
1
1
  module Agcod
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -69,7 +69,7 @@ class Agcod::RequestTest < Test::Unit::TestCase
69
69
 
70
70
  should "use a sha256 digest" do
71
71
  d = mock('digest')
72
- OpenSSL::Digest::Digest.expects(:new).twice.with('sha256').returns(d)
72
+ OpenSSL::Digest.expects(:new).twice.with('sha256').returns(d)
73
73
  OpenSSL::HMAC.expects(:digest).twice.returns ""
74
74
  @request.submit
75
75
  end
metadata CHANGED
@@ -1,119 +1,106 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: agcod
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
5
- prerelease:
4
+ version: 0.1.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Dan Pickett
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-03-01 00:00:00.000000000 Z
11
+ date: 2015-01-14 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: cucumber
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: :development
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: fakeweb
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: :development
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: mocha
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'
54
48
  type: :development
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'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: rake
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
  - !ruby/object:Gem::Dependency
79
70
  name: rspec
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ! '>='
73
+ - - ">="
84
74
  - !ruby/object:Gem::Version
85
75
  version: '0'
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ! '>='
80
+ - - ">="
92
81
  - !ruby/object:Gem::Version
93
82
  version: '0'
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: shoulda
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
- - - ! '>='
87
+ - - ">="
100
88
  - !ruby/object:Gem::Version
101
89
  version: '0'
102
90
  type: :development
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
- - - ! '>='
94
+ - - ">="
108
95
  - !ruby/object:Gem::Version
109
96
  version: '0'
110
97
  description: Access the Amazon API to order gift codes
111
- email: dpickett@enlightsolutions.com
98
+ email: dan.pickett@launchacademy.com
112
99
  executables: []
113
100
  extensions: []
114
101
  extra_rdoc_files: []
115
102
  files:
116
- - .gitignore
103
+ - ".gitignore"
117
104
  - Gemfile
118
105
  - LICENSE
119
106
  - README.rdoc
@@ -153,33 +140,26 @@ files:
153
140
  - test/test_helper.rb
154
141
  homepage: http://github.com/dpickett/agcod
155
142
  licenses: []
143
+ metadata: {}
156
144
  post_install_message:
157
145
  rdoc_options: []
158
146
  require_paths:
159
147
  - lib
160
148
  required_ruby_version: !ruby/object:Gem::Requirement
161
- none: false
162
149
  requirements:
163
- - - ! '>='
150
+ - - ">="
164
151
  - !ruby/object:Gem::Version
165
152
  version: '0'
166
- segments:
167
- - 0
168
- hash: -651393828966612354
169
153
  required_rubygems_version: !ruby/object:Gem::Requirement
170
- none: false
171
154
  requirements:
172
- - - ! '>='
155
+ - - ">="
173
156
  - !ruby/object:Gem::Version
174
157
  version: '0'
175
- segments:
176
- - 0
177
- hash: -651393828966612354
178
158
  requirements: []
179
159
  rubyforge_project: agcod
180
- rubygems_version: 1.8.24
160
+ rubygems_version: 2.2.2
181
161
  signing_key:
182
- specification_version: 3
162
+ specification_version: 4
183
163
  summary: A Wrapper for Amazon Gift Codes On Demand
184
164
  test_files:
185
165
  - features/error_handling.feature