sucker 1.5.0.1 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. data/README.md +11 -12
  2. data/lib/sucker.rb +12 -9
  3. data/lib/sucker/parameters.rb +5 -3
  4. data/lib/sucker/request.rb +27 -27
  5. data/lib/sucker/version.rb +1 -1
  6. data/spec/sucker/request_spec.rb +10 -15
  7. data/spec/sucker/response_spec.rb +2 -2
  8. data/spec/support/amazon_credentials.rb +6 -2
  9. metadata +62 -71
  10. data/lib/sucker.rbc +0 -265
  11. data/lib/sucker/hash.rbc +0 -914
  12. data/lib/sucker/parameters.rbc +0 -843
  13. data/lib/sucker/request.rbc +0 -2315
  14. data/lib/sucker/response.rbc +0 -1229
  15. data/lib/sucker/version.rbc +0 -130
  16. data/spec/fixtures/cassette_library/cartcreate/e3e2f9b71afba67619a95c7178178595.yml +0 -26
  17. data/spec/fixtures/cassette_library/itemlookup/4908294851a4df13269707e9f6507f91.yml +0 -26
  18. data/spec/fixtures/cassette_library/itemlookup/5670727fa0cb9f30464e41aa1346c91c.yml +0 -26
  19. data/spec/fixtures/cassette_library/itemlookup/6e6b1dc74378e2e1118713e254191fc0.yml +0 -26
  20. data/spec/fixtures/cassette_library/itemlookup/76f548183c2804a74d0ed7e0bfbd6d4a.yml +0 -26
  21. data/spec/fixtures/cassette_library/itemlookup/8286b763b726d3dc1fc992023e639b9b.yml +0 -151
  22. data/spec/fixtures/cassette_library/itemlookup/9d82768fe80b09c4a3697c608e5edebe.yml +0 -26
  23. data/spec/fixtures/cassette_library/itemlookup/d3d6ea869d31173526f48907bff752a3.yml +0 -26
  24. data/spec/fixtures/cassette_library/itemlookup/d8ad346710c3b479febcf58e67fea7ef.yml +0 -26
  25. data/spec/fixtures/cassette_library/itemsearch/295b9eadfb69d55e1c0acb06220e0b6e.yml +0 -26
  26. data/spec/fixtures/cassette_library/itemsearch/4c1e50d070821f4eb9fe3961aba105ee.yml +0 -26
  27. data/spec/fixtures/cassette_library/itemsearch/5a15430433ab94c70466eb61c919a028.yml +0 -26
  28. data/spec/fixtures/cassette_library/itemsearch/8fd40b929a9ed46e2b38ac905c8ab53a.yml +0 -26
  29. data/spec/fixtures/cassette_library/sellerlistingsearch/cb25caadce96ac3de70b69b76431d730.yml +0 -26
  30. data/spec/fixtures/cassette_library/sellerlistingsearch/e1261838e1754870ffd309dd78eb7374.yml +0 -26
  31. data/spec/spec_helper.rbc +0 -230
  32. data/spec/sucker/hash_spec.rbc +0 -861
  33. data/spec/sucker/parameters_spec.rbc +0 -1475
  34. data/spec/sucker/request_spec.rbc +0 -2754
  35. data/spec/sucker/response_spec.rbc +0 -3627
  36. data/spec/sucker_spec.rbc +0 -287
  37. data/spec/support/amazon.yml +0 -3
  38. data/spec/support/amazon.yml.example +0 -3
  39. data/spec/support/amazon_credentials.rbc +0 -154
  40. data/spec/support/asins.rbc +0 -335
  41. data/spec/support/vcr.rbc +0 -356
@@ -1,1229 +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
- 46
13
- 5
14
- 7
15
- 0
16
- 64
17
- 47
18
- 49
19
- 1
20
- 1
21
- 15
22
- 5
23
- 7
24
- 2
25
- 64
26
- 47
27
- 49
28
- 1
29
- 1
30
- 15
31
- 99
32
- 7
33
- 3
34
- 65
35
- 49
36
- 4
37
- 2
38
- 13
39
- 99
40
- 12
41
- 7
42
- 5
43
- 12
44
- 7
45
- 6
46
- 12
47
- 65
48
- 12
49
- 49
50
- 7
51
- 4
52
- 15
53
- 49
54
- 5
55
- 0
56
- 15
57
- 2
58
- 11
59
- I
60
- 6
61
- I
62
- 0
63
- I
64
- 0
65
- I
66
- 0
67
- n
68
- p
69
- 8
70
- s
71
- 8
72
- nokogiri
73
- x
74
- 7
75
- require
76
- s
77
- 11
78
- sucker/hash
79
- x
80
- 6
81
- Sucker
82
- x
83
- 11
84
- open_module
85
- x
86
- 15
87
- __module_init__
88
- M
89
- 1
90
- n
91
- n
92
- x
93
- 6
94
- Sucker
95
- i
96
- 29
97
- 5
98
- 66
99
- 99
100
- 7
101
- 0
102
- 1
103
- 65
104
- 49
105
- 1
106
- 3
107
- 13
108
- 99
109
- 12
110
- 7
111
- 2
112
- 12
113
- 7
114
- 3
115
- 12
116
- 65
117
- 12
118
- 49
119
- 4
120
- 4
121
- 15
122
- 49
123
- 2
124
- 0
125
- 11
126
- I
127
- 6
128
- I
129
- 0
130
- I
131
- 0
132
- I
133
- 0
134
- n
135
- p
136
- 5
137
- x
138
- 8
139
- Response
140
- x
141
- 10
142
- open_class
143
- x
144
- 14
145
- __class_init__
146
- M
147
- 1
148
- n
149
- n
150
- x
151
- 8
152
- Response
153
- i
154
- 154
155
- 5
156
- 66
157
- 5
158
- 7
159
- 0
160
- 47
161
- 49
162
- 1
163
- 1
164
- 15
165
- 5
166
- 7
167
- 2
168
- 47
169
- 49
170
- 1
171
- 1
172
- 15
173
- 99
174
- 7
175
- 3
176
- 7
177
- 4
178
- 65
179
- 67
180
- 49
181
- 5
182
- 0
183
- 49
184
- 6
185
- 4
186
- 15
187
- 99
188
- 7
189
- 7
190
- 7
191
- 8
192
- 65
193
- 67
194
- 49
195
- 5
196
- 0
197
- 49
198
- 6
199
- 4
200
- 15
201
- 99
202
- 7
203
- 9
204
- 7
205
- 10
206
- 65
207
- 67
208
- 49
209
- 5
210
- 0
211
- 49
212
- 6
213
- 4
214
- 15
215
- 99
216
- 7
217
- 11
218
- 7
219
- 12
220
- 65
221
- 67
222
- 49
223
- 5
224
- 0
225
- 49
226
- 6
227
- 4
228
- 15
229
- 5
230
- 7
231
- 13
232
- 7
233
- 11
234
- 47
235
- 49
236
- 14
237
- 2
238
- 15
239
- 99
240
- 7
241
- 15
242
- 7
243
- 16
244
- 65
245
- 67
246
- 49
247
- 5
248
- 0
249
- 49
250
- 6
251
- 4
252
- 15
253
- 99
254
- 7
255
- 17
256
- 7
257
- 18
258
- 65
259
- 67
260
- 49
261
- 5
262
- 0
263
- 49
264
- 6
265
- 4
266
- 15
267
- 99
268
- 7
269
- 19
270
- 7
271
- 20
272
- 65
273
- 67
274
- 49
275
- 5
276
- 0
277
- 49
278
- 6
279
- 4
280
- 15
281
- 99
282
- 7
283
- 21
284
- 7
285
- 22
286
- 65
287
- 67
288
- 49
289
- 5
290
- 0
291
- 49
292
- 6
293
- 4
294
- 15
295
- 99
296
- 7
297
- 23
298
- 7
299
- 24
300
- 65
301
- 67
302
- 49
303
- 5
304
- 0
305
- 49
306
- 6
307
- 4
308
- 11
309
- I
310
- 5
311
- I
312
- 0
313
- I
314
- 0
315
- I
316
- 0
317
- n
318
- p
319
- 25
320
- x
321
- 4
322
- body
323
- x
324
- 13
325
- attr_accessor
326
- x
327
- 4
328
- code
329
- x
330
- 10
331
- initialize
332
- M
333
- 1
334
- n
335
- n
336
- x
337
- 10
338
- initialize
339
- i
340
- 30
341
- 5
342
- 20
343
- 0
344
- 49
345
- 0
346
- 0
347
- 13
348
- 18
349
- 2
350
- 47
351
- 49
352
- 1
353
- 1
354
- 15
355
- 15
356
- 5
357
- 20
358
- 0
359
- 49
360
- 2
361
- 0
362
- 13
363
- 18
364
- 2
365
- 47
366
- 49
367
- 3
368
- 1
369
- 15
370
- 11
371
- I
372
- 4
373
- I
374
- 1
375
- I
376
- 1
377
- I
378
- 1
379
- n
380
- p
381
- 4
382
- x
383
- 4
384
- body
385
- x
386
- 5
387
- body=
388
- x
389
- 4
390
- code
391
- x
392
- 5
393
- code=
394
- p
395
- 11
396
- I
397
- -1
398
- I
399
- f
400
- I
401
- 0
402
- I
403
- 54
404
- I
405
- 1
406
- I
407
- 10
408
- I
409
- f
410
- I
411
- 54
412
- I
413
- 10
414
- I
415
- 11
416
- I
417
- 1e
418
- x
419
- 53
420
- /Users/hakanensari/code/sucker/lib/sucker/response.rb
421
- p
422
- 1
423
- x
424
- 8
425
- response
426
- x
427
- 17
428
- method_visibility
429
- x
430
- 15
431
- add_defn_method
432
- x
433
- 4
434
- each
435
- M
436
- 1
437
- n
438
- n
439
- x
440
- 4
441
- each
442
- i
443
- 17
444
- 95
445
- 19
446
- 1
447
- 15
448
- 5
449
- 20
450
- 0
451
- 47
452
- 49
453
- 0
454
- 1
455
- 56
456
- 1
457
- 50
458
- 2
459
- 0
460
- 11
461
- I
462
- 4
463
- I
464
- 2
465
- I
466
- 1
467
- I
468
- 1
469
- n
470
- p
471
- 3
472
- x
473
- 4
474
- find
475
- M
476
- 1
477
- p
478
- 2
479
- x
480
- 9
481
- for_block
482
- t
483
- n
484
- x
485
- 4
486
- each
487
- i
488
- 13
489
- 57
490
- 19
491
- 0
492
- 15
493
- 21
494
- 1
495
- 1
496
- 20
497
- 0
498
- 49
499
- 0
500
- 1
501
- 11
502
- I
503
- 4
504
- I
505
- 1
506
- I
507
- 1
508
- I
509
- 1
510
- n
511
- p
512
- 1
513
- x
514
- 4
515
- call
516
- p
517
- 3
518
- I
519
- 0
520
- I
521
- 1a
522
- I
523
- d
524
- x
525
- 53
526
- /Users/hakanensari/code/sucker/lib/sucker/response.rb
527
- p
528
- 1
529
- x
530
- 5
531
- match
532
- x
533
- 4
534
- each
535
- p
536
- 5
537
- I
538
- -1
539
- I
540
- 19
541
- I
542
- 4
543
- I
544
- 1a
545
- I
546
- 11
547
- x
548
- 53
549
- /Users/hakanensari/code/sucker/lib/sucker/response.rb
550
- p
551
- 2
552
- x
553
- 4
554
- path
555
- x
556
- 5
557
- block
558
- x
559
- 6
560
- errors
561
- M
562
- 1
563
- n
564
- n
565
- x
566
- 6
567
- errors
568
- i
569
- 9
570
- 5
571
- 7
572
- 0
573
- 64
574
- 47
575
- 49
576
- 1
577
- 1
578
- 11
579
- I
580
- 2
581
- I
582
- 0
583
- I
584
- 0
585
- I
586
- 0
587
- n
588
- p
589
- 2
590
- s
591
- 5
592
- Error
593
- x
594
- 4
595
- find
596
- p
597
- 5
598
- I
599
- -1
600
- I
601
- 1e
602
- I
603
- 0
604
- I
605
- 1f
606
- I
607
- 9
608
- x
609
- 53
610
- /Users/hakanensari/code/sucker/lib/sucker/response.rb
611
- p
612
- 0
613
- x
614
- 4
615
- find
616
- M
617
- 1
618
- n
619
- n
620
- x
621
- 4
622
- find
623
- i
624
- 21
625
- 5
626
- 48
627
- 0
628
- 7
629
- 1
630
- 20
631
- 0
632
- 47
633
- 101
634
- 2
635
- 63
636
- 2
637
- 49
638
- 3
639
- 1
640
- 56
641
- 4
642
- 50
643
- 5
644
- 0
645
- 11
646
- I
647
- 4
648
- I
649
- 1
650
- I
651
- 1
652
- I
653
- 1
654
- n
655
- p
656
- 6
657
- x
658
- 3
659
- xml
660
- s
661
- 8
662
- //xmlns:
663
- x
664
- 4
665
- to_s
666
- x
667
- 5
668
- xpath
669
- M
670
- 1
671
- p
672
- 2
673
- x
674
- 9
675
- for_block
676
- t
677
- n
678
- x
679
- 4
680
- find
681
- i
682
- 13
683
- 57
684
- 19
685
- 0
686
- 15
687
- 45
688
- 0
689
- 1
690
- 20
691
- 0
692
- 49
693
- 2
694
- 1
695
- 11
696
- I
697
- 4
698
- I
699
- 1
700
- I
701
- 1
702
- I
703
- 1
704
- n
705
- p
706
- 3
707
- x
708
- 4
709
- Hash
710
- n
711
- x
712
- 8
713
- from_xml
714
- p
715
- 5
716
- I
717
- 0
718
- I
719
- 28
720
- I
721
- 4
722
- I
723
- 29
724
- I
725
- d
726
- x
727
- 53
728
- /Users/hakanensari/code/sucker/lib/sucker/response.rb
729
- p
730
- 1
731
- x
732
- 7
733
- element
734
- x
735
- 3
736
- map
737
- p
738
- 5
739
- I
740
- -1
741
- I
742
- 27
743
- I
744
- 0
745
- I
746
- 28
747
- I
748
- 15
749
- x
750
- 53
751
- /Users/hakanensari/code/sucker/lib/sucker/response.rb
752
- p
753
- 1
754
- x
755
- 9
756
- attribute
757
- x
758
- 2
759
- []
760
- x
761
- 12
762
- alias_method
763
- x
764
- 11
765
- has_errors?
766
- M
767
- 1
768
- n
769
- n
770
- x
771
- 11
772
- has_errors?
773
- i
774
- 10
775
- 5
776
- 48
777
- 0
778
- 49
779
- 1
780
- 0
781
- 78
782
- 85
783
- 2
784
- 11
785
- I
786
- 2
787
- I
788
- 0
789
- I
790
- 0
791
- I
792
- 0
793
- n
794
- p
795
- 3
796
- x
797
- 6
798
- errors
799
- x
800
- 5
801
- count
802
- x
803
- 1
804
- >
805
- p
806
- 5
807
- I
808
- -1
809
- I
810
- 2f
811
- I
812
- 0
813
- I
814
- 30
815
- I
816
- a
817
- x
818
- 53
819
- /Users/hakanensari/code/sucker/lib/sucker/response.rb
820
- p
821
- 0
822
- x
823
- 3
824
- map
825
- M
826
- 1
827
- n
828
- n
829
- x
830
- 3
831
- map
832
- i
833
- 17
834
- 95
835
- 19
836
- 1
837
- 15
838
- 5
839
- 20
840
- 0
841
- 47
842
- 49
843
- 0
844
- 1
845
- 56
846
- 1
847
- 50
848
- 2
849
- 0
850
- 11
851
- I
852
- 4
853
- I
854
- 2
855
- I
856
- 1
857
- I
858
- 1
859
- n
860
- p
861
- 3
862
- x
863
- 4
864
- find
865
- M
866
- 1
867
- p
868
- 2
869
- x
870
- 9
871
- for_block
872
- t
873
- n
874
- x
875
- 3
876
- map
877
- i
878
- 13
879
- 57
880
- 19
881
- 0
882
- 15
883
- 21
884
- 1
885
- 1
886
- 20
887
- 0
888
- 49
889
- 0
890
- 1
891
- 11
892
- I
893
- 4
894
- I
895
- 1
896
- I
897
- 1
898
- I
899
- 1
900
- n
901
- p
902
- 1
903
- x
904
- 4
905
- call
906
- p
907
- 3
908
- I
909
- 0
910
- I
911
- 39
912
- I
913
- d
914
- x
915
- 53
916
- /Users/hakanensari/code/sucker/lib/sucker/response.rb
917
- p
918
- 1
919
- x
920
- 5
921
- match
922
- x
923
- 3
924
- map
925
- p
926
- 5
927
- I
928
- -1
929
- I
930
- 38
931
- I
932
- 4
933
- I
934
- 39
935
- I
936
- 11
937
- x
938
- 53
939
- /Users/hakanensari/code/sucker/lib/sucker/response.rb
940
- p
941
- 2
942
- x
943
- 4
944
- path
945
- x
946
- 5
947
- block
948
- x
949
- 7
950
- to_hash
951
- M
952
- 1
953
- n
954
- n
955
- x
956
- 7
957
- to_hash
958
- i
959
- 10
960
- 45
961
- 0
962
- 1
963
- 5
964
- 48
965
- 2
966
- 49
967
- 3
968
- 1
969
- 11
970
- I
971
- 2
972
- I
973
- 0
974
- I
975
- 0
976
- I
977
- 0
978
- n
979
- p
980
- 4
981
- x
982
- 4
983
- Hash
984
- n
985
- x
986
- 3
987
- xml
988
- x
989
- 8
990
- from_xml
991
- p
992
- 5
993
- I
994
- -1
995
- I
996
- 3d
997
- I
998
- 0
999
- I
1000
- 3e
1001
- I
1002
- a
1003
- x
1004
- 53
1005
- /Users/hakanensari/code/sucker/lib/sucker/response.rb
1006
- p
1007
- 0
1008
- x
1009
- 6
1010
- valid?
1011
- M
1012
- 1
1013
- n
1014
- n
1015
- x
1016
- 6
1017
- valid?
1018
- i
1019
- 8
1020
- 5
1021
- 48
1022
- 0
1023
- 4
1024
- 200
1025
- 83
1026
- 1
1027
- 11
1028
- I
1029
- 2
1030
- I
1031
- 0
1032
- I
1033
- 0
1034
- I
1035
- 0
1036
- n
1037
- p
1038
- 2
1039
- x
1040
- 4
1041
- code
1042
- x
1043
- 2
1044
- ==
1045
- p
1046
- 5
1047
- I
1048
- -1
1049
- I
1050
- 47
1051
- I
1052
- 0
1053
- I
1054
- 48
1055
- I
1056
- 8
1057
- x
1058
- 53
1059
- /Users/hakanensari/code/sucker/lib/sucker/response.rb
1060
- p
1061
- 0
1062
- x
1063
- 3
1064
- xml
1065
- M
1066
- 1
1067
- n
1068
- n
1069
- x
1070
- 3
1071
- xml
1072
- i
1073
- 18
1074
- 39
1075
- 0
1076
- 13
1077
- 10
1078
- 17
1079
- 15
1080
- 45
1081
- 1
1082
- 2
1083
- 5
1084
- 48
1085
- 3
1086
- 49
1087
- 4
1088
- 1
1089
- 38
1090
- 0
1091
- 11
1092
- I
1093
- 2
1094
- I
1095
- 0
1096
- I
1097
- 0
1098
- I
1099
- 0
1100
- n
1101
- p
1102
- 5
1103
- x
1104
- 4
1105
- @xml
1106
- x
1107
- 8
1108
- Nokogiri
1109
- n
1110
- x
1111
- 4
1112
- body
1113
- x
1114
- 3
1115
- XML
1116
- p
1117
- 5
1118
- I
1119
- -1
1120
- I
1121
- 50
1122
- I
1123
- 0
1124
- I
1125
- 51
1126
- I
1127
- 12
1128
- x
1129
- 53
1130
- /Users/hakanensari/code/sucker/lib/sucker/response.rb
1131
- p
1132
- 0
1133
- p
1134
- 25
1135
- I
1136
- 2
1137
- I
1138
- a
1139
- I
1140
- a
1141
- I
1142
- d
1143
- I
1144
- 12
1145
- I
1146
- f
1147
- I
1148
- 20
1149
- I
1150
- 19
1151
- I
1152
- 2e
1153
- I
1154
- 1e
1155
- I
1156
- 3c
1157
- I
1158
- 27
1159
- I
1160
- 4a
1161
- I
1162
- 2c
1163
- I
1164
- 54
1165
- I
1166
- 2f
1167
- I
1168
- 62
1169
- I
1170
- 38
1171
- I
1172
- 70
1173
- I
1174
- 3d
1175
- I
1176
- 7e
1177
- I
1178
- 47
1179
- I
1180
- 8c
1181
- I
1182
- 50
1183
- I
1184
- 9a
1185
- x
1186
- 53
1187
- /Users/hakanensari/code/sucker/lib/sucker/response.rb
1188
- p
1189
- 0
1190
- x
1191
- 13
1192
- attach_method
1193
- p
1194
- 3
1195
- I
1196
- 2
1197
- I
1198
- 7
1199
- I
1200
- 1d
1201
- x
1202
- 53
1203
- /Users/hakanensari/code/sucker/lib/sucker/response.rb
1204
- p
1205
- 0
1206
- x
1207
- 13
1208
- attach_method
1209
- p
1210
- 7
1211
- I
1212
- 0
1213
- I
1214
- 1
1215
- I
1216
- 9
1217
- I
1218
- 2
1219
- I
1220
- 12
1221
- I
1222
- 4
1223
- I
1224
- 2e
1225
- x
1226
- 53
1227
- /Users/hakanensari/code/sucker/lib/sucker/response.rb
1228
- p
1229
- 0