sucker 1.0.0.beta.4 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. data/CHANGELOG.md +12 -2
  2. data/README.md +5 -2
  3. data/lib/sucker.rbc +341 -0
  4. data/lib/sucker/request.rb +1 -1
  5. data/lib/sucker/request.rbc +2481 -0
  6. data/lib/sucker/response.rb +19 -7
  7. data/lib/sucker/response.rbc +1554 -0
  8. data/lib/sucker/version.rb +2 -2
  9. data/lib/sucker/version.rbc +130 -0
  10. data/spec/fixtures/asins.txt +9406 -406
  11. data/spec/fixtures/cassette_library/integration/alternate_versions.yml +27 -0
  12. data/spec/fixtures/cassette_library/integration/errors.yml +27 -0
  13. data/spec/fixtures/cassette_library/integration/france.yml +27 -0
  14. data/spec/fixtures/cassette_library/integration/images.yml +27 -0
  15. data/spec/fixtures/cassette_library/integration/item_lookup/multiple.yml +27 -0
  16. data/spec/fixtures/cassette_library/integration/item_lookup/single.yml +27 -0
  17. data/spec/fixtures/cassette_library/integration/item_search.yml +27 -0
  18. data/spec/fixtures/cassette_library/integration/japan.yml +27 -0
  19. data/spec/fixtures/cassette_library/integration/keyword_search.yml +27 -0
  20. data/spec/fixtures/cassette_library/integration/kindle.yml +27 -0
  21. data/spec/fixtures/cassette_library/integration/kindle_2.yml +27 -0
  22. data/spec/fixtures/cassette_library/integration/multiple_locales.yml +157 -0
  23. data/spec/fixtures/cassette_library/integration/power_search.yml +27 -0
  24. data/spec/fixtures/cassette_library/integration/related_items/child.yml +27 -0
  25. data/spec/fixtures/cassette_library/integration/related_items/parent.yml +27 -0
  26. data/spec/fixtures/cassette_library/integration/seller_listings_search.yml +27 -0
  27. data/spec/fixtures/cassette_library/integration/twenty_items.yml +27 -0
  28. data/spec/fixtures/cassette_library/unit/sucker/request.yml +29 -0
  29. data/spec/fixtures/cassette_library/unit/sucker/response.yml +27 -0
  30. data/spec/integration/alternate_versions_spec.rb +28 -20
  31. data/spec/integration/alternate_versions_spec.rbc +843 -0
  32. data/spec/integration/errors_spec.rb +10 -6
  33. data/spec/integration/errors_spec.rbc +964 -0
  34. data/spec/integration/france_spec.rb +33 -25
  35. data/spec/integration/france_spec.rbc +1012 -0
  36. data/spec/integration/images_spec.rb +32 -24
  37. data/spec/integration/images_spec.rbc +1047 -0
  38. data/spec/integration/item_lookup_spec.rb +11 -3
  39. data/spec/integration/item_lookup_spec.rbc +1723 -0
  40. data/spec/integration/item_search_spec.rb +6 -2
  41. data/spec/integration/item_search_spec.rbc +926 -0
  42. data/spec/integration/japan_spec.rb +27 -19
  43. data/spec/integration/japan_spec.rbc +849 -0
  44. data/spec/integration/keyword_search_spec.rb +5 -0
  45. data/spec/integration/keyword_search_spec.rbc +838 -0
  46. data/spec/integration/kindle_spec.rb +13 -5
  47. data/spec/integration/kindle_spec.rbc +1425 -0
  48. data/spec/integration/multiple_locales_spec.rb +34 -26
  49. data/spec/integration/multiple_locales_spec.rbc +1090 -0
  50. data/spec/integration/power_search_spec.rb +5 -0
  51. data/spec/integration/power_search_spec.rbc +838 -0
  52. data/spec/integration/related_items_spec.rb +41 -29
  53. data/spec/integration/related_items_spec.rbc +1228 -0
  54. data/spec/integration/seller_listing_search_spec.rb +3 -0
  55. data/spec/integration/seller_listing_search_spec.rbc +852 -0
  56. data/spec/integration/twenty_items_spec.rb +41 -34
  57. data/spec/integration/twenty_items_spec.rbc +1166 -0
  58. data/spec/spec_helper.rbc +231 -0
  59. data/spec/support/amazon.yml +3 -0
  60. data/spec/support/amazon.yml.example +1 -0
  61. data/spec/support/amazon_credentials.rbc +154 -0
  62. data/spec/support/asins.rb +6 -1
  63. data/spec/support/asins.rbc +335 -0
  64. data/spec/support/vcr.rbc +360 -0
  65. data/spec/unit/sucker/request_spec.rb +57 -23
  66. data/spec/unit/sucker/request_spec.rbc +4031 -0
  67. data/spec/unit/sucker/response_spec.rb +100 -26
  68. data/spec/unit/sucker/response_spec.rbc +3787 -0
  69. data/spec/unit/sucker_spec.rb +5 -1
  70. data/spec/unit/sucker_spec.rbc +299 -0
  71. metadata +94 -12
@@ -1,7 +1,9 @@
1
1
  require "spec_helper"
2
2
 
3
3
  module Sucker
4
+
4
5
  describe "Item lookup" do
6
+
5
7
  let(:worker) do
6
8
  worker = Sucker.new(
7
9
  :locale => "us",
@@ -17,7 +19,8 @@ module Sucker
17
19
  worker
18
20
  end
19
21
 
20
- context "single item" do
22
+ context "when a single item is requested" do
23
+
21
24
  use_vcr_cassette "integration/item_lookup/single", :record => :new_episodes
22
25
 
23
26
  let(:response) do
@@ -44,9 +47,11 @@ module Sucker
44
47
  response.find("Error").should be_empty
45
48
  response.find("Error").should be_an_instance_of Array
46
49
  end
50
+
47
51
  end
48
52
 
49
- context "multiple items" do
53
+ context "when multiple items are requested" do
54
+
50
55
  use_vcr_cassette "integration/item_lookup/multiple", :record => :new_episodes
51
56
 
52
57
  let(:items) do
@@ -54,10 +59,13 @@ module Sucker
54
59
  worker.get.find("Item")
55
60
  end
56
61
 
57
- it "returns two items" do
62
+ it "returns more than one item" do
58
63
  items.should be_an_instance_of Array
59
64
  items.size.should eql 2
60
65
  end
66
+
61
67
  end
68
+
62
69
  end
70
+
63
71
  end
@@ -0,0 +1,1723 @@
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
+ 32
126
+ 5
127
+ 7
128
+ 0
129
+ 56
130
+ 1
131
+ 47
132
+ 50
133
+ 2
134
+ 1
135
+ 15
136
+ 5
137
+ 7
138
+ 3
139
+ 64
140
+ 56
141
+ 4
142
+ 47
143
+ 50
144
+ 5
145
+ 1
146
+ 15
147
+ 5
148
+ 7
149
+ 6
150
+ 64
151
+ 56
152
+ 7
153
+ 47
154
+ 50
155
+ 5
156
+ 1
157
+ 11
158
+ I
159
+ 4
160
+ I
161
+ 0
162
+ I
163
+ 0
164
+ I
165
+ 0
166
+ I
167
+ -2
168
+ p
169
+ 8
170
+ x
171
+ 6
172
+ worker
173
+ M
174
+ 1
175
+ p
176
+ 2
177
+ x
178
+ 9
179
+ for_block
180
+ t
181
+ n
182
+ x
183
+ 6
184
+ Sucker
185
+ i
186
+ 204
187
+ 45
188
+ 0
189
+ 1
190
+ 13
191
+ 71
192
+ 2
193
+ 47
194
+ 9
195
+ 71
196
+ 47
197
+ 49
198
+ 3
199
+ 0
200
+ 13
201
+ 44
202
+ 43
203
+ 4
204
+ 4
205
+ 3
206
+ 49
207
+ 5
208
+ 1
209
+ 13
210
+ 7
211
+ 6
212
+ 7
213
+ 7
214
+ 64
215
+ 49
216
+ 8
217
+ 2
218
+ 15
219
+ 13
220
+ 7
221
+ 9
222
+ 5
223
+ 48
224
+ 10
225
+ 7
226
+ 11
227
+ 64
228
+ 49
229
+ 12
230
+ 1
231
+ 49
232
+ 8
233
+ 2
234
+ 15
235
+ 13
236
+ 7
237
+ 13
238
+ 5
239
+ 48
240
+ 10
241
+ 7
242
+ 14
243
+ 64
244
+ 49
245
+ 12
246
+ 1
247
+ 49
248
+ 8
249
+ 2
250
+ 15
251
+ 47
252
+ 49
253
+ 15
254
+ 1
255
+ 15
256
+ 8
257
+ 124
258
+ 44
259
+ 43
260
+ 4
261
+ 4
262
+ 3
263
+ 49
264
+ 5
265
+ 1
266
+ 13
267
+ 7
268
+ 6
269
+ 7
270
+ 7
271
+ 64
272
+ 49
273
+ 8
274
+ 2
275
+ 15
276
+ 13
277
+ 7
278
+ 9
279
+ 5
280
+ 48
281
+ 10
282
+ 7
283
+ 11
284
+ 64
285
+ 49
286
+ 12
287
+ 1
288
+ 49
289
+ 8
290
+ 2
291
+ 15
292
+ 13
293
+ 7
294
+ 13
295
+ 5
296
+ 48
297
+ 10
298
+ 7
299
+ 14
300
+ 64
301
+ 49
302
+ 12
303
+ 1
304
+ 49
305
+ 8
306
+ 2
307
+ 15
308
+ 49
309
+ 2
310
+ 1
311
+ 19
312
+ 0
313
+ 15
314
+ 20
315
+ 0
316
+ 44
317
+ 43
318
+ 4
319
+ 4
320
+ 5
321
+ 49
322
+ 5
323
+ 1
324
+ 13
325
+ 7
326
+ 16
327
+ 64
328
+ 7
329
+ 17
330
+ 64
331
+ 49
332
+ 8
333
+ 2
334
+ 15
335
+ 13
336
+ 7
337
+ 18
338
+ 64
339
+ 7
340
+ 19
341
+ 64
342
+ 49
343
+ 8
344
+ 2
345
+ 15
346
+ 13
347
+ 7
348
+ 20
349
+ 64
350
+ 7
351
+ 21
352
+ 64
353
+ 49
354
+ 8
355
+ 2
356
+ 15
357
+ 13
358
+ 7
359
+ 22
360
+ 64
361
+ 7
362
+ 21
363
+ 64
364
+ 49
365
+ 8
366
+ 2
367
+ 15
368
+ 13
369
+ 7
370
+ 23
371
+ 64
372
+ 7
373
+ 24
374
+ 64
375
+ 7
376
+ 25
377
+ 64
378
+ 35
379
+ 2
380
+ 49
381
+ 8
382
+ 2
383
+ 15
384
+ 49
385
+ 26
386
+ 1
387
+ 15
388
+ 20
389
+ 0
390
+ 11
391
+ I
392
+ 9
393
+ I
394
+ 1
395
+ I
396
+ 0
397
+ I
398
+ 0
399
+ I
400
+ -2
401
+ p
402
+ 27
403
+ x
404
+ 6
405
+ Sucker
406
+ n
407
+ x
408
+ 3
409
+ new
410
+ x
411
+ 8
412
+ allocate
413
+ x
414
+ 4
415
+ Hash
416
+ x
417
+ 16
418
+ new_from_literal
419
+ x
420
+ 6
421
+ locale
422
+ s
423
+ 2
424
+ us
425
+ x
426
+ 3
427
+ []=
428
+ x
429
+ 3
430
+ key
431
+ x
432
+ 6
433
+ amazon
434
+ s
435
+ 3
436
+ key
437
+ x
438
+ 2
439
+ []
440
+ x
441
+ 6
442
+ secret
443
+ s
444
+ 6
445
+ secret
446
+ x
447
+ 10
448
+ initialize
449
+ s
450
+ 9
451
+ Operation
452
+ s
453
+ 10
454
+ ItemLookup
455
+ s
456
+ 6
457
+ IdType
458
+ s
459
+ 4
460
+ ASIN
461
+ s
462
+ 9
463
+ Condition
464
+ s
465
+ 3
466
+ All
467
+ s
468
+ 10
469
+ MerchantId
470
+ s
471
+ 13
472
+ ResponseGroup
473
+ s
474
+ 14
475
+ ItemAttributes
476
+ s
477
+ 9
478
+ OfferFull
479
+ x
480
+ 2
481
+ <<
482
+ p
483
+ 35
484
+ I
485
+ 0
486
+ I
487
+ 7
488
+ I
489
+ 0
490
+ I
491
+ 8
492
+ I
493
+ e
494
+ I
495
+ b
496
+ I
497
+ 17
498
+ I
499
+ 9
500
+ I
501
+ 21
502
+ I
503
+ a
504
+ I
505
+ 31
506
+ I
507
+ b
508
+ I
509
+ 50
510
+ I
511
+ 9
512
+ I
513
+ 5a
514
+ I
515
+ a
516
+ I
517
+ 6a
518
+ I
519
+ b
520
+ I
521
+ 7f
522
+ I
523
+ d
524
+ I
525
+ 81
526
+ I
527
+ 12
528
+ I
529
+ 8a
530
+ I
531
+ e
532
+ I
533
+ 95
534
+ I
535
+ f
536
+ I
537
+ a0
538
+ I
539
+ 10
540
+ I
541
+ ab
542
+ I
543
+ 11
544
+ I
545
+ b6
546
+ I
547
+ 12
548
+ I
549
+ c9
550
+ I
551
+ 13
552
+ I
553
+ cc
554
+ x
555
+ 59
556
+ /Users/snl/code/sucker/spec/integration/item_lookup_spec.rb
557
+ p
558
+ 1
559
+ x
560
+ 6
561
+ worker
562
+ x
563
+ 3
564
+ let
565
+ s
566
+ 31
567
+ when a single item is requested
568
+ M
569
+ 1
570
+ p
571
+ 2
572
+ x
573
+ 9
574
+ for_block
575
+ t
576
+ n
577
+ x
578
+ 6
579
+ Sucker
580
+ i
581
+ 89
582
+ 5
583
+ 7
584
+ 0
585
+ 64
586
+ 44
587
+ 43
588
+ 1
589
+ 79
590
+ 49
591
+ 2
592
+ 1
593
+ 13
594
+ 7
595
+ 3
596
+ 7
597
+ 4
598
+ 49
599
+ 5
600
+ 2
601
+ 15
602
+ 47
603
+ 49
604
+ 6
605
+ 2
606
+ 15
607
+ 5
608
+ 7
609
+ 7
610
+ 56
611
+ 8
612
+ 47
613
+ 50
614
+ 9
615
+ 1
616
+ 15
617
+ 5
618
+ 7
619
+ 10
620
+ 56
621
+ 11
622
+ 47
623
+ 50
624
+ 9
625
+ 1
626
+ 15
627
+ 5
628
+ 7
629
+ 12
630
+ 64
631
+ 56
632
+ 13
633
+ 47
634
+ 50
635
+ 14
636
+ 1
637
+ 15
638
+ 5
639
+ 7
640
+ 15
641
+ 64
642
+ 56
643
+ 16
644
+ 47
645
+ 50
646
+ 14
647
+ 1
648
+ 15
649
+ 5
650
+ 7
651
+ 17
652
+ 64
653
+ 56
654
+ 18
655
+ 47
656
+ 50
657
+ 14
658
+ 1
659
+ 15
660
+ 5
661
+ 7
662
+ 19
663
+ 64
664
+ 56
665
+ 20
666
+ 47
667
+ 50
668
+ 14
669
+ 1
670
+ 11
671
+ I
672
+ 7
673
+ I
674
+ 0
675
+ I
676
+ 0
677
+ I
678
+ 0
679
+ I
680
+ -2
681
+ p
682
+ 21
683
+ s
684
+ 30
685
+ integration/item_lookup/single
686
+ x
687
+ 4
688
+ Hash
689
+ x
690
+ 16
691
+ new_from_literal
692
+ x
693
+ 6
694
+ record
695
+ x
696
+ 12
697
+ new_episodes
698
+ x
699
+ 3
700
+ []=
701
+ x
702
+ 16
703
+ use_vcr_cassette
704
+ x
705
+ 8
706
+ response
707
+ M
708
+ 1
709
+ p
710
+ 2
711
+ x
712
+ 9
713
+ for_block
714
+ t
715
+ n
716
+ x
717
+ 6
718
+ Sucker
719
+ i
720
+ 32
721
+ 5
722
+ 48
723
+ 0
724
+ 44
725
+ 43
726
+ 1
727
+ 79
728
+ 49
729
+ 2
730
+ 1
731
+ 13
732
+ 7
733
+ 3
734
+ 64
735
+ 7
736
+ 4
737
+ 64
738
+ 49
739
+ 5
740
+ 2
741
+ 15
742
+ 49
743
+ 6
744
+ 1
745
+ 15
746
+ 5
747
+ 48
748
+ 0
749
+ 49
750
+ 7
751
+ 0
752
+ 11
753
+ I
754
+ 6
755
+ I
756
+ 0
757
+ I
758
+ 0
759
+ I
760
+ 0
761
+ I
762
+ -2
763
+ p
764
+ 8
765
+ x
766
+ 6
767
+ worker
768
+ x
769
+ 4
770
+ Hash
771
+ x
772
+ 16
773
+ new_from_literal
774
+ s
775
+ 6
776
+ ItemId
777
+ s
778
+ 10
779
+ 0816614024
780
+ x
781
+ 3
782
+ []=
783
+ x
784
+ 2
785
+ <<
786
+ x
787
+ 3
788
+ get
789
+ p
790
+ 7
791
+ I
792
+ 0
793
+ I
794
+ 1a
795
+ I
796
+ 0
797
+ I
798
+ 1b
799
+ I
800
+ 19
801
+ I
802
+ 1c
803
+ I
804
+ 20
805
+ x
806
+ 59
807
+ /Users/snl/code/sucker/spec/integration/item_lookup_spec.rb
808
+ p
809
+ 0
810
+ x
811
+ 3
812
+ let
813
+ x
814
+ 4
815
+ item
816
+ M
817
+ 1
818
+ p
819
+ 2
820
+ x
821
+ 9
822
+ for_block
823
+ t
824
+ n
825
+ x
826
+ 6
827
+ Sucker
828
+ i
829
+ 13
830
+ 5
831
+ 48
832
+ 0
833
+ 7
834
+ 1
835
+ 64
836
+ 49
837
+ 2
838
+ 1
839
+ 49
840
+ 3
841
+ 0
842
+ 11
843
+ I
844
+ 3
845
+ I
846
+ 0
847
+ I
848
+ 0
849
+ I
850
+ 0
851
+ I
852
+ -2
853
+ p
854
+ 4
855
+ x
856
+ 8
857
+ response
858
+ s
859
+ 4
860
+ Item
861
+ x
862
+ 4
863
+ find
864
+ x
865
+ 5
866
+ first
867
+ p
868
+ 3
869
+ I
870
+ 0
871
+ I
872
+ 1f
873
+ I
874
+ d
875
+ x
876
+ 59
877
+ /Users/snl/code/sucker/spec/integration/item_lookup_spec.rb
878
+ p
879
+ 0
880
+ s
881
+ 15
882
+ returns an item
883
+ M
884
+ 1
885
+ p
886
+ 2
887
+ x
888
+ 9
889
+ for_block
890
+ t
891
+ n
892
+ x
893
+ 6
894
+ Sucker
895
+ i
896
+ 15
897
+ 5
898
+ 48
899
+ 0
900
+ 5
901
+ 45
902
+ 1
903
+ 2
904
+ 47
905
+ 49
906
+ 3
907
+ 1
908
+ 49
909
+ 4
910
+ 1
911
+ 11
912
+ I
913
+ 4
914
+ I
915
+ 0
916
+ I
917
+ 0
918
+ I
919
+ 0
920
+ I
921
+ -2
922
+ p
923
+ 5
924
+ x
925
+ 4
926
+ item
927
+ x
928
+ 4
929
+ Hash
930
+ n
931
+ x
932
+ 17
933
+ be_an_instance_of
934
+ x
935
+ 6
936
+ should
937
+ p
938
+ 5
939
+ I
940
+ 0
941
+ I
942
+ 21
943
+ I
944
+ 0
945
+ I
946
+ 22
947
+ I
948
+ f
949
+ x
950
+ 59
951
+ /Users/snl/code/sucker/spec/integration/item_lookup_spec.rb
952
+ p
953
+ 0
954
+ x
955
+ 2
956
+ it
957
+ s
958
+ 23
959
+ includes an ASIN string
960
+ M
961
+ 1
962
+ p
963
+ 2
964
+ x
965
+ 9
966
+ for_block
967
+ t
968
+ n
969
+ x
970
+ 6
971
+ Sucker
972
+ i
973
+ 21
974
+ 5
975
+ 48
976
+ 0
977
+ 7
978
+ 1
979
+ 64
980
+ 49
981
+ 2
982
+ 1
983
+ 5
984
+ 7
985
+ 3
986
+ 64
987
+ 47
988
+ 49
989
+ 4
990
+ 1
991
+ 49
992
+ 5
993
+ 1
994
+ 11
995
+ I
996
+ 4
997
+ I
998
+ 0
999
+ I
1000
+ 0
1001
+ I
1002
+ 0
1003
+ I
1004
+ -2
1005
+ p
1006
+ 6
1007
+ x
1008
+ 4
1009
+ item
1010
+ s
1011
+ 4
1012
+ ASIN
1013
+ x
1014
+ 2
1015
+ []
1016
+ s
1017
+ 10
1018
+ 0816614024
1019
+ x
1020
+ 3
1021
+ eql
1022
+ x
1023
+ 6
1024
+ should
1025
+ p
1026
+ 5
1027
+ I
1028
+ 0
1029
+ I
1030
+ 25
1031
+ I
1032
+ 0
1033
+ I
1034
+ 26
1035
+ I
1036
+ 15
1037
+ x
1038
+ 59
1039
+ /Users/snl/code/sucker/spec/integration/item_lookup_spec.rb
1040
+ p
1041
+ 0
1042
+ s
1043
+ 34
1044
+ includes requested response groups
1045
+ M
1046
+ 1
1047
+ p
1048
+ 2
1049
+ x
1050
+ 9
1051
+ for_block
1052
+ t
1053
+ n
1054
+ x
1055
+ 6
1056
+ Sucker
1057
+ i
1058
+ 42
1059
+ 5
1060
+ 48
1061
+ 0
1062
+ 7
1063
+ 1
1064
+ 64
1065
+ 49
1066
+ 2
1067
+ 1
1068
+ 5
1069
+ 45
1070
+ 3
1071
+ 4
1072
+ 47
1073
+ 49
1074
+ 5
1075
+ 1
1076
+ 49
1077
+ 6
1078
+ 1
1079
+ 15
1080
+ 5
1081
+ 48
1082
+ 0
1083
+ 7
1084
+ 7
1085
+ 64
1086
+ 49
1087
+ 2
1088
+ 1
1089
+ 5
1090
+ 45
1091
+ 3
1092
+ 8
1093
+ 47
1094
+ 49
1095
+ 5
1096
+ 1
1097
+ 49
1098
+ 6
1099
+ 1
1100
+ 11
1101
+ I
1102
+ 4
1103
+ I
1104
+ 0
1105
+ I
1106
+ 0
1107
+ I
1108
+ 0
1109
+ I
1110
+ -2
1111
+ p
1112
+ 9
1113
+ x
1114
+ 4
1115
+ item
1116
+ s
1117
+ 14
1118
+ ItemAttributes
1119
+ x
1120
+ 2
1121
+ []
1122
+ x
1123
+ 4
1124
+ Hash
1125
+ n
1126
+ x
1127
+ 17
1128
+ be_an_instance_of
1129
+ x
1130
+ 6
1131
+ should
1132
+ s
1133
+ 6
1134
+ Offers
1135
+ n
1136
+ p
1137
+ 7
1138
+ I
1139
+ 0
1140
+ I
1141
+ 29
1142
+ I
1143
+ 0
1144
+ I
1145
+ 2a
1146
+ I
1147
+ 15
1148
+ I
1149
+ 2b
1150
+ I
1151
+ 2a
1152
+ x
1153
+ 59
1154
+ /Users/snl/code/sucker/spec/integration/item_lookup_spec.rb
1155
+ p
1156
+ 0
1157
+ s
1158
+ 17
1159
+ returns no errors
1160
+ M
1161
+ 1
1162
+ p
1163
+ 2
1164
+ x
1165
+ 9
1166
+ for_block
1167
+ t
1168
+ n
1169
+ x
1170
+ 6
1171
+ Sucker
1172
+ i
1173
+ 37
1174
+ 5
1175
+ 48
1176
+ 0
1177
+ 7
1178
+ 1
1179
+ 64
1180
+ 49
1181
+ 2
1182
+ 1
1183
+ 5
1184
+ 48
1185
+ 3
1186
+ 49
1187
+ 4
1188
+ 1
1189
+ 15
1190
+ 5
1191
+ 48
1192
+ 0
1193
+ 7
1194
+ 1
1195
+ 64
1196
+ 49
1197
+ 2
1198
+ 1
1199
+ 5
1200
+ 45
1201
+ 5
1202
+ 6
1203
+ 47
1204
+ 49
1205
+ 7
1206
+ 1
1207
+ 49
1208
+ 4
1209
+ 1
1210
+ 11
1211
+ I
1212
+ 4
1213
+ I
1214
+ 0
1215
+ I
1216
+ 0
1217
+ I
1218
+ 0
1219
+ I
1220
+ -2
1221
+ p
1222
+ 8
1223
+ x
1224
+ 8
1225
+ response
1226
+ s
1227
+ 5
1228
+ Error
1229
+ x
1230
+ 4
1231
+ find
1232
+ x
1233
+ 8
1234
+ be_empty
1235
+ x
1236
+ 6
1237
+ should
1238
+ x
1239
+ 5
1240
+ Array
1241
+ n
1242
+ x
1243
+ 17
1244
+ be_an_instance_of
1245
+ p
1246
+ 7
1247
+ I
1248
+ 0
1249
+ I
1250
+ 2e
1251
+ I
1252
+ 0
1253
+ I
1254
+ 2f
1255
+ I
1256
+ 10
1257
+ I
1258
+ 30
1259
+ I
1260
+ 25
1261
+ x
1262
+ 59
1263
+ /Users/snl/code/sucker/spec/integration/item_lookup_spec.rb
1264
+ p
1265
+ 0
1266
+ p
1267
+ 17
1268
+ I
1269
+ 0
1270
+ I
1271
+ 16
1272
+ I
1273
+ 0
1274
+ I
1275
+ 18
1276
+ I
1277
+ 19
1278
+ I
1279
+ 1a
1280
+ I
1281
+ 23
1282
+ I
1283
+ 1f
1284
+ I
1285
+ 2d
1286
+ I
1287
+ 21
1288
+ I
1289
+ 38
1290
+ I
1291
+ 25
1292
+ I
1293
+ 43
1294
+ I
1295
+ 29
1296
+ I
1297
+ 4e
1298
+ I
1299
+ 2e
1300
+ I
1301
+ 59
1302
+ x
1303
+ 59
1304
+ /Users/snl/code/sucker/spec/integration/item_lookup_spec.rb
1305
+ p
1306
+ 0
1307
+ x
1308
+ 7
1309
+ context
1310
+ s
1311
+ 33
1312
+ when multiple items are requested
1313
+ M
1314
+ 1
1315
+ p
1316
+ 2
1317
+ x
1318
+ 9
1319
+ for_block
1320
+ t
1321
+ n
1322
+ x
1323
+ 6
1324
+ Sucker
1325
+ i
1326
+ 46
1327
+ 5
1328
+ 7
1329
+ 0
1330
+ 64
1331
+ 44
1332
+ 43
1333
+ 1
1334
+ 79
1335
+ 49
1336
+ 2
1337
+ 1
1338
+ 13
1339
+ 7
1340
+ 3
1341
+ 7
1342
+ 4
1343
+ 49
1344
+ 5
1345
+ 2
1346
+ 15
1347
+ 47
1348
+ 49
1349
+ 6
1350
+ 2
1351
+ 15
1352
+ 5
1353
+ 7
1354
+ 7
1355
+ 56
1356
+ 8
1357
+ 47
1358
+ 50
1359
+ 9
1360
+ 1
1361
+ 15
1362
+ 5
1363
+ 7
1364
+ 10
1365
+ 64
1366
+ 56
1367
+ 11
1368
+ 47
1369
+ 50
1370
+ 12
1371
+ 1
1372
+ 11
1373
+ I
1374
+ 7
1375
+ I
1376
+ 0
1377
+ I
1378
+ 0
1379
+ I
1380
+ 0
1381
+ I
1382
+ -2
1383
+ p
1384
+ 13
1385
+ s
1386
+ 32
1387
+ integration/item_lookup/multiple
1388
+ x
1389
+ 4
1390
+ Hash
1391
+ x
1392
+ 16
1393
+ new_from_literal
1394
+ x
1395
+ 6
1396
+ record
1397
+ x
1398
+ 12
1399
+ new_episodes
1400
+ x
1401
+ 3
1402
+ []=
1403
+ x
1404
+ 16
1405
+ use_vcr_cassette
1406
+ x
1407
+ 5
1408
+ items
1409
+ M
1410
+ 1
1411
+ p
1412
+ 2
1413
+ x
1414
+ 9
1415
+ for_block
1416
+ t
1417
+ n
1418
+ x
1419
+ 6
1420
+ Sucker
1421
+ i
1422
+ 43
1423
+ 5
1424
+ 48
1425
+ 0
1426
+ 44
1427
+ 43
1428
+ 1
1429
+ 79
1430
+ 49
1431
+ 2
1432
+ 1
1433
+ 13
1434
+ 7
1435
+ 3
1436
+ 64
1437
+ 7
1438
+ 4
1439
+ 64
1440
+ 7
1441
+ 5
1442
+ 64
1443
+ 35
1444
+ 2
1445
+ 49
1446
+ 6
1447
+ 2
1448
+ 15
1449
+ 49
1450
+ 7
1451
+ 1
1452
+ 15
1453
+ 5
1454
+ 48
1455
+ 0
1456
+ 49
1457
+ 8
1458
+ 0
1459
+ 7
1460
+ 9
1461
+ 64
1462
+ 49
1463
+ 10
1464
+ 1
1465
+ 11
1466
+ I
1467
+ 7
1468
+ I
1469
+ 0
1470
+ I
1471
+ 0
1472
+ I
1473
+ 0
1474
+ I
1475
+ -2
1476
+ p
1477
+ 11
1478
+ x
1479
+ 6
1480
+ worker
1481
+ x
1482
+ 4
1483
+ Hash
1484
+ x
1485
+ 16
1486
+ new_from_literal
1487
+ s
1488
+ 6
1489
+ ItemId
1490
+ s
1491
+ 10
1492
+ 0816614024
1493
+ s
1494
+ 10
1495
+ 0143105825
1496
+ x
1497
+ 3
1498
+ []=
1499
+ x
1500
+ 2
1501
+ <<
1502
+ x
1503
+ 3
1504
+ get
1505
+ s
1506
+ 4
1507
+ Item
1508
+ x
1509
+ 4
1510
+ find
1511
+ p
1512
+ 7
1513
+ I
1514
+ 0
1515
+ I
1516
+ 39
1517
+ I
1518
+ 0
1519
+ I
1520
+ 3a
1521
+ I
1522
+ 1e
1523
+ I
1524
+ 3b
1525
+ I
1526
+ 2b
1527
+ x
1528
+ 59
1529
+ /Users/snl/code/sucker/spec/integration/item_lookup_spec.rb
1530
+ p
1531
+ 0
1532
+ x
1533
+ 3
1534
+ let
1535
+ s
1536
+ 26
1537
+ returns more than one item
1538
+ M
1539
+ 1
1540
+ p
1541
+ 2
1542
+ x
1543
+ 9
1544
+ for_block
1545
+ t
1546
+ n
1547
+ x
1548
+ 6
1549
+ Sucker
1550
+ i
1551
+ 31
1552
+ 5
1553
+ 48
1554
+ 0
1555
+ 5
1556
+ 45
1557
+ 1
1558
+ 2
1559
+ 47
1560
+ 49
1561
+ 3
1562
+ 1
1563
+ 49
1564
+ 4
1565
+ 1
1566
+ 15
1567
+ 5
1568
+ 48
1569
+ 0
1570
+ 49
1571
+ 5
1572
+ 0
1573
+ 5
1574
+ 80
1575
+ 47
1576
+ 49
1577
+ 6
1578
+ 1
1579
+ 49
1580
+ 4
1581
+ 1
1582
+ 11
1583
+ I
1584
+ 4
1585
+ I
1586
+ 0
1587
+ I
1588
+ 0
1589
+ I
1590
+ 0
1591
+ I
1592
+ -2
1593
+ p
1594
+ 7
1595
+ x
1596
+ 5
1597
+ items
1598
+ x
1599
+ 5
1600
+ Array
1601
+ n
1602
+ x
1603
+ 17
1604
+ be_an_instance_of
1605
+ x
1606
+ 6
1607
+ should
1608
+ x
1609
+ 4
1610
+ size
1611
+ x
1612
+ 3
1613
+ eql
1614
+ p
1615
+ 7
1616
+ I
1617
+ 0
1618
+ I
1619
+ 3e
1620
+ I
1621
+ 0
1622
+ I
1623
+ 3f
1624
+ I
1625
+ f
1626
+ I
1627
+ 40
1628
+ I
1629
+ 1f
1630
+ x
1631
+ 59
1632
+ /Users/snl/code/sucker/spec/integration/item_lookup_spec.rb
1633
+ p
1634
+ 0
1635
+ x
1636
+ 2
1637
+ it
1638
+ p
1639
+ 9
1640
+ I
1641
+ 0
1642
+ I
1643
+ 35
1644
+ I
1645
+ 0
1646
+ I
1647
+ 37
1648
+ I
1649
+ 19
1650
+ I
1651
+ 39
1652
+ I
1653
+ 23
1654
+ I
1655
+ 3e
1656
+ I
1657
+ 2e
1658
+ x
1659
+ 59
1660
+ /Users/snl/code/sucker/spec/integration/item_lookup_spec.rb
1661
+ p
1662
+ 0
1663
+ p
1664
+ 9
1665
+ I
1666
+ 0
1667
+ I
1668
+ 5
1669
+ I
1670
+ 0
1671
+ I
1672
+ 7
1673
+ I
1674
+ a
1675
+ I
1676
+ 16
1677
+ I
1678
+ 15
1679
+ I
1680
+ 35
1681
+ I
1682
+ 20
1683
+ x
1684
+ 59
1685
+ /Users/snl/code/sucker/spec/integration/item_lookup_spec.rb
1686
+ p
1687
+ 0
1688
+ x
1689
+ 8
1690
+ describe
1691
+ p
1692
+ 3
1693
+ I
1694
+ 2
1695
+ I
1696
+ 5
1697
+ I
1698
+ d
1699
+ x
1700
+ 59
1701
+ /Users/snl/code/sucker/spec/integration/item_lookup_spec.rb
1702
+ p
1703
+ 0
1704
+ x
1705
+ 13
1706
+ attach_method
1707
+ p
1708
+ 5
1709
+ I
1710
+ 0
1711
+ I
1712
+ 1
1713
+ I
1714
+ 9
1715
+ I
1716
+ 3
1717
+ I
1718
+ 25
1719
+ x
1720
+ 59
1721
+ /Users/snl/code/sucker/spec/integration/item_lookup_spec.rb
1722
+ p
1723
+ 0