sucker 1.3.0.pre.2 → 1.3.0.pre.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. data/README.md +32 -19
  2. data/lib/sucker.rb +0 -1
  3. data/lib/sucker.rbc +281 -0
  4. data/lib/sucker/parameters.rb +4 -8
  5. data/lib/sucker/parameters.rbc +723 -0
  6. data/lib/sucker/request.rb +1 -3
  7. data/lib/sucker/request.rbc +2674 -0
  8. data/lib/sucker/response.rb +9 -32
  9. data/lib/sucker/response.rbc +1319 -0
  10. data/lib/sucker/response/hash.rb +46 -0
  11. data/lib/sucker/version.rb +2 -4
  12. data/lib/sucker/version.rbc +130 -0
  13. data/spec/spec_helper.rb +4 -4
  14. data/spec/spec_helper.rbc +230 -0
  15. data/spec/sucker/parameters_spec.rbc +1476 -0
  16. data/spec/sucker/request_spec.rb +0 -11
  17. data/spec/sucker/request_spec.rbc +2642 -0
  18. data/spec/sucker/response/hash_spec.rb +43 -0
  19. data/spec/sucker/response_spec.rb +3 -18
  20. data/spec/sucker/response_spec.rbc +2854 -0
  21. data/spec/sucker_spec.rbc +287 -0
  22. data/spec/support/amazon_credentials.rbc +154 -0
  23. data/spec/support/asins.rbc +335 -0
  24. data/spec/support/vcr.rbc +356 -0
  25. metadata +36 -52
  26. data/spec/fixtures/cassette_library/067972110x.yml +0 -26
  27. data/spec/fixtures/cassette_library/integration/alternate_versions.yml +0 -26
  28. data/spec/fixtures/cassette_library/integration/errors.yml +0 -26
  29. data/spec/fixtures/cassette_library/integration/france.yml +0 -26
  30. data/spec/fixtures/cassette_library/integration/images.yml +0 -26
  31. data/spec/fixtures/cassette_library/integration/item_lookup/multiple.yml +0 -26
  32. data/spec/fixtures/cassette_library/integration/item_lookup/single.yml +0 -26
  33. data/spec/fixtures/cassette_library/integration/item_search.yml +0 -26
  34. data/spec/fixtures/cassette_library/integration/japan.yml +0 -26
  35. data/spec/fixtures/cassette_library/integration/keyword_search.yml +0 -26
  36. data/spec/fixtures/cassette_library/integration/kindle.yml +0 -26
  37. data/spec/fixtures/cassette_library/integration/kindle_2.yml +0 -26
  38. data/spec/fixtures/cassette_library/integration/multiple_locales.yml +0 -151
  39. data/spec/fixtures/cassette_library/integration/power_search.yml +0 -26
  40. data/spec/fixtures/cassette_library/integration/related_items/child.yml +0 -26
  41. data/spec/fixtures/cassette_library/integration/related_items/parent.yml +0 -26
  42. data/spec/fixtures/cassette_library/integration/seller_listings_search.yml +0 -26
  43. data/spec/fixtures/cassette_library/integration/twenty_items.yml +0 -26
  44. data/spec/fixtures/cassette_library/unit/sucker/request.yml +0 -61
  45. data/spec/fixtures/cassette_library/unit/sucker/response.yml +0 -26
@@ -0,0 +1,356 @@
1
+ !RBIX
2
+ 0
3
+ x
4
+ M
5
+ 1
6
+ n
7
+ n
8
+ x
9
+ 10
10
+ __script__
11
+ i
12
+ 29
13
+ 5
14
+ 7
15
+ 0
16
+ 64
17
+ 47
18
+ 49
19
+ 1
20
+ 1
21
+ 15
22
+ 45
23
+ 2
24
+ 3
25
+ 56
26
+ 4
27
+ 50
28
+ 5
29
+ 0
30
+ 15
31
+ 45
32
+ 6
33
+ 7
34
+ 56
35
+ 8
36
+ 50
37
+ 9
38
+ 0
39
+ 15
40
+ 2
41
+ 11
42
+ I
43
+ 2
44
+ I
45
+ 0
46
+ I
47
+ 0
48
+ I
49
+ 0
50
+ n
51
+ p
52
+ 10
53
+ s
54
+ 3
55
+ vcr
56
+ x
57
+ 7
58
+ require
59
+ x
60
+ 3
61
+ VCR
62
+ n
63
+ M
64
+ 1
65
+ p
66
+ 2
67
+ x
68
+ 9
69
+ for_block
70
+ t
71
+ n
72
+ x
73
+ 9
74
+ __block__
75
+ i
76
+ 74
77
+ 57
78
+ 19
79
+ 0
80
+ 15
81
+ 20
82
+ 0
83
+ 45
84
+ 0
85
+ 1
86
+ 65
87
+ 49
88
+ 2
89
+ 0
90
+ 49
91
+ 3
92
+ 1
93
+ 7
94
+ 4
95
+ 64
96
+ 81
97
+ 5
98
+ 13
99
+ 18
100
+ 2
101
+ 49
102
+ 6
103
+ 1
104
+ 15
105
+ 15
106
+ 20
107
+ 0
108
+ 44
109
+ 43
110
+ 7
111
+ 80
112
+ 49
113
+ 8
114
+ 1
115
+ 13
116
+ 7
117
+ 9
118
+ 7
119
+ 10
120
+ 49
121
+ 11
122
+ 2
123
+ 15
124
+ 13
125
+ 7
126
+ 12
127
+ 7
128
+ 13
129
+ 35
130
+ 1
131
+ 49
132
+ 11
133
+ 2
134
+ 15
135
+ 13
136
+ 18
137
+ 2
138
+ 49
139
+ 14
140
+ 1
141
+ 15
142
+ 15
143
+ 20
144
+ 0
145
+ 7
146
+ 15
147
+ 49
148
+ 16
149
+ 1
150
+ 11
151
+ I
152
+ 7
153
+ I
154
+ 1
155
+ I
156
+ 1
157
+ I
158
+ 1
159
+ n
160
+ p
161
+ 17
162
+ x
163
+ 4
164
+ File
165
+ n
166
+ x
167
+ 11
168
+ active_path
169
+ x
170
+ 7
171
+ dirname
172
+ s
173
+ 29
174
+ /../fixtures/cassette_library
175
+ x
176
+ 1
177
+ +
178
+ x
179
+ 21
180
+ cassette_library_dir=
181
+ x
182
+ 4
183
+ Hash
184
+ x
185
+ 16
186
+ new_from_literal
187
+ x
188
+ 6
189
+ record
190
+ x
191
+ 4
192
+ none
193
+ x
194
+ 3
195
+ []=
196
+ x
197
+ 17
198
+ match_requests_on
199
+ x
200
+ 4
201
+ host
202
+ x
203
+ 25
204
+ default_cassette_options=
205
+ x
206
+ 7
207
+ webmock
208
+ x
209
+ 9
210
+ stub_with
211
+ p
212
+ 15
213
+ I
214
+ 0
215
+ I
216
+ 3
217
+ I
218
+ 4
219
+ I
220
+ 4
221
+ I
222
+ 1d
223
+ I
224
+ 5
225
+ I
226
+ 1f
227
+ I
228
+ 7
229
+ I
230
+ 27
231
+ I
232
+ 6
233
+ I
234
+ 30
235
+ I
236
+ 7
237
+ I
238
+ 42
239
+ I
240
+ 8
241
+ I
242
+ 4a
243
+ x
244
+ 50
245
+ /Users/hakanensari/code/sucker/spec/support/vcr.rb
246
+ p
247
+ 1
248
+ x
249
+ 1
250
+ c
251
+ x
252
+ 6
253
+ config
254
+ x
255
+ 5
256
+ RSpec
257
+ n
258
+ M
259
+ 1
260
+ p
261
+ 2
262
+ x
263
+ 9
264
+ for_block
265
+ t
266
+ n
267
+ x
268
+ 9
269
+ __block__
270
+ i
271
+ 17
272
+ 57
273
+ 19
274
+ 0
275
+ 15
276
+ 20
277
+ 0
278
+ 45
279
+ 0
280
+ 1
281
+ 43
282
+ 2
283
+ 43
284
+ 3
285
+ 49
286
+ 4
287
+ 1
288
+ 11
289
+ I
290
+ 4
291
+ I
292
+ 1
293
+ I
294
+ 1
295
+ I
296
+ 1
297
+ n
298
+ p
299
+ 5
300
+ x
301
+ 3
302
+ VCR
303
+ n
304
+ x
305
+ 5
306
+ RSpec
307
+ x
308
+ 6
309
+ Macros
310
+ x
311
+ 6
312
+ extend
313
+ p
314
+ 5
315
+ I
316
+ 0
317
+ I
318
+ b
319
+ I
320
+ 4
321
+ I
322
+ c
323
+ I
324
+ 11
325
+ x
326
+ 50
327
+ /Users/hakanensari/code/sucker/spec/support/vcr.rb
328
+ p
329
+ 1
330
+ x
331
+ 6
332
+ config
333
+ x
334
+ 9
335
+ configure
336
+ p
337
+ 7
338
+ I
339
+ 0
340
+ I
341
+ 1
342
+ I
343
+ 9
344
+ I
345
+ 3
346
+ I
347
+ 12
348
+ I
349
+ b
350
+ I
351
+ 1d
352
+ x
353
+ 50
354
+ /Users/hakanensari/code/sucker/spec/support/vcr.rb
355
+ p
356
+ 0
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: sucker
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease: 6
5
- version: 1.3.0.pre.2
5
+ version: 1.3.0.pre.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Paper Cavalier
@@ -10,51 +10,51 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-02-23 00:00:00 +00:00
13
+ date: 2011-02-25 00:00:00 +00:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
- name: activesupport
17
+ name: nokogiri
18
18
  prerelease: false
19
19
  requirement: &id001 !ruby/object:Gem::Requirement
20
20
  none: false
21
21
  requirements:
22
22
  - - ~>
23
23
  - !ruby/object:Gem::Version
24
- version: 3.0.0
24
+ version: 1.4.0
25
25
  type: :runtime
26
26
  version_requirements: *id001
27
27
  - !ruby/object:Gem::Dependency
28
- name: i18n
28
+ name: activesupport
29
29
  prerelease: false
30
30
  requirement: &id002 !ruby/object:Gem::Requirement
31
31
  none: false
32
32
  requirements:
33
33
  - - ~>
34
34
  - !ruby/object:Gem::Version
35
- version: 0.5.0
36
- type: :runtime
35
+ version: 3.0.0
36
+ type: :development
37
37
  version_requirements: *id002
38
38
  - !ruby/object:Gem::Dependency
39
- name: nokogiri
39
+ name: cucumber
40
40
  prerelease: false
41
41
  requirement: &id003 !ruby/object:Gem::Requirement
42
42
  none: false
43
43
  requirements:
44
44
  - - ~>
45
45
  - !ruby/object:Gem::Version
46
- version: 1.5.0.beta.4
47
- type: :runtime
46
+ version: 0.10.0
47
+ type: :development
48
48
  version_requirements: *id003
49
49
  - !ruby/object:Gem::Dependency
50
- name: cucumber
50
+ name: i18n
51
51
  prerelease: false
52
52
  requirement: &id004 !ruby/object:Gem::Requirement
53
53
  none: false
54
54
  requirements:
55
55
  - - ~>
56
56
  - !ruby/object:Gem::Version
57
- version: 0.10.0
57
+ version: 0.5.0
58
58
  type: :development
59
59
  version_requirements: *id004
60
60
  - !ruby/object:Gem::Dependency
@@ -123,16 +123,21 @@ extra_rdoc_files: []
123
123
 
124
124
  files:
125
125
  - lib/sucker/parameters.rb
126
+ - lib/sucker/parameters.rbc
126
127
  - lib/sucker/request.rb
128
+ - lib/sucker/request.rbc
129
+ - lib/sucker/response/hash.rb
127
130
  - lib/sucker/response.rb
131
+ - lib/sucker/response.rbc
128
132
  - lib/sucker/version.rb
133
+ - lib/sucker/version.rbc
129
134
  - lib/sucker.rb
135
+ - lib/sucker.rbc
130
136
  - LICENSE
131
137
  - README.md
132
138
  - spec/fixtures/asins.txt
133
139
  - spec/fixtures/cassette_library/0394751221.yml
134
140
  - spec/fixtures/cassette_library/0415246334.yml
135
- - spec/fixtures/cassette_library/067972110x.yml
136
141
  - spec/fixtures/cassette_library/0679753354.yml
137
142
  - spec/fixtures/cassette_library/0816614024-0007218095.yml
138
143
  - spec/fixtures/cassette_library/0816614024-0143105825.yml
@@ -146,38 +151,28 @@ files:
146
151
  - spec/fixtures/cassette_library/deleuze-binding-kindle.yml
147
152
  - spec/fixtures/cassette_library/deleuze.yml
148
153
  - spec/fixtures/cassette_library/george-orwell.yml
149
- - spec/fixtures/cassette_library/integration/alternate_versions.yml
150
- - spec/fixtures/cassette_library/integration/errors.yml
151
- - spec/fixtures/cassette_library/integration/france.yml
152
- - spec/fixtures/cassette_library/integration/images.yml
153
- - spec/fixtures/cassette_library/integration/item_lookup/multiple.yml
154
- - spec/fixtures/cassette_library/integration/item_lookup/single.yml
155
- - spec/fixtures/cassette_library/integration/item_search.yml
156
- - spec/fixtures/cassette_library/integration/japan.yml
157
- - spec/fixtures/cassette_library/integration/keyword_search.yml
158
- - spec/fixtures/cassette_library/integration/kindle.yml
159
- - spec/fixtures/cassette_library/integration/kindle_2.yml
160
- - spec/fixtures/cassette_library/integration/multiple_locales.yml
161
- - spec/fixtures/cassette_library/integration/power_search.yml
162
- - spec/fixtures/cassette_library/integration/related_items/child.yml
163
- - spec/fixtures/cassette_library/integration/related_items/parent.yml
164
- - spec/fixtures/cassette_library/integration/seller_listings_search.yml
165
- - spec/fixtures/cassette_library/integration/twenty_items.yml
166
154
  - spec/fixtures/cassette_library/offer-listing-id.yml
167
155
  - spec/fixtures/cassette_library/spec/sucker/request.yml
168
156
  - spec/fixtures/cassette_library/spec/sucker/response.yml
169
- - spec/fixtures/cassette_library/unit/sucker/request.yml
170
- - spec/fixtures/cassette_library/unit/sucker/response.yml
171
157
  - spec/spec_helper.rb
158
+ - spec/spec_helper.rbc
172
159
  - spec/sucker/parameters_spec.rb
160
+ - spec/sucker/parameters_spec.rbc
173
161
  - spec/sucker/request_spec.rb
162
+ - spec/sucker/request_spec.rbc
163
+ - spec/sucker/response/hash_spec.rb
174
164
  - spec/sucker/response_spec.rb
165
+ - spec/sucker/response_spec.rbc
175
166
  - spec/sucker_spec.rb
167
+ - spec/sucker_spec.rbc
176
168
  - spec/support/amazon.yml
177
169
  - spec/support/amazon.yml.example
178
170
  - spec/support/amazon_credentials.rb
171
+ - spec/support/amazon_credentials.rbc
179
172
  - spec/support/asins.rb
173
+ - spec/support/asins.rbc
180
174
  - spec/support/vcr.rb
175
+ - spec/support/vcr.rbc
181
176
  has_rdoc: true
182
177
  homepage: https://rubygems.org/gems/sucker
183
178
  licenses: []
@@ -210,7 +205,6 @@ test_files:
210
205
  - spec/fixtures/asins.txt
211
206
  - spec/fixtures/cassette_library/0394751221.yml
212
207
  - spec/fixtures/cassette_library/0415246334.yml
213
- - spec/fixtures/cassette_library/067972110x.yml
214
208
  - spec/fixtures/cassette_library/0679753354.yml
215
209
  - spec/fixtures/cassette_library/0816614024-0007218095.yml
216
210
  - spec/fixtures/cassette_library/0816614024-0143105825.yml
@@ -224,35 +218,25 @@ test_files:
224
218
  - spec/fixtures/cassette_library/deleuze-binding-kindle.yml
225
219
  - spec/fixtures/cassette_library/deleuze.yml
226
220
  - spec/fixtures/cassette_library/george-orwell.yml
227
- - spec/fixtures/cassette_library/integration/alternate_versions.yml
228
- - spec/fixtures/cassette_library/integration/errors.yml
229
- - spec/fixtures/cassette_library/integration/france.yml
230
- - spec/fixtures/cassette_library/integration/images.yml
231
- - spec/fixtures/cassette_library/integration/item_lookup/multiple.yml
232
- - spec/fixtures/cassette_library/integration/item_lookup/single.yml
233
- - spec/fixtures/cassette_library/integration/item_search.yml
234
- - spec/fixtures/cassette_library/integration/japan.yml
235
- - spec/fixtures/cassette_library/integration/keyword_search.yml
236
- - spec/fixtures/cassette_library/integration/kindle.yml
237
- - spec/fixtures/cassette_library/integration/kindle_2.yml
238
- - spec/fixtures/cassette_library/integration/multiple_locales.yml
239
- - spec/fixtures/cassette_library/integration/power_search.yml
240
- - spec/fixtures/cassette_library/integration/related_items/child.yml
241
- - spec/fixtures/cassette_library/integration/related_items/parent.yml
242
- - spec/fixtures/cassette_library/integration/seller_listings_search.yml
243
- - spec/fixtures/cassette_library/integration/twenty_items.yml
244
221
  - spec/fixtures/cassette_library/offer-listing-id.yml
245
222
  - spec/fixtures/cassette_library/spec/sucker/request.yml
246
223
  - spec/fixtures/cassette_library/spec/sucker/response.yml
247
- - spec/fixtures/cassette_library/unit/sucker/request.yml
248
- - spec/fixtures/cassette_library/unit/sucker/response.yml
249
224
  - spec/spec_helper.rb
225
+ - spec/spec_helper.rbc
250
226
  - spec/sucker/parameters_spec.rb
227
+ - spec/sucker/parameters_spec.rbc
251
228
  - spec/sucker/request_spec.rb
229
+ - spec/sucker/request_spec.rbc
230
+ - spec/sucker/response/hash_spec.rb
252
231
  - spec/sucker/response_spec.rb
232
+ - spec/sucker/response_spec.rbc
253
233
  - spec/sucker_spec.rb
234
+ - spec/sucker_spec.rbc
254
235
  - spec/support/amazon.yml
255
236
  - spec/support/amazon.yml.example
256
237
  - spec/support/amazon_credentials.rb
238
+ - spec/support/amazon_credentials.rbc
257
239
  - spec/support/asins.rb
240
+ - spec/support/asins.rbc
258
241
  - spec/support/vcr.rb
242
+ - spec/support/vcr.rbc