sucker 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
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,1166 +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
- 30
151
- when querying for twenty items
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
- 56
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
- 56
205
- 11
206
- 47
207
- 50
208
- 9
209
- 1
210
- 15
211
- 5
212
- 7
213
- 12
214
- 64
215
- 56
216
- 13
217
- 47
218
- 50
219
- 14
220
- 1
221
- 11
222
- I
223
- 7
224
- I
225
- 0
226
- I
227
- 0
228
- I
229
- 0
230
- I
231
- -2
232
- p
233
- 15
234
- s
235
- 24
236
- integration/twenty_items
237
- x
238
- 4
239
- Hash
240
- x
241
- 16
242
- new_from_literal
243
- x
244
- 6
245
- record
246
- x
247
- 12
248
- new_episodes
249
- x
250
- 3
251
- []=
252
- x
253
- 16
254
- use_vcr_cassette
255
- x
256
- 5
257
- asins
258
- M
259
- 1
260
- p
261
- 2
262
- x
263
- 9
264
- for_block
265
- t
266
- n
267
- x
268
- 6
269
- Sucker
270
- i
271
- 63
272
- 7
273
- 0
274
- 64
275
- 7
276
- 1
277
- 64
278
- 7
279
- 2
280
- 64
281
- 7
282
- 3
283
- 64
284
- 7
285
- 4
286
- 64
287
- 7
288
- 5
289
- 64
290
- 7
291
- 6
292
- 64
293
- 7
294
- 7
295
- 64
296
- 7
297
- 8
298
- 64
299
- 7
300
- 9
301
- 64
302
- 7
303
- 10
304
- 64
305
- 7
306
- 11
307
- 64
308
- 7
309
- 12
310
- 64
311
- 7
312
- 13
313
- 64
314
- 7
315
- 14
316
- 64
317
- 7
318
- 15
319
- 64
320
- 7
321
- 16
322
- 64
323
- 7
324
- 17
325
- 64
326
- 7
327
- 18
328
- 64
329
- 7
330
- 19
331
- 64
332
- 35
333
- 20
334
- 11
335
- I
336
- 15
337
- I
338
- 0
339
- I
340
- 0
341
- I
342
- 0
343
- I
344
- -2
345
- p
346
- 20
347
- s
348
- 10
349
- 0816614024
350
- s
351
- 10
352
- 0143105825
353
- s
354
- 10
355
- 0485113600
356
- s
357
- 10
358
- 0816616779
359
- s
360
- 10
361
- 0942299078
362
- s
363
- 10
364
- 0816614008
365
- s
366
- 10
367
- 144006654X
368
- s
369
- 10
370
- 0486400360
371
- s
372
- 10
373
- 0486417670
374
- s
375
- 10
376
- 087220474X
377
- s
378
- 10
379
- 0486454398
380
- s
381
- 10
382
- 0268018359
383
- s
384
- 10
385
- 1604246014
386
- s
387
- 10
388
- 184467598X
389
- s
390
- 10
391
- 0312427182
392
- s
393
- 10
394
- 1844674282
395
- s
396
- 10
397
- 0745640974
398
- s
399
- 10
400
- 0745646441
401
- s
402
- 10
403
- 0826489540
404
- s
405
- 10
406
- 1844672972
407
- p
408
- 11
409
- I
410
- 0
411
- I
412
- a
413
- I
414
- 0
415
- I
416
- c
417
- I
418
- f
419
- I
420
- d
421
- I
422
- 1e
423
- I
424
- e
425
- I
426
- 2d
427
- I
428
- f
429
- I
430
- 3f
431
- x
432
- 60
433
- /Users/snl/code/sucker/spec/integration/twenty_items_spec.rb
434
- p
435
- 0
436
- x
437
- 3
438
- let
439
- x
440
- 5
441
- items
442
- M
443
- 1
444
- p
445
- 2
446
- x
447
- 9
448
- for_block
449
- t
450
- n
451
- x
452
- 6
453
- Sucker
454
- i
455
- 256
456
- 45
457
- 0
458
- 1
459
- 13
460
- 71
461
- 2
462
- 47
463
- 9
464
- 71
465
- 47
466
- 49
467
- 3
468
- 0
469
- 13
470
- 44
471
- 43
472
- 4
473
- 4
474
- 3
475
- 49
476
- 5
477
- 1
478
- 13
479
- 7
480
- 6
481
- 7
482
- 7
483
- 64
484
- 49
485
- 8
486
- 2
487
- 15
488
- 13
489
- 7
490
- 9
491
- 5
492
- 48
493
- 10
494
- 7
495
- 11
496
- 64
497
- 49
498
- 12
499
- 1
500
- 49
501
- 8
502
- 2
503
- 15
504
- 13
505
- 7
506
- 13
507
- 5
508
- 48
509
- 10
510
- 7
511
- 14
512
- 64
513
- 49
514
- 12
515
- 1
516
- 49
517
- 8
518
- 2
519
- 15
520
- 47
521
- 49
522
- 15
523
- 1
524
- 15
525
- 8
526
- 124
527
- 44
528
- 43
529
- 4
530
- 4
531
- 3
532
- 49
533
- 5
534
- 1
535
- 13
536
- 7
537
- 6
538
- 7
539
- 7
540
- 64
541
- 49
542
- 8
543
- 2
544
- 15
545
- 13
546
- 7
547
- 9
548
- 5
549
- 48
550
- 10
551
- 7
552
- 11
553
- 64
554
- 49
555
- 12
556
- 1
557
- 49
558
- 8
559
- 2
560
- 15
561
- 13
562
- 7
563
- 13
564
- 5
565
- 48
566
- 10
567
- 7
568
- 14
569
- 64
570
- 49
571
- 12
572
- 1
573
- 49
574
- 8
575
- 2
576
- 15
577
- 49
578
- 2
579
- 1
580
- 19
581
- 0
582
- 15
583
- 20
584
- 0
585
- 44
586
- 43
587
- 4
588
- 4
589
- 5
590
- 49
591
- 5
592
- 1
593
- 13
594
- 7
595
- 16
596
- 64
597
- 7
598
- 17
599
- 64
600
- 49
601
- 8
602
- 2
603
- 15
604
- 13
605
- 7
606
- 18
607
- 64
608
- 7
609
- 19
610
- 64
611
- 49
612
- 8
613
- 2
614
- 15
615
- 13
616
- 7
617
- 20
618
- 64
619
- 7
620
- 21
621
- 64
622
- 49
623
- 8
624
- 2
625
- 15
626
- 13
627
- 7
628
- 22
629
- 64
630
- 7
631
- 21
632
- 64
633
- 49
634
- 8
635
- 2
636
- 15
637
- 13
638
- 7
639
- 23
640
- 64
641
- 7
642
- 24
643
- 64
644
- 49
645
- 8
646
- 2
647
- 15
648
- 49
649
- 25
650
- 1
651
- 15
652
- 20
653
- 0
654
- 44
655
- 43
656
- 4
657
- 80
658
- 49
659
- 5
660
- 1
661
- 13
662
- 7
663
- 26
664
- 64
665
- 5
666
- 48
667
- 27
668
- 78
669
- 4
670
- 10
671
- 49
672
- 12
673
- 2
674
- 49
675
- 8
676
- 2
677
- 15
678
- 13
679
- 7
680
- 28
681
- 64
682
- 5
683
- 48
684
- 27
685
- 4
686
- 10
687
- 4
688
- 10
689
- 49
690
- 12
691
- 2
692
- 49
693
- 8
694
- 2
695
- 15
696
- 49
697
- 25
698
- 1
699
- 15
700
- 20
701
- 0
702
- 49
703
- 29
704
- 0
705
- 7
706
- 30
707
- 64
708
- 49
709
- 31
710
- 1
711
- 11
712
- I
713
- 9
714
- I
715
- 1
716
- I
717
- 0
718
- I
719
- 0
720
- I
721
- -2
722
- p
723
- 32
724
- x
725
- 6
726
- Sucker
727
- n
728
- x
729
- 3
730
- new
731
- x
732
- 8
733
- allocate
734
- x
735
- 4
736
- Hash
737
- x
738
- 16
739
- new_from_literal
740
- x
741
- 6
742
- locale
743
- s
744
- 2
745
- us
746
- x
747
- 3
748
- []=
749
- x
750
- 3
751
- key
752
- x
753
- 6
754
- amazon
755
- s
756
- 3
757
- key
758
- x
759
- 2
760
- []
761
- x
762
- 6
763
- secret
764
- s
765
- 6
766
- secret
767
- x
768
- 10
769
- initialize
770
- s
771
- 9
772
- Operation
773
- s
774
- 10
775
- ItemLookup
776
- s
777
- 24
778
- ItemLookup.Shared.IdType
779
- s
780
- 4
781
- ASIN
782
- s
783
- 27
784
- ItemLookup.Shared.Condition
785
- s
786
- 3
787
- All
788
- s
789
- 28
790
- ItemLookup.Shared.MerchantId
791
- s
792
- 31
793
- ItemLookup.Shared.ResponseGroup
794
- s
795
- 9
796
- OfferFull
797
- x
798
- 2
799
- <<
800
- s
801
- 19
802
- ItemLookup.1.ItemId
803
- x
804
- 5
805
- asins
806
- s
807
- 19
808
- ItemLookup.2.ItemId
809
- x
810
- 3
811
- get
812
- s
813
- 4
814
- Item
815
- x
816
- 4
817
- find
818
- p
819
- 43
820
- I
821
- 0
822
- I
823
- 12
824
- I
825
- 0
826
- I
827
- 13
828
- I
829
- e
830
- I
831
- 16
832
- I
833
- 17
834
- I
835
- 14
836
- I
837
- 21
838
- I
839
- 15
840
- I
841
- 31
842
- I
843
- 16
844
- I
845
- 50
846
- I
847
- 14
848
- I
849
- 5a
850
- I
851
- 15
852
- I
853
- 6a
854
- I
855
- 16
856
- I
857
- 7f
858
- I
859
- 19
860
- I
861
- 81
862
- I
863
- 1e
864
- I
865
- 8a
866
- I
867
- 1a
868
- I
869
- 95
870
- I
871
- 1b
872
- I
873
- a0
874
- I
875
- 1c
876
- I
877
- ab
878
- I
879
- 1d
880
- I
881
- b6
882
- I
883
- 1e
884
- I
885
- c4
886
- I
887
- 21
888
- I
889
- c6
890
- I
891
- 23
892
- I
893
- ce
894
- I
895
- 22
896
- I
897
- df
898
- I
899
- 23
900
- I
901
- f4
902
- I
903
- 25
904
- I
905
- 100
906
- x
907
- 60
908
- /Users/snl/code/sucker/spec/integration/twenty_items_spec.rb
909
- p
910
- 1
911
- x
912
- 6
913
- worker
914
- s
915
- 17
916
- returns all items
917
- M
918
- 1
919
- p
920
- 2
921
- x
922
- 9
923
- for_block
924
- t
925
- n
926
- x
927
- 6
928
- Sucker
929
- i
930
- 37
931
- 5
932
- 48
933
- 0
934
- 49
935
- 1
936
- 0
937
- 5
938
- 4
939
- 20
940
- 47
941
- 49
942
- 2
943
- 1
944
- 49
945
- 3
946
- 1
947
- 15
948
- 5
949
- 48
950
- 0
951
- 56
952
- 4
953
- 50
954
- 5
955
- 0
956
- 5
957
- 5
958
- 48
959
- 6
960
- 47
961
- 49
962
- 2
963
- 1
964
- 49
965
- 3
966
- 1
967
- 11
968
- I
969
- 4
970
- I
971
- 0
972
- I
973
- 0
974
- I
975
- 0
976
- I
977
- -2
978
- p
979
- 7
980
- x
981
- 5
982
- items
983
- x
984
- 5
985
- count
986
- x
987
- 3
988
- eql
989
- x
990
- 6
991
- should
992
- M
993
- 1
994
- p
995
- 2
996
- x
997
- 9
998
- for_block
999
- t
1000
- n
1001
- x
1002
- 6
1003
- Sucker
1004
- i
1005
- 13
1006
- 57
1007
- 19
1008
- 0
1009
- 15
1010
- 20
1011
- 0
1012
- 7
1013
- 0
1014
- 64
1015
- 49
1016
- 1
1017
- 1
1018
- 11
1019
- I
1020
- 4
1021
- I
1022
- 1
1023
- I
1024
- 1
1025
- I
1026
- 1
1027
- n
1028
- p
1029
- 2
1030
- s
1031
- 4
1032
- ASIN
1033
- x
1034
- 2
1035
- []
1036
- p
1037
- 3
1038
- I
1039
- 0
1040
- I
1041
- 2a
1042
- I
1043
- d
1044
- x
1045
- 60
1046
- /Users/snl/code/sucker/spec/integration/twenty_items_spec.rb
1047
- p
1048
- 1
1049
- x
1050
- 4
1051
- item
1052
- x
1053
- 3
1054
- map
1055
- x
1056
- 5
1057
- asins
1058
- p
1059
- 7
1060
- I
1061
- 0
1062
- I
1063
- 28
1064
- I
1065
- 0
1066
- I
1067
- 29
1068
- I
1069
- 11
1070
- I
1071
- 2a
1072
- I
1073
- 25
1074
- x
1075
- 60
1076
- /Users/snl/code/sucker/spec/integration/twenty_items_spec.rb
1077
- p
1078
- 0
1079
- x
1080
- 2
1081
- it
1082
- p
1083
- 11
1084
- I
1085
- 0
1086
- I
1087
- 6
1088
- I
1089
- 0
1090
- I
1091
- 8
1092
- I
1093
- 19
1094
- I
1095
- a
1096
- I
1097
- 23
1098
- I
1099
- 12
1100
- I
1101
- 2d
1102
- I
1103
- 28
1104
- I
1105
- 38
1106
- x
1107
- 60
1108
- /Users/snl/code/sucker/spec/integration/twenty_items_spec.rb
1109
- p
1110
- 0
1111
- x
1112
- 7
1113
- context
1114
- p
1115
- 5
1116
- I
1117
- 0
1118
- I
1119
- 4
1120
- I
1121
- 0
1122
- I
1123
- 6
1124
- I
1125
- b
1126
- x
1127
- 60
1128
- /Users/snl/code/sucker/spec/integration/twenty_items_spec.rb
1129
- p
1130
- 0
1131
- x
1132
- 8
1133
- describe
1134
- p
1135
- 3
1136
- I
1137
- 2
1138
- I
1139
- 4
1140
- I
1141
- d
1142
- x
1143
- 60
1144
- /Users/snl/code/sucker/spec/integration/twenty_items_spec.rb
1145
- p
1146
- 0
1147
- x
1148
- 13
1149
- attach_method
1150
- p
1151
- 5
1152
- I
1153
- 0
1154
- I
1155
- 1
1156
- I
1157
- 9
1158
- I
1159
- 3
1160
- I
1161
- 25
1162
- x
1163
- 60
1164
- /Users/snl/code/sucker/spec/integration/twenty_items_spec.rb
1165
- p
1166
- 0