amazon_product 3.0.0.pre.1 → 3.0.0.pre.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,204 @@
1
+ !RBIX
2
+ 6235178746665710376
3
+ x
4
+ M
5
+ 1
6
+ n
7
+ n
8
+ x
9
+ 10
10
+ __script__
11
+ i
12
+ 57
13
+ 5
14
+ 7
15
+ 0
16
+ 64
17
+ 47
18
+ 49
19
+ 1
20
+ 1
21
+ 15
22
+ 5
23
+ 7
24
+ 2
25
+ 64
26
+ 47
27
+ 49
28
+ 1
29
+ 1
30
+ 15
31
+ 5
32
+ 7
33
+ 3
34
+ 64
35
+ 47
36
+ 49
37
+ 1
38
+ 1
39
+ 15
40
+ 5
41
+ 45
42
+ 4
43
+ 5
44
+ 7
45
+ 6
46
+ 64
47
+ 65
48
+ 49
49
+ 7
50
+ 0
51
+ 49
52
+ 8
53
+ 2
54
+ 47
55
+ 49
56
+ 1
57
+ 1
58
+ 15
59
+ 45
60
+ 9
61
+ 10
62
+ 56
63
+ 11
64
+ 50
65
+ 12
66
+ 0
67
+ 15
68
+ 2
69
+ 11
70
+ I
71
+ 4
72
+ I
73
+ 0
74
+ I
75
+ 0
76
+ I
77
+ 0
78
+ n
79
+ p
80
+ 13
81
+ s
82
+ 8
83
+ rubygems
84
+ x
85
+ 7
86
+ require
87
+ s
88
+ 13
89
+ bundler/setup
90
+ s
91
+ 5
92
+ rspec
93
+ x
94
+ 4
95
+ File
96
+ n
97
+ s
98
+ 24
99
+ ../../lib/amazon_product
100
+ x
101
+ 11
102
+ active_path
103
+ x
104
+ 11
105
+ expand_path
106
+ x
107
+ 5
108
+ RSpec
109
+ n
110
+ M
111
+ 1
112
+ p
113
+ 2
114
+ x
115
+ 9
116
+ for_block
117
+ t
118
+ n
119
+ x
120
+ 9
121
+ __block__
122
+ i
123
+ 15
124
+ 57
125
+ 19
126
+ 0
127
+ 15
128
+ 20
129
+ 0
130
+ 2
131
+ 13
132
+ 18
133
+ 2
134
+ 49
135
+ 0
136
+ 1
137
+ 15
138
+ 11
139
+ I
140
+ 5
141
+ I
142
+ 1
143
+ I
144
+ 1
145
+ I
146
+ 1
147
+ n
148
+ p
149
+ 1
150
+ x
151
+ 48
152
+ treat_symbols_as_metadata_keys_with_true_values=
153
+ p
154
+ 5
155
+ I
156
+ 0
157
+ I
158
+ 7
159
+ I
160
+ 4
161
+ I
162
+ 8
163
+ I
164
+ f
165
+ x
166
+ 58
167
+ /Users/hakanensari/code/amazon_product/spec/spec_helper.rb
168
+ p
169
+ 1
170
+ x
171
+ 1
172
+ c
173
+ x
174
+ 9
175
+ configure
176
+ p
177
+ 11
178
+ I
179
+ 0
180
+ I
181
+ 1
182
+ I
183
+ 9
184
+ I
185
+ 2
186
+ I
187
+ 12
188
+ I
189
+ 3
190
+ I
191
+ 1b
192
+ I
193
+ 5
194
+ I
195
+ 2e
196
+ I
197
+ 7
198
+ I
199
+ 39
200
+ x
201
+ 58
202
+ /Users/hakanensari/code/amazon_product/spec/spec_helper.rb
203
+ p
204
+ 0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amazon_product
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.pre.1
4
+ version: 3.0.0.pre.2
5
5
  prerelease: 6
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-08-10 00:00:00.000000000Z
12
+ date: 2011-08-16 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
16
- requirement: &70241913617000 !ruby/object:Gem::Requirement
16
+ requirement: &70256953884360 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '1.4'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70241913617000
24
+ version_requirements: *70256953884360
25
25
  description: Amazon Product is a Ruby wrapper to the Amazon Product Advertising API.
26
26
  email:
27
27
  - code@papercavalier.com
@@ -30,22 +30,32 @@ extensions: []
30
30
  extra_rdoc_files: []
31
31
  files:
32
32
  - lib/amazon_product/error.rb
33
+ - lib/amazon_product/error.rbc
33
34
  - lib/amazon_product/hash_builder.rb
35
+ - lib/amazon_product/hash_builder.rbc
34
36
  - lib/amazon_product/locale.rb
37
+ - lib/amazon_product/locale.rbc
35
38
  - lib/amazon_product/operations.rb
39
+ - lib/amazon_product/operations.rbc
36
40
  - lib/amazon_product/request.rb
41
+ - lib/amazon_product/request.rbc
37
42
  - lib/amazon_product/response.rb
38
- - lib/amazon_product/synchrony.rb
43
+ - lib/amazon_product/response.rbc
39
44
  - lib/amazon_product/version.rb
45
+ - lib/amazon_product/version.rbc
40
46
  - lib/amazon_product.rb
47
+ - lib/amazon_product.rbc
41
48
  - LICENSE
42
49
  - README.md
43
50
  - spec/amazon_product/hash_builder_spec.rb
51
+ - spec/amazon_product/hash_builder_spec.rbc
44
52
  - spec/amazon_product/request_spec.rb
53
+ - spec/amazon_product/request_spec.rbc
45
54
  - spec/amazon_product/response_spec.rb
46
- - spec/amazon_product/synchrony_spec.rb
55
+ - spec/amazon_product/response_spec.rbc
47
56
  - spec/fixtures/http_response
48
57
  - spec/spec_helper.rb
58
+ - spec/spec_helper.rbc
49
59
  homepage: http://code.papercavalier.com/amazon_product/
50
60
  licenses: []
51
61
  post_install_message:
@@ -60,7 +70,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
60
70
  version: '0'
61
71
  segments:
62
72
  - 0
63
- hash: 1955989660319264497
73
+ hash: 4418796737287911062
64
74
  required_rubygems_version: !ruby/object:Gem::Requirement
65
75
  none: false
66
76
  requirements:
@@ -75,8 +85,11 @@ specification_version: 3
75
85
  summary: A Ruby wrapper to the Amazon Product Advertising API
76
86
  test_files:
77
87
  - spec/amazon_product/hash_builder_spec.rb
88
+ - spec/amazon_product/hash_builder_spec.rbc
78
89
  - spec/amazon_product/request_spec.rb
90
+ - spec/amazon_product/request_spec.rbc
79
91
  - spec/amazon_product/response_spec.rb
80
- - spec/amazon_product/synchrony_spec.rb
92
+ - spec/amazon_product/response_spec.rbc
81
93
  - spec/fixtures/http_response
82
94
  - spec/spec_helper.rb
95
+ - spec/spec_helper.rbc
@@ -1,34 +0,0 @@
1
- require 'amazon_product'
2
- require 'em-synchrony'
3
- require 'em-synchrony/em-http'
4
-
5
- # Patches Request and Response to make them fiber-aware.
6
- module AmazonProduct
7
- class Request
8
- def adapter
9
- @adapter ||= EM::HttpRequest
10
- end
11
-
12
- # Performs an evented request.
13
- #
14
- # Yields a response to given block.
15
- def aget(&block)
16
- http = EM::HttpRequest.new(url).aget
17
- http.callback { block.call(Response.new(http)) }
18
- http.errback { block.call(Response.new(http)) }
19
- end
20
-
21
- # Performs an evented request.
22
- def get
23
- http = EM::HttpRequest.new(url).get
24
- Response.new(http)
25
- end
26
- end
27
-
28
- class Response
29
- def initialize(http)
30
- self.body = http.response
31
- self.code = http.response_header.status
32
- end
33
- end
34
- end
@@ -1,49 +0,0 @@
1
- require 'spec_helper'
2
-
3
- module AmazonProduct
4
- describe 'Synchrony adapter', :synchrony do
5
- before(:all) do
6
- require 'amazon_product/synchrony'
7
- end
8
-
9
- describe Request, :synchrony do
10
- let(:request) do
11
- req = AmazonProduct['us']
12
- req.configure do |c|
13
- c.key = 'foo'
14
- c.secret = 'bar'
15
- c.tag = 'baz'
16
- end
17
- req
18
- end
19
-
20
- it "uses an evented adapter" do
21
- request.adapter.should eql ::EM::HttpRequest
22
- end
23
-
24
- describe "#aget" do
25
- it "yields a response" do
26
- response = nil
27
- EM.synchrony do
28
- request.aget { |resp| response = resp }
29
- EM.stop
30
- end
31
-
32
- response.should be_a Response
33
- end
34
- end
35
-
36
- describe "#get" do
37
- it "returns a response" do
38
- response = nil
39
- EM.synchrony do
40
- response = request.get
41
- EM.stop
42
- end
43
-
44
- response.should be_a Response
45
- end
46
- end
47
- end
48
- end
49
- end