amazon_seller_central 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,16 @@
1
+ HTTP/1.1 302 Found
2
+ Date: Mon, 04 Jul 2011 01:23:24 GMT
3
+ Server: Server
4
+ Location: https://sellercentral.amazon.com/gp/homepage.html
5
+ Content-Length: 233
6
+ Cneonction: close
7
+ Content-Type: text/html; charset=iso-8859-1
8
+ Vary: User-Agent
9
+
10
+ <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
11
+ <html><head>
12
+ <title>302 Found</title>
13
+ </head><body>
14
+ <h1>Found</h1>
15
+ <p>The document has moved <a href="https://sellercentral.amazon.com/gp/homepage.html">here</a>.</p>
16
+ </body></html>
@@ -0,0 +1,19 @@
1
+ require 'fakeweb'
2
+ def mock_seller_central_page_results!
3
+ mock_pages = {}
4
+ Dir.glob("#{File.join(File.dirname(__FILE__), 'sample_pages')}/*.html").each do |sample_html|
5
+ page_name = sample_html.split(/\//).last.gsub(/\.html$/,'').downcase.tr_s(' ', '_').to_sym
6
+ mock_pages[page_name] = File.read(sample_html)
7
+ end
8
+
9
+ FakeWeb.allow_net_connect = false
10
+ FakeWeb.register_uri(:any, 'https://sellercentral.amazon.com/', :response => mock_pages[:seller_central])
11
+ FakeWeb.register_uri(:any, 'https://sellercentral.amazon.com/gp/homepage.html', :response => mock_pages[:seller_central_redirect])
12
+ FakeWeb.register_uri(:post, 'https://sellercentral.amazon.com/gp/sign-in/sign-in.html', :response => mock_pages[:seller_central_homepage])
13
+
14
+ FakeWeb.register_uri(:get, 'https://sellercentral.amazon.com/gp/feedback-manager/home.html/ref=ag_feedback_mmap_home', :response => mock_pages[:feedback_manager])
15
+ FakeWeb.register_uri(:get, 'https://sellercentral.amazon.com/gp/feedback-manager/view-all-feedback.html?ie=UTF8&sortType=sortByDate&dateRange=&descendingOrder=1', :response => mock_pages[:feedback_page_1])
16
+ FakeWeb.register_uri(:get, 'https://sellercentral.amazon.com/gp/feedback-manager/view-all-feedback.html?ie=UTF8&sortType=sortByDate&pageSize=50&dateRange=&currentPage=2&descendingOrder=1', :response => mock_pages[:feedback_page_2])
17
+ FakeWeb.register_uri(:get, 'https://sellercentral.amazon.com/gp/feedback-manager/view-all-feedback.html?ie=UTF8&sortType=sortByDate&pageSize=50&dateRange=&currentPage=3&descendingOrder=1', :response => mock_pages[:feedback_page_last])
18
+
19
+ end
metadata ADDED
@@ -0,0 +1,299 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: amazon_seller_central
3
+ version: !ruby/object:Gem::Version
4
+ hash: 27
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 0
10
+ version: 0.1.0
11
+ platform: ruby
12
+ authors:
13
+ - optoro
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-07-09 00:00:00 -04:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ prerelease: false
23
+ type: :runtime
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 23
30
+ segments:
31
+ - 1
32
+ - 0
33
+ - 0
34
+ version: 1.0.0
35
+ name: mechanize
36
+ version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ prerelease: false
39
+ type: :development
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ hash: 3
46
+ segments:
47
+ - 2
48
+ - 3
49
+ - 0
50
+ version: 2.3.0
51
+ name: rspec
52
+ version_requirements: *id002
53
+ - !ruby/object:Gem::Dependency
54
+ prerelease: false
55
+ type: :development
56
+ requirement: &id003 !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ hash: 23
62
+ segments:
63
+ - 1
64
+ - 0
65
+ - 0
66
+ version: 1.0.0
67
+ name: bundler
68
+ version_requirements: *id003
69
+ - !ruby/object:Gem::Dependency
70
+ prerelease: false
71
+ type: :development
72
+ requirement: &id004 !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ hash: 9
78
+ segments:
79
+ - 1
80
+ - 6
81
+ - 3
82
+ version: 1.6.3
83
+ name: jeweler
84
+ version_requirements: *id004
85
+ - !ruby/object:Gem::Dependency
86
+ prerelease: false
87
+ type: :development
88
+ requirement: &id005 !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ hash: 3
94
+ segments:
95
+ - 0
96
+ version: "0"
97
+ name: rcov
98
+ version_requirements: *id005
99
+ - !ruby/object:Gem::Dependency
100
+ prerelease: false
101
+ type: :development
102
+ requirement: &id006 !ruby/object:Gem::Requirement
103
+ none: false
104
+ requirements:
105
+ - - ">="
106
+ - !ruby/object:Gem::Version
107
+ hash: 3
108
+ segments:
109
+ - 0
110
+ version: "0"
111
+ name: yard
112
+ version_requirements: *id006
113
+ - !ruby/object:Gem::Dependency
114
+ prerelease: false
115
+ type: :development
116
+ requirement: &id007 !ruby/object:Gem::Requirement
117
+ none: false
118
+ requirements:
119
+ - - ">="
120
+ - !ruby/object:Gem::Version
121
+ hash: 3
122
+ segments:
123
+ - 0
124
+ version: "0"
125
+ name: guard
126
+ version_requirements: *id007
127
+ - !ruby/object:Gem::Dependency
128
+ prerelease: false
129
+ type: :development
130
+ requirement: &id008 !ruby/object:Gem::Requirement
131
+ none: false
132
+ requirements:
133
+ - - ">="
134
+ - !ruby/object:Gem::Version
135
+ hash: 3
136
+ segments:
137
+ - 0
138
+ version: "0"
139
+ name: guard-rspec
140
+ version_requirements: *id008
141
+ - !ruby/object:Gem::Dependency
142
+ prerelease: false
143
+ type: :development
144
+ requirement: &id009 !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ">="
148
+ - !ruby/object:Gem::Version
149
+ hash: 53
150
+ segments:
151
+ - 0
152
+ - 8
153
+ - 5
154
+ version: 0.8.5
155
+ name: rb-inotify
156
+ version_requirements: *id009
157
+ - !ruby/object:Gem::Dependency
158
+ prerelease: false
159
+ type: :development
160
+ requirement: &id010 !ruby/object:Gem::Requirement
161
+ none: false
162
+ requirements:
163
+ - - ">="
164
+ - !ruby/object:Gem::Version
165
+ hash: 3
166
+ segments:
167
+ - 0
168
+ version: "0"
169
+ name: libnotify
170
+ version_requirements: *id010
171
+ - !ruby/object:Gem::Dependency
172
+ prerelease: false
173
+ type: :development
174
+ requirement: &id011 !ruby/object:Gem::Requirement
175
+ none: false
176
+ requirements:
177
+ - - ">="
178
+ - !ruby/object:Gem::Version
179
+ hash: 3
180
+ segments:
181
+ - 0
182
+ version: "0"
183
+ name: ffi
184
+ version_requirements: *id011
185
+ - !ruby/object:Gem::Dependency
186
+ prerelease: false
187
+ type: :development
188
+ requirement: &id012 !ruby/object:Gem::Requirement
189
+ none: false
190
+ requirements:
191
+ - - ">="
192
+ - !ruby/object:Gem::Version
193
+ hash: 3
194
+ segments:
195
+ - 0
196
+ version: "0"
197
+ name: faker
198
+ version_requirements: *id012
199
+ - !ruby/object:Gem::Dependency
200
+ prerelease: false
201
+ type: :development
202
+ requirement: &id013 !ruby/object:Gem::Requirement
203
+ none: false
204
+ requirements:
205
+ - - ">="
206
+ - !ruby/object:Gem::Version
207
+ hash: 3
208
+ segments:
209
+ - 0
210
+ version: "0"
211
+ name: fakeweb
212
+ version_requirements: *id013
213
+ - !ruby/object:Gem::Dependency
214
+ prerelease: false
215
+ type: :development
216
+ requirement: &id014 !ruby/object:Gem::Requirement
217
+ none: false
218
+ requirements:
219
+ - - ">="
220
+ - !ruby/object:Gem::Version
221
+ hash: 3
222
+ segments:
223
+ - 0
224
+ version: "0"
225
+ name: ruby-debug
226
+ version_requirements: *id014
227
+ description: This gem is intended to wrap Amazon's SellerCentral pages with a Ruby API. Currently this gem supports accessing buyer feedback only.
228
+ email: dev@optoro.com
229
+ executables: []
230
+
231
+ extensions: []
232
+
233
+ extra_rdoc_files:
234
+ - LICENSE.txt
235
+ - README.md
236
+ files:
237
+ - .document
238
+ - .rspec
239
+ - Gemfile
240
+ - Gemfile.lock
241
+ - Guardfile
242
+ - LICENSE.txt
243
+ - README.md
244
+ - Rakefile
245
+ - VERSION
246
+ - lib/amazon_seller_central.rb
247
+ - lib/amazon_seller_central/configuration.rb
248
+ - lib/amazon_seller_central/feedback.rb
249
+ - lib/amazon_seller_central/feedback_page.rb
250
+ - lib/amazon_seller_central/mechanizer.rb
251
+ - spec/amazon_seller_central_spec.rb
252
+ - spec/lib/feedback_page_spec.rb
253
+ - spec/lib/feedback_spec.rb
254
+ - spec/lib/mechanizer_spec.rb
255
+ - spec/spec_helper.rb
256
+ - spec/support/sample_pages.rb
257
+ - spec/support/sample_pages/Feedback Manager.html
258
+ - spec/support/sample_pages/Feedback Page 1.html
259
+ - spec/support/sample_pages/Feedback Page 2.html
260
+ - spec/support/sample_pages/Feedback Page Last.html
261
+ - spec/support/sample_pages/Seller Central Homepage.html
262
+ - spec/support/sample_pages/Seller Central Redirect.html
263
+ - spec/support/sample_pages/Seller Central.html
264
+ has_rdoc: true
265
+ homepage: http://github.com/optoro/amazon_seller_central
266
+ licenses:
267
+ - MIT
268
+ post_install_message:
269
+ rdoc_options: []
270
+
271
+ require_paths:
272
+ - lib
273
+ required_ruby_version: !ruby/object:Gem::Requirement
274
+ none: false
275
+ requirements:
276
+ - - ">="
277
+ - !ruby/object:Gem::Version
278
+ hash: 3
279
+ segments:
280
+ - 0
281
+ version: "0"
282
+ required_rubygems_version: !ruby/object:Gem::Requirement
283
+ none: false
284
+ requirements:
285
+ - - ">="
286
+ - !ruby/object:Gem::Version
287
+ hash: 3
288
+ segments:
289
+ - 0
290
+ version: "0"
291
+ requirements: []
292
+
293
+ rubyforge_project:
294
+ rubygems_version: 1.5.2
295
+ signing_key:
296
+ specification_version: 3
297
+ summary: Ruby API to access Amazon's SellerCentral
298
+ test_files: []
299
+