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,1047 +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
- 11
111
- Item lookup
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
- 11
126
- 5
127
- 7
128
- 0
129
- 64
130
- 56
131
- 1
132
- 47
133
- 50
134
- 2
135
- 1
136
- 11
137
- I
138
- 4
139
- I
140
- 0
141
- I
142
- 0
143
- I
144
- 0
145
- I
146
- -2
147
- p
148
- 3
149
- s
150
- 35
151
- when response group includes images
152
- M
153
- 1
154
- p
155
- 2
156
- x
157
- 9
158
- for_block
159
- t
160
- n
161
- x
162
- 6
163
- Sucker
164
- i
165
- 68
166
- 5
167
- 7
168
- 0
169
- 64
170
- 44
171
- 43
172
- 1
173
- 79
174
- 49
175
- 2
176
- 1
177
- 13
178
- 7
179
- 3
180
- 7
181
- 4
182
- 49
183
- 5
184
- 2
185
- 15
186
- 47
187
- 49
188
- 6
189
- 2
190
- 15
191
- 5
192
- 7
193
- 7
194
- 56
195
- 8
196
- 47
197
- 50
198
- 9
199
- 1
200
- 15
201
- 5
202
- 7
203
- 10
204
- 64
205
- 56
206
- 11
207
- 47
208
- 50
209
- 12
210
- 1
211
- 15
212
- 5
213
- 7
214
- 13
215
- 64
216
- 56
217
- 14
218
- 47
219
- 50
220
- 12
221
- 1
222
- 15
223
- 5
224
- 7
225
- 15
226
- 64
227
- 56
228
- 16
229
- 47
230
- 50
231
- 12
232
- 1
233
- 11
234
- I
235
- 7
236
- I
237
- 0
238
- I
239
- 0
240
- I
241
- 0
242
- I
243
- -2
244
- p
245
- 17
246
- s
247
- 18
248
- integration/images
249
- x
250
- 4
251
- Hash
252
- x
253
- 16
254
- new_from_literal
255
- x
256
- 6
257
- record
258
- x
259
- 12
260
- new_episodes
261
- x
262
- 3
263
- []=
264
- x
265
- 16
266
- use_vcr_cassette
267
- x
268
- 4
269
- item
270
- M
271
- 1
272
- p
273
- 2
274
- x
275
- 9
276
- for_block
277
- t
278
- n
279
- x
280
- 6
281
- Sucker
282
- i
283
- 200
284
- 45
285
- 0
286
- 1
287
- 13
288
- 71
289
- 2
290
- 47
291
- 9
292
- 71
293
- 47
294
- 49
295
- 3
296
- 0
297
- 13
298
- 44
299
- 43
300
- 4
301
- 4
302
- 3
303
- 49
304
- 5
305
- 1
306
- 13
307
- 7
308
- 6
309
- 7
310
- 7
311
- 64
312
- 49
313
- 8
314
- 2
315
- 15
316
- 13
317
- 7
318
- 9
319
- 5
320
- 48
321
- 10
322
- 7
323
- 11
324
- 64
325
- 49
326
- 12
327
- 1
328
- 49
329
- 8
330
- 2
331
- 15
332
- 13
333
- 7
334
- 13
335
- 5
336
- 48
337
- 10
338
- 7
339
- 14
340
- 64
341
- 49
342
- 12
343
- 1
344
- 49
345
- 8
346
- 2
347
- 15
348
- 47
349
- 49
350
- 15
351
- 1
352
- 15
353
- 8
354
- 124
355
- 44
356
- 43
357
- 4
358
- 4
359
- 3
360
- 49
361
- 5
362
- 1
363
- 13
364
- 7
365
- 6
366
- 7
367
- 7
368
- 64
369
- 49
370
- 8
371
- 2
372
- 15
373
- 13
374
- 7
375
- 9
376
- 5
377
- 48
378
- 10
379
- 7
380
- 11
381
- 64
382
- 49
383
- 12
384
- 1
385
- 49
386
- 8
387
- 2
388
- 15
389
- 13
390
- 7
391
- 13
392
- 5
393
- 48
394
- 10
395
- 7
396
- 14
397
- 64
398
- 49
399
- 12
400
- 1
401
- 49
402
- 8
403
- 2
404
- 15
405
- 49
406
- 2
407
- 1
408
- 19
409
- 0
410
- 15
411
- 20
412
- 0
413
- 44
414
- 43
415
- 4
416
- 4
417
- 4
418
- 49
419
- 5
420
- 1
421
- 13
422
- 7
423
- 16
424
- 64
425
- 7
426
- 17
427
- 64
428
- 49
429
- 8
430
- 2
431
- 15
432
- 13
433
- 7
434
- 18
435
- 64
436
- 7
437
- 19
438
- 64
439
- 49
440
- 8
441
- 2
442
- 15
443
- 13
444
- 7
445
- 20
446
- 64
447
- 7
448
- 21
449
- 64
450
- 49
451
- 8
452
- 2
453
- 15
454
- 13
455
- 7
456
- 22
457
- 64
458
- 7
459
- 23
460
- 64
461
- 49
462
- 8
463
- 2
464
- 15
465
- 49
466
- 24
467
- 1
468
- 15
469
- 20
470
- 0
471
- 49
472
- 25
473
- 0
474
- 7
475
- 26
476
- 64
477
- 49
478
- 27
479
- 1
480
- 49
481
- 28
482
- 0
483
- 11
484
- I
485
- 9
486
- I
487
- 1
488
- I
489
- 0
490
- I
491
- 0
492
- I
493
- -2
494
- p
495
- 29
496
- x
497
- 6
498
- Sucker
499
- n
500
- x
501
- 3
502
- new
503
- x
504
- 8
505
- allocate
506
- x
507
- 4
508
- Hash
509
- x
510
- 16
511
- new_from_literal
512
- x
513
- 6
514
- locale
515
- s
516
- 2
517
- us
518
- x
519
- 3
520
- []=
521
- x
522
- 3
523
- key
524
- x
525
- 6
526
- amazon
527
- s
528
- 3
529
- key
530
- x
531
- 2
532
- []
533
- x
534
- 6
535
- secret
536
- s
537
- 6
538
- secret
539
- x
540
- 10
541
- initialize
542
- s
543
- 9
544
- Operation
545
- s
546
- 10
547
- ItemLookup
548
- s
549
- 6
550
- IdType
551
- s
552
- 4
553
- ASIN
554
- s
555
- 13
556
- ResponseGroup
557
- s
558
- 6
559
- Images
560
- s
561
- 6
562
- ItemId
563
- s
564
- 10
565
- 0816614024
566
- x
567
- 2
568
- <<
569
- x
570
- 3
571
- get
572
- s
573
- 4
574
- Item
575
- x
576
- 4
577
- find
578
- x
579
- 5
580
- first
581
- p
582
- 33
583
- I
584
- 0
585
- I
586
- b
587
- I
588
- 0
589
- I
590
- c
591
- I
592
- e
593
- I
594
- f
595
- I
596
- 17
597
- I
598
- d
599
- I
600
- 21
601
- I
602
- e
603
- I
604
- 31
605
- I
606
- f
607
- I
608
- 50
609
- I
610
- d
611
- I
612
- 5a
613
- I
614
- e
615
- I
616
- 6a
617
- I
618
- f
619
- I
620
- 7f
621
- I
622
- 11
623
- I
624
- 81
625
- I
626
- 15
627
- I
628
- 8a
629
- I
630
- 12
631
- I
632
- 95
633
- I
634
- 13
635
- I
636
- a0
637
- I
638
- 14
639
- I
640
- ab
641
- I
642
- 15
643
- I
644
- b9
645
- I
646
- 16
647
- I
648
- c8
649
- x
650
- 54
651
- /Users/snl/code/sucker/spec/integration/images_spec.rb
652
- p
653
- 1
654
- x
655
- 6
656
- worker
657
- x
658
- 3
659
- let
660
- s
661
- 15
662
- returns an ASIN
663
- M
664
- 1
665
- p
666
- 2
667
- x
668
- 9
669
- for_block
670
- t
671
- n
672
- x
673
- 6
674
- Sucker
675
- i
676
- 21
677
- 5
678
- 48
679
- 0
680
- 7
681
- 1
682
- 64
683
- 49
684
- 2
685
- 1
686
- 5
687
- 7
688
- 3
689
- 64
690
- 47
691
- 49
692
- 4
693
- 1
694
- 49
695
- 5
696
- 1
697
- 11
698
- I
699
- 4
700
- I
701
- 0
702
- I
703
- 0
704
- I
705
- 0
706
- I
707
- -2
708
- p
709
- 6
710
- x
711
- 4
712
- item
713
- s
714
- 4
715
- ASIN
716
- x
717
- 2
718
- []
719
- s
720
- 10
721
- 0816614024
722
- x
723
- 3
724
- eql
725
- x
726
- 6
727
- should
728
- p
729
- 5
730
- I
731
- 0
732
- I
733
- 19
734
- I
735
- 0
736
- I
737
- 1a
738
- I
739
- 15
740
- x
741
- 54
742
- /Users/snl/code/sucker/spec/integration/images_spec.rb
743
- p
744
- 0
745
- x
746
- 2
747
- it
748
- s
749
- 25
750
- returns a large image URL
751
- M
752
- 1
753
- p
754
- 2
755
- x
756
- 9
757
- for_block
758
- t
759
- n
760
- x
761
- 6
762
- Sucker
763
- i
764
- 42
765
- 5
766
- 48
767
- 0
768
- 7
769
- 1
770
- 64
771
- 49
772
- 2
773
- 1
774
- 7
775
- 3
776
- 64
777
- 49
778
- 2
779
- 1
780
- 5
781
- 7
782
- 4
783
- 13
784
- 70
785
- 9
786
- 34
787
- 15
788
- 44
789
- 43
790
- 5
791
- 7
792
- 6
793
- 78
794
- 49
795
- 7
796
- 2
797
- 6
798
- 4
799
- 47
800
- 49
801
- 8
802
- 1
803
- 49
804
- 9
805
- 1
806
- 11
807
- I
808
- 6
809
- I
810
- 0
811
- I
812
- 0
813
- I
814
- 0
815
- I
816
- -2
817
- p
818
- 10
819
- x
820
- 4
821
- item
822
- s
823
- 10
824
- LargeImage
825
- x
826
- 2
827
- []
828
- s
829
- 3
830
- URL
831
- n
832
- x
833
- 6
834
- Regexp
835
- s
836
- 11
837
- ^http.*jpg$
838
- x
839
- 3
840
- new
841
- x
842
- 5
843
- match
844
- x
845
- 6
846
- should
847
- p
848
- 5
849
- I
850
- 0
851
- I
852
- 1d
853
- I
854
- 0
855
- I
856
- 1e
857
- I
858
- 2a
859
- x
860
- 54
861
- /Users/snl/code/sucker/spec/integration/images_spec.rb
862
- p
863
- 0
864
- s
865
- 20
866
- returns an image set
867
- M
868
- 1
869
- p
870
- 2
871
- x
872
- 9
873
- for_block
874
- t
875
- n
876
- x
877
- 6
878
- Sucker
879
- i
880
- 27
881
- 5
882
- 48
883
- 0
884
- 7
885
- 1
886
- 64
887
- 49
888
- 2
889
- 1
890
- 7
891
- 3
892
- 64
893
- 49
894
- 2
895
- 1
896
- 5
897
- 45
898
- 4
899
- 5
900
- 47
901
- 49
902
- 6
903
- 1
904
- 49
905
- 7
906
- 1
907
- 11
908
- I
909
- 4
910
- I
911
- 0
912
- I
913
- 0
914
- I
915
- 0
916
- I
917
- -2
918
- p
919
- 8
920
- x
921
- 4
922
- item
923
- s
924
- 9
925
- ImageSets
926
- x
927
- 2
928
- []
929
- s
930
- 8
931
- ImageSet
932
- x
933
- 4
934
- Hash
935
- n
936
- x
937
- 17
938
- be_an_instance_of
939
- x
940
- 6
941
- should
942
- p
943
- 5
944
- I
945
- 0
946
- I
947
- 21
948
- I
949
- 0
950
- I
951
- 22
952
- I
953
- 1b
954
- x
955
- 54
956
- /Users/snl/code/sucker/spec/integration/images_spec.rb
957
- p
958
- 0
959
- p
960
- 13
961
- I
962
- 0
963
- I
964
- 7
965
- I
966
- 0
967
- I
968
- 9
969
- I
970
- 19
971
- I
972
- b
973
- I
974
- 23
975
- I
976
- 19
977
- I
978
- 2e
979
- I
980
- 1d
981
- I
982
- 39
983
- I
984
- 21
985
- I
986
- 44
987
- x
988
- 54
989
- /Users/snl/code/sucker/spec/integration/images_spec.rb
990
- p
991
- 0
992
- x
993
- 7
994
- context
995
- p
996
- 5
997
- I
998
- 0
999
- I
1000
- 5
1001
- I
1002
- 0
1003
- I
1004
- 7
1005
- I
1006
- b
1007
- x
1008
- 54
1009
- /Users/snl/code/sucker/spec/integration/images_spec.rb
1010
- p
1011
- 0
1012
- x
1013
- 8
1014
- describe
1015
- p
1016
- 3
1017
- I
1018
- 2
1019
- I
1020
- 5
1021
- I
1022
- d
1023
- x
1024
- 54
1025
- /Users/snl/code/sucker/spec/integration/images_spec.rb
1026
- p
1027
- 0
1028
- x
1029
- 13
1030
- attach_method
1031
- p
1032
- 5
1033
- I
1034
- 0
1035
- I
1036
- 1
1037
- I
1038
- 9
1039
- I
1040
- 3
1041
- I
1042
- 25
1043
- x
1044
- 54
1045
- /Users/snl/code/sucker/spec/integration/images_spec.rb
1046
- p
1047
- 0