sucker 1.0.0 → 1.1.0

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.
Files changed (56) hide show
  1. data/CHANGELOG.md +9 -18
  2. data/README.md +9 -5
  3. data/lib/sucker.rb +0 -3
  4. data/lib/sucker/request.rb +96 -18
  5. data/lib/sucker/response.rb +20 -14
  6. data/lib/sucker/version.rb +1 -1
  7. data/spec/integration/multiple_locales_spec.rb +28 -3
  8. data/spec/support/vcr.rb +3 -2
  9. data/spec/unit/sucker/request_spec.rb +109 -29
  10. data/spec/unit/sucker/response_spec.rb +26 -23
  11. metadata +23 -137
  12. data/lib/sucker.rbc +0 -341
  13. data/lib/sucker/request.rbc +0 -2481
  14. data/lib/sucker/response.rbc +0 -1554
  15. data/lib/sucker/version.rbc +0 -130
  16. data/spec/fixtures/cassette_library/integration/alternate_versions.yml +0 -27
  17. data/spec/fixtures/cassette_library/integration/errors.yml +0 -27
  18. data/spec/fixtures/cassette_library/integration/france.yml +0 -27
  19. data/spec/fixtures/cassette_library/integration/images.yml +0 -27
  20. data/spec/fixtures/cassette_library/integration/item_lookup/multiple.yml +0 -27
  21. data/spec/fixtures/cassette_library/integration/item_lookup/single.yml +0 -27
  22. data/spec/fixtures/cassette_library/integration/item_search.yml +0 -27
  23. data/spec/fixtures/cassette_library/integration/japan.yml +0 -27
  24. data/spec/fixtures/cassette_library/integration/keyword_search.yml +0 -27
  25. data/spec/fixtures/cassette_library/integration/kindle.yml +0 -27
  26. data/spec/fixtures/cassette_library/integration/kindle_2.yml +0 -27
  27. data/spec/fixtures/cassette_library/integration/multiple_locales.yml +0 -157
  28. data/spec/fixtures/cassette_library/integration/power_search.yml +0 -27
  29. data/spec/fixtures/cassette_library/integration/related_items/child.yml +0 -27
  30. data/spec/fixtures/cassette_library/integration/related_items/parent.yml +0 -27
  31. data/spec/fixtures/cassette_library/integration/seller_listings_search.yml +0 -27
  32. data/spec/fixtures/cassette_library/integration/twenty_items.yml +0 -27
  33. data/spec/fixtures/cassette_library/unit/sucker/request.yml +0 -29
  34. data/spec/fixtures/cassette_library/unit/sucker/response.yml +0 -27
  35. data/spec/integration/alternate_versions_spec.rbc +0 -843
  36. data/spec/integration/errors_spec.rbc +0 -964
  37. data/spec/integration/france_spec.rbc +0 -1012
  38. data/spec/integration/images_spec.rbc +0 -1047
  39. data/spec/integration/item_lookup_spec.rbc +0 -1723
  40. data/spec/integration/item_search_spec.rbc +0 -926
  41. data/spec/integration/japan_spec.rbc +0 -849
  42. data/spec/integration/keyword_search_spec.rbc +0 -838
  43. data/spec/integration/kindle_spec.rbc +0 -1425
  44. data/spec/integration/multiple_locales_spec.rbc +0 -1090
  45. data/spec/integration/power_search_spec.rbc +0 -838
  46. data/spec/integration/related_items_spec.rbc +0 -1228
  47. data/spec/integration/seller_listing_search_spec.rbc +0 -852
  48. data/spec/integration/twenty_items_spec.rbc +0 -1166
  49. data/spec/spec_helper.rbc +0 -231
  50. data/spec/support/amazon.yml +0 -3
  51. data/spec/support/amazon_credentials.rbc +0 -154
  52. data/spec/support/asins.rbc +0 -335
  53. data/spec/support/vcr.rbc +0 -360
  54. data/spec/unit/sucker/request_spec.rbc +0 -4031
  55. data/spec/unit/sucker/response_spec.rbc +0 -3787
  56. data/spec/unit/sucker_spec.rbc +0 -299
@@ -1,838 +0,0 @@
1
- !RBIX
2
- 0
3
- x
4
- M
5
- 1
6
- n
7
- n
8
- x
9
- 10
10
- __script__
11
- i
12
- 37
13
- 5
14
- 7
15
- 0
16
- 64
17
- 47
18
- 49
19
- 1
20
- 1
21
- 15
22
- 99
23
- 7
24
- 2
25
- 65
26
- 49
27
- 3
28
- 2
29
- 13
30
- 99
31
- 12
32
- 7
33
- 4
34
- 12
35
- 7
36
- 5
37
- 12
38
- 65
39
- 12
40
- 49
41
- 6
42
- 4
43
- 15
44
- 49
45
- 4
46
- 0
47
- 15
48
- 2
49
- 11
50
- I
51
- 6
52
- I
53
- 0
54
- I
55
- 0
56
- I
57
- 0
58
- n
59
- p
60
- 7
61
- s
62
- 11
63
- spec_helper
64
- x
65
- 7
66
- require
67
- x
68
- 6
69
- Sucker
70
- x
71
- 11
72
- open_module
73
- x
74
- 15
75
- __module_init__
76
- M
77
- 1
78
- n
79
- n
80
- x
81
- 6
82
- Sucker
83
- i
84
- 13
85
- 5
86
- 66
87
- 5
88
- 7
89
- 0
90
- 64
91
- 56
92
- 1
93
- 47
94
- 50
95
- 2
96
- 1
97
- 11
98
- I
99
- 3
100
- I
101
- 0
102
- I
103
- 0
104
- I
105
- 0
106
- n
107
- p
108
- 3
109
- s
110
- 14
111
- Keyword Search
112
- M
113
- 1
114
- p
115
- 2
116
- x
117
- 9
118
- for_block
119
- t
120
- n
121
- x
122
- 6
123
- Sucker
124
- i
125
- 46
126
- 5
127
- 7
128
- 0
129
- 64
130
- 44
131
- 43
132
- 1
133
- 79
134
- 49
135
- 2
136
- 1
137
- 13
138
- 7
139
- 3
140
- 7
141
- 4
142
- 49
143
- 5
144
- 2
145
- 15
146
- 47
147
- 49
148
- 6
149
- 2
150
- 15
151
- 5
152
- 7
153
- 7
154
- 56
155
- 8
156
- 47
157
- 50
158
- 9
159
- 1
160
- 15
161
- 5
162
- 7
163
- 10
164
- 64
165
- 56
166
- 11
167
- 47
168
- 50
169
- 12
170
- 1
171
- 11
172
- I
173
- 7
174
- I
175
- 0
176
- I
177
- 0
178
- I
179
- 0
180
- I
181
- -2
182
- p
183
- 13
184
- s
185
- 26
186
- integration/keyword_search
187
- x
188
- 4
189
- Hash
190
- x
191
- 16
192
- new_from_literal
193
- x
194
- 6
195
- record
196
- x
197
- 12
198
- new_episodes
199
- x
200
- 3
201
- []=
202
- x
203
- 16
204
- use_vcr_cassette
205
- x
206
- 6
207
- worker
208
- M
209
- 1
210
- p
211
- 2
212
- x
213
- 9
214
- for_block
215
- t
216
- n
217
- x
218
- 6
219
- Sucker
220
- i
221
- 188
222
- 45
223
- 0
224
- 1
225
- 13
226
- 71
227
- 2
228
- 47
229
- 9
230
- 71
231
- 47
232
- 49
233
- 3
234
- 0
235
- 13
236
- 44
237
- 43
238
- 4
239
- 4
240
- 3
241
- 49
242
- 5
243
- 1
244
- 13
245
- 7
246
- 6
247
- 7
248
- 7
249
- 64
250
- 49
251
- 8
252
- 2
253
- 15
254
- 13
255
- 7
256
- 9
257
- 5
258
- 48
259
- 10
260
- 7
261
- 11
262
- 64
263
- 49
264
- 12
265
- 1
266
- 49
267
- 8
268
- 2
269
- 15
270
- 13
271
- 7
272
- 13
273
- 5
274
- 48
275
- 10
276
- 7
277
- 14
278
- 64
279
- 49
280
- 12
281
- 1
282
- 49
283
- 8
284
- 2
285
- 15
286
- 47
287
- 49
288
- 15
289
- 1
290
- 15
291
- 8
292
- 124
293
- 44
294
- 43
295
- 4
296
- 4
297
- 3
298
- 49
299
- 5
300
- 1
301
- 13
302
- 7
303
- 6
304
- 7
305
- 7
306
- 64
307
- 49
308
- 8
309
- 2
310
- 15
311
- 13
312
- 7
313
- 9
314
- 5
315
- 48
316
- 10
317
- 7
318
- 11
319
- 64
320
- 49
321
- 12
322
- 1
323
- 49
324
- 8
325
- 2
326
- 15
327
- 13
328
- 7
329
- 13
330
- 5
331
- 48
332
- 10
333
- 7
334
- 14
335
- 64
336
- 49
337
- 12
338
- 1
339
- 49
340
- 8
341
- 2
342
- 15
343
- 49
344
- 2
345
- 1
346
- 19
347
- 0
348
- 15
349
- 20
350
- 0
351
- 44
352
- 43
353
- 4
354
- 4
355
- 4
356
- 49
357
- 5
358
- 1
359
- 13
360
- 7
361
- 16
362
- 64
363
- 7
364
- 17
365
- 64
366
- 49
367
- 8
368
- 2
369
- 15
370
- 13
371
- 7
372
- 18
373
- 64
374
- 7
375
- 19
376
- 64
377
- 49
378
- 8
379
- 2
380
- 15
381
- 13
382
- 7
383
- 20
384
- 64
385
- 7
386
- 21
387
- 64
388
- 49
389
- 8
390
- 2
391
- 15
392
- 13
393
- 7
394
- 22
395
- 64
396
- 7
397
- 23
398
- 64
399
- 49
400
- 8
401
- 2
402
- 15
403
- 49
404
- 24
405
- 1
406
- 15
407
- 20
408
- 0
409
- 11
410
- I
411
- 9
412
- I
413
- 1
414
- I
415
- 0
416
- I
417
- 0
418
- I
419
- -2
420
- p
421
- 25
422
- x
423
- 6
424
- Sucker
425
- n
426
- x
427
- 3
428
- new
429
- x
430
- 8
431
- allocate
432
- x
433
- 4
434
- Hash
435
- x
436
- 16
437
- new_from_literal
438
- x
439
- 6
440
- locale
441
- s
442
- 2
443
- us
444
- x
445
- 3
446
- []=
447
- x
448
- 3
449
- key
450
- x
451
- 6
452
- amazon
453
- s
454
- 3
455
- key
456
- x
457
- 2
458
- []
459
- x
460
- 6
461
- secret
462
- s
463
- 6
464
- secret
465
- x
466
- 10
467
- initialize
468
- s
469
- 9
470
- Operation
471
- s
472
- 10
473
- ItemSearch
474
- s
475
- 11
476
- SearchIndex
477
- s
478
- 5
479
- Books
480
- s
481
- 8
482
- Keywords
483
- s
484
- 11
485
- zizek lacan
486
- s
487
- 4
488
- Sort
489
- s
490
- 13
491
- relevancerank
492
- x
493
- 2
494
- <<
495
- p
496
- 33
497
- I
498
- 0
499
- I
500
- 9
501
- I
502
- 0
503
- I
504
- a
505
- I
506
- e
507
- I
508
- d
509
- I
510
- 17
511
- I
512
- b
513
- I
514
- 21
515
- I
516
- c
517
- I
518
- 31
519
- I
520
- d
521
- I
522
- 50
523
- I
524
- b
525
- I
526
- 5a
527
- I
528
- c
529
- I
530
- 6a
531
- I
532
- d
533
- I
534
- 7f
535
- I
536
- e
537
- I
538
- 81
539
- I
540
- 12
541
- I
542
- 8a
543
- I
544
- f
545
- I
546
- 95
547
- I
548
- 10
549
- I
550
- a0
551
- I
552
- 11
553
- I
554
- ab
555
- I
556
- 12
557
- I
558
- b9
559
- I
560
- 13
561
- I
562
- bc
563
- x
564
- 62
565
- /Users/snl/code/sucker/spec/integration/keyword_search_spec.rb
566
- p
567
- 1
568
- x
569
- 6
570
- worker
571
- x
572
- 3
573
- let
574
- s
575
- 15
576
- returns matches
577
- M
578
- 1
579
- p
580
- 2
581
- x
582
- 9
583
- for_block
584
- t
585
- n
586
- x
587
- 6
588
- Sucker
589
- i
590
- 35
591
- 5
592
- 48
593
- 0
594
- 49
595
- 1
596
- 0
597
- 7
598
- 2
599
- 64
600
- 49
601
- 3
602
- 1
603
- 19
604
- 0
605
- 15
606
- 20
607
- 0
608
- 49
609
- 4
610
- 0
611
- 49
612
- 5
613
- 0
614
- 78
615
- 85
616
- 6
617
- 15
618
- 20
619
- 0
620
- 56
621
- 7
622
- 50
623
- 8
624
- 0
625
- 11
626
- I
627
- 4
628
- I
629
- 1
630
- I
631
- 0
632
- I
633
- 0
634
- I
635
- -2
636
- p
637
- 9
638
- x
639
- 6
640
- worker
641
- x
642
- 3
643
- get
644
- s
645
- 4
646
- Item
647
- x
648
- 4
649
- find
650
- x
651
- 4
652
- size
653
- x
654
- 6
655
- should
656
- x
657
- 1
658
- >
659
- M
660
- 1
661
- p
662
- 2
663
- x
664
- 9
665
- for_block
666
- t
667
- n
668
- x
669
- 6
670
- Sucker
671
- i
672
- 25
673
- 57
674
- 19
675
- 0
676
- 15
677
- 20
678
- 0
679
- 7
680
- 0
681
- 64
682
- 49
683
- 1
684
- 1
685
- 7
686
- 2
687
- 64
688
- 49
689
- 1
690
- 1
691
- 5
692
- 48
693
- 3
694
- 49
695
- 4
696
- 1
697
- 11
698
- I
699
- 4
700
- I
701
- 1
702
- I
703
- 1
704
- I
705
- 1
706
- n
707
- p
708
- 5
709
- s
710
- 14
711
- ItemAttributes
712
- x
713
- 2
714
- []
715
- s
716
- 5
717
- Title
718
- x
719
- 6
720
- be_nil
721
- x
722
- 10
723
- should_not
724
- p
725
- 5
726
- I
727
- 0
728
- I
729
- 19
730
- I
731
- 4
732
- I
733
- 1a
734
- I
735
- 19
736
- x
737
- 62
738
- /Users/snl/code/sucker/spec/integration/keyword_search_spec.rb
739
- p
740
- 1
741
- x
742
- 4
743
- item
744
- x
745
- 4
746
- each
747
- p
748
- 9
749
- I
750
- 0
751
- I
752
- 16
753
- I
754
- 0
755
- I
756
- 17
757
- I
758
- f
759
- I
760
- 18
761
- I
762
- 1b
763
- I
764
- 19
765
- I
766
- 23
767
- x
768
- 62
769
- /Users/snl/code/sucker/spec/integration/keyword_search_spec.rb
770
- p
771
- 1
772
- x
773
- 5
774
- items
775
- x
776
- 2
777
- it
778
- p
779
- 9
780
- I
781
- 0
782
- I
783
- 5
784
- I
785
- 0
786
- I
787
- 7
788
- I
789
- 19
790
- I
791
- 9
792
- I
793
- 23
794
- I
795
- 16
796
- I
797
- 2e
798
- x
799
- 62
800
- /Users/snl/code/sucker/spec/integration/keyword_search_spec.rb
801
- p
802
- 0
803
- x
804
- 8
805
- describe
806
- p
807
- 3
808
- I
809
- 2
810
- I
811
- 5
812
- I
813
- d
814
- x
815
- 62
816
- /Users/snl/code/sucker/spec/integration/keyword_search_spec.rb
817
- p
818
- 0
819
- x
820
- 13
821
- attach_method
822
- p
823
- 5
824
- I
825
- 0
826
- I
827
- 1
828
- I
829
- 9
830
- I
831
- 3
832
- I
833
- 25
834
- x
835
- 62
836
- /Users/snl/code/sucker/spec/integration/keyword_search_spec.rb
837
- p
838
- 0