sucker 1.3.0.pre.2 → 1.3.0.pre.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. data/README.md +32 -19
  2. data/lib/sucker.rb +0 -1
  3. data/lib/sucker.rbc +281 -0
  4. data/lib/sucker/parameters.rb +4 -8
  5. data/lib/sucker/parameters.rbc +723 -0
  6. data/lib/sucker/request.rb +1 -3
  7. data/lib/sucker/request.rbc +2674 -0
  8. data/lib/sucker/response.rb +9 -32
  9. data/lib/sucker/response.rbc +1319 -0
  10. data/lib/sucker/response/hash.rb +46 -0
  11. data/lib/sucker/version.rb +2 -4
  12. data/lib/sucker/version.rbc +130 -0
  13. data/spec/spec_helper.rb +4 -4
  14. data/spec/spec_helper.rbc +230 -0
  15. data/spec/sucker/parameters_spec.rbc +1476 -0
  16. data/spec/sucker/request_spec.rb +0 -11
  17. data/spec/sucker/request_spec.rbc +2642 -0
  18. data/spec/sucker/response/hash_spec.rb +43 -0
  19. data/spec/sucker/response_spec.rb +3 -18
  20. data/spec/sucker/response_spec.rbc +2854 -0
  21. data/spec/sucker_spec.rbc +287 -0
  22. data/spec/support/amazon_credentials.rbc +154 -0
  23. data/spec/support/asins.rbc +335 -0
  24. data/spec/support/vcr.rbc +356 -0
  25. metadata +36 -52
  26. data/spec/fixtures/cassette_library/067972110x.yml +0 -26
  27. data/spec/fixtures/cassette_library/integration/alternate_versions.yml +0 -26
  28. data/spec/fixtures/cassette_library/integration/errors.yml +0 -26
  29. data/spec/fixtures/cassette_library/integration/france.yml +0 -26
  30. data/spec/fixtures/cassette_library/integration/images.yml +0 -26
  31. data/spec/fixtures/cassette_library/integration/item_lookup/multiple.yml +0 -26
  32. data/spec/fixtures/cassette_library/integration/item_lookup/single.yml +0 -26
  33. data/spec/fixtures/cassette_library/integration/item_search.yml +0 -26
  34. data/spec/fixtures/cassette_library/integration/japan.yml +0 -26
  35. data/spec/fixtures/cassette_library/integration/keyword_search.yml +0 -26
  36. data/spec/fixtures/cassette_library/integration/kindle.yml +0 -26
  37. data/spec/fixtures/cassette_library/integration/kindle_2.yml +0 -26
  38. data/spec/fixtures/cassette_library/integration/multiple_locales.yml +0 -151
  39. data/spec/fixtures/cassette_library/integration/power_search.yml +0 -26
  40. data/spec/fixtures/cassette_library/integration/related_items/child.yml +0 -26
  41. data/spec/fixtures/cassette_library/integration/related_items/parent.yml +0 -26
  42. data/spec/fixtures/cassette_library/integration/seller_listings_search.yml +0 -26
  43. data/spec/fixtures/cassette_library/integration/twenty_items.yml +0 -26
  44. data/spec/fixtures/cassette_library/unit/sucker/request.yml +0 -61
  45. data/spec/fixtures/cassette_library/unit/sucker/response.yml +0 -26
@@ -0,0 +1,43 @@
1
+ # encoding: utf-8
2
+
3
+ require 'spec_helper'
4
+
5
+ module Sucker
6
+ class Response
7
+ describe Hash do
8
+ let(:xml) do
9
+ xml = <<-XML
10
+ <?xml version=\"1.0\" ?>
11
+ <ItemAttributes>
12
+ <Title>Anti-Oedipus</Title>
13
+ <Author>Gilles Deleuze</Author>
14
+ <Author>Felix Guattari</Author>
15
+ <Creator Role="Translator">Robert Hurley</Creator>
16
+ </ItemAttributes>
17
+ XML
18
+ xml.gsub!(/>\s+</, '><')
19
+ Nokogiri::XML(xml)
20
+ end
21
+
22
+ describe '.from_xml' do
23
+ it 'returns a hash' do
24
+ Hash.from_xml(xml).should be_an_instance_of Hash
25
+ end
26
+
27
+ it 'handles only childs' do
28
+ Hash.from_xml(xml)['Title'].should eql 'Anti-Oedipus'
29
+ end
30
+
31
+ it 'handles arrays' do
32
+ Hash.from_xml(xml)['Author'].should be_a Array
33
+ end
34
+
35
+ it 'handles attributes' do
36
+ node = Hash.from_xml(xml)['Creator']
37
+ node['Role'].should eql 'Translator'
38
+ node['__content__'].should eql 'Robert Hurley'
39
+ end
40
+ end
41
+ end
42
+ end
43
+ end
@@ -65,26 +65,11 @@ module Sucker
65
65
 
66
66
  describe '#to_hash' do
67
67
  it 'returns a hash' do
68
- response.to_hash.should be_an_instance_of Hash
68
+ response.to_hash.should be_a Hash
69
69
  end
70
70
 
71
- it 'converts a content hash to string' do
72
- response.body = '<book><title>A Thousand Plateaus</title></book>'
73
- response.to_hash['book']['title'].should be_an_instance_of String
74
- end
75
-
76
- it 'renders French' do
77
- response.body = "<Title>L'archéologie du savoir</Title>"
78
- response.to_hash['Title'].should eql "L'archéologie du savoir"
79
- end
80
-
81
- it 'renders German' do
82
- response.body = '<Title>Kafka: Für eine kleine Literatur</Title>'
83
- response.to_hash['Title'].should eql 'Kafka: Für eine kleine Literatur'
84
- end
85
-
86
- it 'renders Japanese' do
87
- response.body = '<Title>スティーブ・ジョブズ 驚異のプレゼン―人々を惹きつける18の法則</Title>'
71
+ it 'renders non-ASCII characters' do
72
+ response.body = '<ItemAttributes><Title>スティーブ・ジョブズ 驚異のプレゼン―人々を惹きつける18の法則</Title></ItemAttributes>'
88
73
  response.to_hash['Title'].should eql 'スティーブ・ジョブズ 驚異のプレゼン―人々を惹きつける18の法則'
89
74
  end
90
75
  end
@@ -0,0 +1,2854 @@
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
+ 45
89
+ 0
90
+ 1
91
+ 56
92
+ 2
93
+ 47
94
+ 50
95
+ 3
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
+ 4
109
+ x
110
+ 8
111
+ Response
112
+ n
113
+ M
114
+ 1
115
+ p
116
+ 2
117
+ x
118
+ 9
119
+ for_block
120
+ t
121
+ n
122
+ x
123
+ 6
124
+ Sucker
125
+ i
126
+ 111
127
+ 5
128
+ 7
129
+ 0
130
+ 64
131
+ 44
132
+ 43
133
+ 1
134
+ 79
135
+ 49
136
+ 2
137
+ 1
138
+ 13
139
+ 7
140
+ 3
141
+ 7
142
+ 4
143
+ 49
144
+ 5
145
+ 2
146
+ 15
147
+ 47
148
+ 49
149
+ 6
150
+ 2
151
+ 15
152
+ 5
153
+ 7
154
+ 7
155
+ 56
156
+ 8
157
+ 47
158
+ 50
159
+ 9
160
+ 1
161
+ 15
162
+ 5
163
+ 7
164
+ 10
165
+ 56
166
+ 11
167
+ 47
168
+ 50
169
+ 9
170
+ 1
171
+ 15
172
+ 5
173
+ 7
174
+ 12
175
+ 64
176
+ 56
177
+ 13
178
+ 47
179
+ 50
180
+ 14
181
+ 1
182
+ 15
183
+ 5
184
+ 7
185
+ 15
186
+ 64
187
+ 56
188
+ 16
189
+ 47
190
+ 50
191
+ 17
192
+ 1
193
+ 15
194
+ 5
195
+ 7
196
+ 18
197
+ 64
198
+ 56
199
+ 19
200
+ 47
201
+ 50
202
+ 14
203
+ 1
204
+ 15
205
+ 5
206
+ 7
207
+ 20
208
+ 64
209
+ 56
210
+ 21
211
+ 47
212
+ 50
213
+ 14
214
+ 1
215
+ 15
216
+ 5
217
+ 7
218
+ 22
219
+ 64
220
+ 56
221
+ 23
222
+ 47
223
+ 50
224
+ 14
225
+ 1
226
+ 15
227
+ 5
228
+ 7
229
+ 24
230
+ 64
231
+ 56
232
+ 25
233
+ 47
234
+ 50
235
+ 14
236
+ 1
237
+ 11
238
+ I
239
+ 7
240
+ I
241
+ 0
242
+ I
243
+ 0
244
+ I
245
+ 0
246
+ I
247
+ -2
248
+ p
249
+ 26
250
+ s
251
+ 20
252
+ spec/sucker/response
253
+ x
254
+ 4
255
+ Hash
256
+ x
257
+ 16
258
+ new_from_literal
259
+ x
260
+ 6
261
+ record
262
+ x
263
+ 12
264
+ new_episodes
265
+ x
266
+ 3
267
+ []=
268
+ x
269
+ 16
270
+ use_vcr_cassette
271
+ x
272
+ 5
273
+ asins
274
+ M
275
+ 1
276
+ p
277
+ 2
278
+ x
279
+ 9
280
+ for_block
281
+ t
282
+ n
283
+ x
284
+ 6
285
+ Sucker
286
+ i
287
+ 9
288
+ 7
289
+ 0
290
+ 64
291
+ 7
292
+ 1
293
+ 64
294
+ 35
295
+ 2
296
+ 11
297
+ I
298
+ 3
299
+ I
300
+ 0
301
+ I
302
+ 0
303
+ I
304
+ 0
305
+ I
306
+ -2
307
+ p
308
+ 2
309
+ s
310
+ 10
311
+ 0816614024
312
+ s
313
+ 10
314
+ 0143105825
315
+ p
316
+ 3
317
+ I
318
+ 0
319
+ I
320
+ 9
321
+ I
322
+ 9
323
+ x
324
+ 59
325
+ /Users/hakanensari/code/sucker/spec/sucker/response_spec.rb
326
+ p
327
+ 0
328
+ x
329
+ 3
330
+ let
331
+ x
332
+ 8
333
+ response
334
+ M
335
+ 1
336
+ p
337
+ 2
338
+ x
339
+ 9
340
+ for_block
341
+ t
342
+ n
343
+ x
344
+ 6
345
+ Sucker
346
+ i
347
+ 178
348
+ 45
349
+ 0
350
+ 1
351
+ 13
352
+ 71
353
+ 2
354
+ 47
355
+ 9
356
+ 70
357
+ 47
358
+ 49
359
+ 3
360
+ 0
361
+ 13
362
+ 44
363
+ 43
364
+ 4
365
+ 4
366
+ 3
367
+ 49
368
+ 5
369
+ 1
370
+ 13
371
+ 7
372
+ 6
373
+ 7
374
+ 7
375
+ 49
376
+ 8
377
+ 2
378
+ 15
379
+ 13
380
+ 7
381
+ 9
382
+ 5
383
+ 48
384
+ 10
385
+ 7
386
+ 11
387
+ 64
388
+ 49
389
+ 12
390
+ 1
391
+ 49
392
+ 8
393
+ 2
394
+ 15
395
+ 13
396
+ 7
397
+ 13
398
+ 5
399
+ 48
400
+ 10
401
+ 7
402
+ 14
403
+ 64
404
+ 49
405
+ 12
406
+ 1
407
+ 49
408
+ 8
409
+ 2
410
+ 15
411
+ 47
412
+ 49
413
+ 15
414
+ 1
415
+ 15
416
+ 8
417
+ 122
418
+ 44
419
+ 43
420
+ 4
421
+ 4
422
+ 3
423
+ 49
424
+ 5
425
+ 1
426
+ 13
427
+ 7
428
+ 6
429
+ 7
430
+ 7
431
+ 49
432
+ 8
433
+ 2
434
+ 15
435
+ 13
436
+ 7
437
+ 9
438
+ 5
439
+ 48
440
+ 10
441
+ 7
442
+ 11
443
+ 64
444
+ 49
445
+ 12
446
+ 1
447
+ 49
448
+ 8
449
+ 2
450
+ 15
451
+ 13
452
+ 7
453
+ 13
454
+ 5
455
+ 48
456
+ 10
457
+ 7
458
+ 14
459
+ 64
460
+ 49
461
+ 12
462
+ 1
463
+ 49
464
+ 8
465
+ 2
466
+ 15
467
+ 49
468
+ 2
469
+ 1
470
+ 19
471
+ 0
472
+ 15
473
+ 20
474
+ 0
475
+ 44
476
+ 43
477
+ 4
478
+ 4
479
+ 3
480
+ 49
481
+ 5
482
+ 1
483
+ 13
484
+ 7
485
+ 16
486
+ 64
487
+ 7
488
+ 17
489
+ 64
490
+ 49
491
+ 8
492
+ 2
493
+ 15
494
+ 13
495
+ 7
496
+ 18
497
+ 64
498
+ 7
499
+ 19
500
+ 64
501
+ 49
502
+ 8
503
+ 2
504
+ 15
505
+ 13
506
+ 7
507
+ 20
508
+ 64
509
+ 5
510
+ 48
511
+ 21
512
+ 49
513
+ 8
514
+ 2
515
+ 15
516
+ 49
517
+ 22
518
+ 1
519
+ 15
520
+ 20
521
+ 0
522
+ 49
523
+ 23
524
+ 0
525
+ 11
526
+ I
527
+ 9
528
+ I
529
+ 1
530
+ I
531
+ 0
532
+ I
533
+ 0
534
+ I
535
+ -2
536
+ p
537
+ 24
538
+ x
539
+ 6
540
+ Sucker
541
+ n
542
+ x
543
+ 3
544
+ new
545
+ x
546
+ 8
547
+ allocate
548
+ x
549
+ 4
550
+ Hash
551
+ x
552
+ 16
553
+ new_from_literal
554
+ x
555
+ 6
556
+ locale
557
+ x
558
+ 2
559
+ us
560
+ x
561
+ 3
562
+ []=
563
+ x
564
+ 3
565
+ key
566
+ x
567
+ 6
568
+ amazon
569
+ s
570
+ 3
571
+ key
572
+ x
573
+ 2
574
+ []
575
+ x
576
+ 6
577
+ secret
578
+ s
579
+ 6
580
+ secret
581
+ x
582
+ 10
583
+ initialize
584
+ s
585
+ 9
586
+ Operation
587
+ s
588
+ 10
589
+ ItemLookup
590
+ s
591
+ 6
592
+ IdType
593
+ s
594
+ 4
595
+ ASIN
596
+ s
597
+ 6
598
+ ItemId
599
+ x
600
+ 5
601
+ asins
602
+ x
603
+ 2
604
+ <<
605
+ x
606
+ 3
607
+ get
608
+ p
609
+ 33
610
+ I
611
+ 0
612
+ I
613
+ c
614
+ I
615
+ e
616
+ I
617
+ f
618
+ I
619
+ 17
620
+ I
621
+ d
622
+ I
623
+ 20
624
+ I
625
+ e
626
+ I
627
+ 30
628
+ I
629
+ f
630
+ I
631
+ 4f
632
+ I
633
+ d
634
+ I
635
+ 58
636
+ I
637
+ e
638
+ I
639
+ 68
640
+ I
641
+ f
642
+ I
643
+ 7a
644
+ I
645
+ c
646
+ I
647
+ 7d
648
+ I
649
+ 10
650
+ I
651
+ 7f
652
+ I
653
+ 13
654
+ I
655
+ 88
656
+ I
657
+ 11
658
+ I
659
+ 93
660
+ I
661
+ 12
662
+ I
663
+ 9e
664
+ I
665
+ 13
666
+ I
667
+ a8
668
+ I
669
+ 10
670
+ I
671
+ ac
672
+ I
673
+ 14
674
+ I
675
+ b2
676
+ x
677
+ 59
678
+ /Users/hakanensari/code/sucker/spec/sucker/response_spec.rb
679
+ p
680
+ 1
681
+ x
682
+ 6
683
+ worker
684
+ s
685
+ 4
686
+ .new
687
+ M
688
+ 1
689
+ p
690
+ 2
691
+ x
692
+ 9
693
+ for_block
694
+ t
695
+ n
696
+ x
697
+ 6
698
+ Sucker
699
+ i
700
+ 22
701
+ 5
702
+ 7
703
+ 0
704
+ 64
705
+ 56
706
+ 1
707
+ 47
708
+ 50
709
+ 2
710
+ 1
711
+ 15
712
+ 5
713
+ 7
714
+ 3
715
+ 64
716
+ 56
717
+ 4
718
+ 47
719
+ 50
720
+ 2
721
+ 1
722
+ 11
723
+ I
724
+ 4
725
+ I
726
+ 0
727
+ I
728
+ 0
729
+ I
730
+ 0
731
+ I
732
+ -2
733
+ p
734
+ 5
735
+ s
736
+ 29
737
+ initializes the response body
738
+ M
739
+ 1
740
+ p
741
+ 2
742
+ x
743
+ 9
744
+ for_block
745
+ t
746
+ n
747
+ x
748
+ 6
749
+ Sucker
750
+ i
751
+ 18
752
+ 5
753
+ 48
754
+ 0
755
+ 49
756
+ 1
757
+ 0
758
+ 5
759
+ 45
760
+ 2
761
+ 3
762
+ 47
763
+ 49
764
+ 4
765
+ 1
766
+ 49
767
+ 5
768
+ 1
769
+ 11
770
+ I
771
+ 4
772
+ I
773
+ 0
774
+ I
775
+ 0
776
+ I
777
+ 0
778
+ I
779
+ -2
780
+ p
781
+ 6
782
+ x
783
+ 8
784
+ response
785
+ x
786
+ 4
787
+ body
788
+ x
789
+ 6
790
+ String
791
+ n
792
+ x
793
+ 17
794
+ be_an_instance_of
795
+ x
796
+ 6
797
+ should
798
+ p
799
+ 3
800
+ I
801
+ 0
802
+ I
803
+ 19
804
+ I
805
+ 12
806
+ x
807
+ 59
808
+ /Users/hakanensari/code/sucker/spec/sucker/response_spec.rb
809
+ p
810
+ 0
811
+ x
812
+ 2
813
+ it
814
+ s
815
+ 29
816
+ initializes the response code
817
+ M
818
+ 1
819
+ p
820
+ 2
821
+ x
822
+ 9
823
+ for_block
824
+ t
825
+ n
826
+ x
827
+ 6
828
+ Sucker
829
+ i
830
+ 15
831
+ 5
832
+ 48
833
+ 0
834
+ 49
835
+ 1
836
+ 0
837
+ 49
838
+ 2
839
+ 0
840
+ 7
841
+ 3
842
+ 64
843
+ 83
844
+ 4
845
+ 11
846
+ I
847
+ 3
848
+ I
849
+ 0
850
+ I
851
+ 0
852
+ I
853
+ 0
854
+ I
855
+ -2
856
+ p
857
+ 5
858
+ x
859
+ 8
860
+ response
861
+ x
862
+ 4
863
+ code
864
+ x
865
+ 6
866
+ should
867
+ s
868
+ 3
869
+ 200
870
+ x
871
+ 2
872
+ ==
873
+ p
874
+ 3
875
+ I
876
+ 0
877
+ I
878
+ 1d
879
+ I
880
+ f
881
+ x
882
+ 59
883
+ /Users/hakanensari/code/sucker/spec/sucker/response_spec.rb
884
+ p
885
+ 0
886
+ p
887
+ 5
888
+ I
889
+ 0
890
+ I
891
+ 18
892
+ I
893
+ b
894
+ I
895
+ 1c
896
+ I
897
+ 16
898
+ x
899
+ 59
900
+ /Users/hakanensari/code/sucker/spec/sucker/response_spec.rb
901
+ p
902
+ 0
903
+ x
904
+ 8
905
+ describe
906
+ s
907
+ 29
908
+ when response contains errors
909
+ M
910
+ 1
911
+ p
912
+ 2
913
+ x
914
+ 9
915
+ for_block
916
+ t
917
+ n
918
+ x
919
+ 6
920
+ Sucker
921
+ i
922
+ 30
923
+ 5
924
+ 56
925
+ 0
926
+ 47
927
+ 50
928
+ 1
929
+ 0
930
+ 15
931
+ 5
932
+ 7
933
+ 2
934
+ 64
935
+ 56
936
+ 3
937
+ 47
938
+ 50
939
+ 4
940
+ 1
941
+ 15
942
+ 5
943
+ 7
944
+ 5
945
+ 64
946
+ 56
947
+ 6
948
+ 47
949
+ 50
950
+ 4
951
+ 1
952
+ 11
953
+ I
954
+ 4
955
+ I
956
+ 0
957
+ I
958
+ 0
959
+ I
960
+ 0
961
+ I
962
+ -2
963
+ p
964
+ 7
965
+ M
966
+ 1
967
+ p
968
+ 2
969
+ x
970
+ 9
971
+ for_block
972
+ t
973
+ n
974
+ x
975
+ 6
976
+ Sucker
977
+ i
978
+ 14
979
+ 5
980
+ 48
981
+ 0
982
+ 7
983
+ 1
984
+ 64
985
+ 13
986
+ 18
987
+ 2
988
+ 49
989
+ 2
990
+ 1
991
+ 15
992
+ 11
993
+ I
994
+ 4
995
+ I
996
+ 0
997
+ I
998
+ 0
999
+ I
1000
+ 0
1001
+ I
1002
+ -2
1003
+ p
1004
+ 3
1005
+ x
1006
+ 8
1007
+ response
1008
+ s
1009
+ 164
1010
+ <?xml version="1.0" ?><ItemLookupResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2010-09-01"><Errors><Error>foo</Error><Error>bar</Error></Errors>
1011
+ x
1012
+ 5
1013
+ body=
1014
+ p
1015
+ 3
1016
+ I
1017
+ 0
1018
+ I
1019
+ 23
1020
+ I
1021
+ e
1022
+ x
1023
+ 59
1024
+ /Users/hakanensari/code/sucker/spec/sucker/response_spec.rb
1025
+ p
1026
+ 0
1027
+ x
1028
+ 6
1029
+ before
1030
+ s
1031
+ 7
1032
+ #errors
1033
+ M
1034
+ 1
1035
+ p
1036
+ 2
1037
+ x
1038
+ 9
1039
+ for_block
1040
+ t
1041
+ n
1042
+ x
1043
+ 6
1044
+ Sucker
1045
+ i
1046
+ 11
1047
+ 5
1048
+ 7
1049
+ 0
1050
+ 64
1051
+ 56
1052
+ 1
1053
+ 47
1054
+ 50
1055
+ 2
1056
+ 1
1057
+ 11
1058
+ I
1059
+ 4
1060
+ I
1061
+ 0
1062
+ I
1063
+ 0
1064
+ I
1065
+ 0
1066
+ I
1067
+ -2
1068
+ p
1069
+ 3
1070
+ s
1071
+ 26
1072
+ returns an array of errors
1073
+ M
1074
+ 1
1075
+ p
1076
+ 2
1077
+ x
1078
+ 9
1079
+ for_block
1080
+ t
1081
+ n
1082
+ x
1083
+ 6
1084
+ Sucker
1085
+ i
1086
+ 19
1087
+ 5
1088
+ 48
1089
+ 0
1090
+ 49
1091
+ 1
1092
+ 0
1093
+ 49
1094
+ 2
1095
+ 0
1096
+ 5
1097
+ 80
1098
+ 47
1099
+ 49
1100
+ 3
1101
+ 1
1102
+ 49
1103
+ 4
1104
+ 1
1105
+ 11
1106
+ I
1107
+ 4
1108
+ I
1109
+ 0
1110
+ I
1111
+ 0
1112
+ I
1113
+ 0
1114
+ I
1115
+ -2
1116
+ p
1117
+ 5
1118
+ x
1119
+ 8
1120
+ response
1121
+ x
1122
+ 6
1123
+ errors
1124
+ x
1125
+ 5
1126
+ count
1127
+ x
1128
+ 3
1129
+ eql
1130
+ x
1131
+ 6
1132
+ should
1133
+ p
1134
+ 3
1135
+ I
1136
+ 0
1137
+ I
1138
+ 28
1139
+ I
1140
+ 13
1141
+ x
1142
+ 59
1143
+ /Users/hakanensari/code/sucker/spec/sucker/response_spec.rb
1144
+ p
1145
+ 0
1146
+ x
1147
+ 2
1148
+ it
1149
+ p
1150
+ 3
1151
+ I
1152
+ 0
1153
+ I
1154
+ 27
1155
+ I
1156
+ b
1157
+ x
1158
+ 59
1159
+ /Users/hakanensari/code/sucker/spec/sucker/response_spec.rb
1160
+ p
1161
+ 0
1162
+ x
1163
+ 8
1164
+ describe
1165
+ s
1166
+ 12
1167
+ #has_errors?
1168
+ M
1169
+ 1
1170
+ p
1171
+ 2
1172
+ x
1173
+ 9
1174
+ for_block
1175
+ t
1176
+ n
1177
+ x
1178
+ 6
1179
+ Sucker
1180
+ i
1181
+ 11
1182
+ 5
1183
+ 7
1184
+ 0
1185
+ 64
1186
+ 56
1187
+ 1
1188
+ 47
1189
+ 50
1190
+ 2
1191
+ 1
1192
+ 11
1193
+ I
1194
+ 4
1195
+ I
1196
+ 0
1197
+ I
1198
+ 0
1199
+ I
1200
+ 0
1201
+ I
1202
+ -2
1203
+ p
1204
+ 3
1205
+ s
1206
+ 39
1207
+ returns true if the response has errors
1208
+ M
1209
+ 1
1210
+ p
1211
+ 2
1212
+ x
1213
+ 9
1214
+ for_block
1215
+ t
1216
+ n
1217
+ x
1218
+ 6
1219
+ Sucker
1220
+ i
1221
+ 10
1222
+ 5
1223
+ 48
1224
+ 0
1225
+ 5
1226
+ 48
1227
+ 1
1228
+ 49
1229
+ 2
1230
+ 1
1231
+ 11
1232
+ I
1233
+ 3
1234
+ I
1235
+ 0
1236
+ I
1237
+ 0
1238
+ I
1239
+ 0
1240
+ I
1241
+ -2
1242
+ p
1243
+ 3
1244
+ x
1245
+ 8
1246
+ response
1247
+ x
1248
+ 11
1249
+ have_errors
1250
+ x
1251
+ 6
1252
+ should
1253
+ p
1254
+ 3
1255
+ I
1256
+ 0
1257
+ I
1258
+ 2e
1259
+ I
1260
+ a
1261
+ x
1262
+ 59
1263
+ /Users/hakanensari/code/sucker/spec/sucker/response_spec.rb
1264
+ p
1265
+ 0
1266
+ x
1267
+ 2
1268
+ it
1269
+ p
1270
+ 3
1271
+ I
1272
+ 0
1273
+ I
1274
+ 2d
1275
+ I
1276
+ b
1277
+ x
1278
+ 59
1279
+ /Users/hakanensari/code/sucker/spec/sucker/response_spec.rb
1280
+ p
1281
+ 0
1282
+ p
1283
+ 7
1284
+ I
1285
+ 0
1286
+ I
1287
+ 22
1288
+ I
1289
+ 8
1290
+ I
1291
+ 26
1292
+ I
1293
+ 13
1294
+ I
1295
+ 2c
1296
+ I
1297
+ 1e
1298
+ x
1299
+ 59
1300
+ /Users/hakanensari/code/sucker/spec/sucker/response_spec.rb
1301
+ p
1302
+ 0
1303
+ x
1304
+ 7
1305
+ context
1306
+ s
1307
+ 5
1308
+ #find
1309
+ M
1310
+ 1
1311
+ p
1312
+ 2
1313
+ x
1314
+ 9
1315
+ for_block
1316
+ t
1317
+ n
1318
+ x
1319
+ 6
1320
+ Sucker
1321
+ i
1322
+ 22
1323
+ 5
1324
+ 7
1325
+ 0
1326
+ 64
1327
+ 56
1328
+ 1
1329
+ 47
1330
+ 50
1331
+ 2
1332
+ 1
1333
+ 15
1334
+ 5
1335
+ 7
1336
+ 3
1337
+ 64
1338
+ 56
1339
+ 4
1340
+ 47
1341
+ 50
1342
+ 2
1343
+ 1
1344
+ 11
1345
+ I
1346
+ 4
1347
+ I
1348
+ 0
1349
+ I
1350
+ 0
1351
+ I
1352
+ 0
1353
+ I
1354
+ -2
1355
+ p
1356
+ 5
1357
+ s
1358
+ 22
1359
+ when there are matches
1360
+ M
1361
+ 1
1362
+ p
1363
+ 2
1364
+ x
1365
+ 9
1366
+ for_block
1367
+ t
1368
+ n
1369
+ x
1370
+ 6
1371
+ Sucker
1372
+ i
1373
+ 11
1374
+ 5
1375
+ 7
1376
+ 0
1377
+ 64
1378
+ 56
1379
+ 1
1380
+ 47
1381
+ 50
1382
+ 2
1383
+ 1
1384
+ 11
1385
+ I
1386
+ 4
1387
+ I
1388
+ 0
1389
+ I
1390
+ 0
1391
+ I
1392
+ 0
1393
+ I
1394
+ -2
1395
+ p
1396
+ 3
1397
+ s
1398
+ 34
1399
+ returns an array of matching nodes
1400
+ M
1401
+ 1
1402
+ p
1403
+ 2
1404
+ x
1405
+ 9
1406
+ for_block
1407
+ t
1408
+ n
1409
+ x
1410
+ 6
1411
+ Sucker
1412
+ i
1413
+ 21
1414
+ 5
1415
+ 48
1416
+ 0
1417
+ 7
1418
+ 1
1419
+ 64
1420
+ 49
1421
+ 2
1422
+ 1
1423
+ 5
1424
+ 5
1425
+ 48
1426
+ 3
1427
+ 47
1428
+ 49
1429
+ 4
1430
+ 1
1431
+ 49
1432
+ 5
1433
+ 1
1434
+ 11
1435
+ I
1436
+ 4
1437
+ I
1438
+ 0
1439
+ I
1440
+ 0
1441
+ I
1442
+ 0
1443
+ I
1444
+ -2
1445
+ p
1446
+ 6
1447
+ x
1448
+ 8
1449
+ response
1450
+ s
1451
+ 4
1452
+ ASIN
1453
+ x
1454
+ 4
1455
+ find
1456
+ x
1457
+ 5
1458
+ asins
1459
+ x
1460
+ 3
1461
+ eql
1462
+ x
1463
+ 6
1464
+ should
1465
+ p
1466
+ 3
1467
+ I
1468
+ 0
1469
+ I
1470
+ 36
1471
+ I
1472
+ 15
1473
+ x
1474
+ 59
1475
+ /Users/hakanensari/code/sucker/spec/sucker/response_spec.rb
1476
+ p
1477
+ 0
1478
+ x
1479
+ 2
1480
+ it
1481
+ p
1482
+ 3
1483
+ I
1484
+ 0
1485
+ I
1486
+ 35
1487
+ I
1488
+ b
1489
+ x
1490
+ 59
1491
+ /Users/hakanensari/code/sucker/spec/sucker/response_spec.rb
1492
+ p
1493
+ 0
1494
+ x
1495
+ 7
1496
+ context
1497
+ s
1498
+ 25
1499
+ when there are no matches
1500
+ M
1501
+ 1
1502
+ p
1503
+ 2
1504
+ x
1505
+ 9
1506
+ for_block
1507
+ t
1508
+ n
1509
+ x
1510
+ 6
1511
+ Sucker
1512
+ i
1513
+ 11
1514
+ 5
1515
+ 7
1516
+ 0
1517
+ 64
1518
+ 56
1519
+ 1
1520
+ 47
1521
+ 50
1522
+ 2
1523
+ 1
1524
+ 11
1525
+ I
1526
+ 4
1527
+ I
1528
+ 0
1529
+ I
1530
+ 0
1531
+ I
1532
+ 0
1533
+ I
1534
+ -2
1535
+ p
1536
+ 3
1537
+ s
1538
+ 22
1539
+ returns an empty array
1540
+ M
1541
+ 1
1542
+ p
1543
+ 2
1544
+ x
1545
+ 9
1546
+ for_block
1547
+ t
1548
+ n
1549
+ x
1550
+ 6
1551
+ Sucker
1552
+ i
1553
+ 25
1554
+ 5
1555
+ 48
1556
+ 0
1557
+ 7
1558
+ 1
1559
+ 64
1560
+ 49
1561
+ 2
1562
+ 1
1563
+ 19
1564
+ 0
1565
+ 15
1566
+ 20
1567
+ 0
1568
+ 5
1569
+ 35
1570
+ 0
1571
+ 47
1572
+ 49
1573
+ 3
1574
+ 1
1575
+ 49
1576
+ 4
1577
+ 1
1578
+ 11
1579
+ I
1580
+ 5
1581
+ I
1582
+ 1
1583
+ I
1584
+ 0
1585
+ I
1586
+ 0
1587
+ I
1588
+ -2
1589
+ p
1590
+ 5
1591
+ x
1592
+ 8
1593
+ response
1594
+ s
1595
+ 3
1596
+ Foo
1597
+ x
1598
+ 4
1599
+ find
1600
+ x
1601
+ 3
1602
+ eql
1603
+ x
1604
+ 6
1605
+ should
1606
+ p
1607
+ 5
1608
+ I
1609
+ 0
1610
+ I
1611
+ 3c
1612
+ I
1613
+ c
1614
+ I
1615
+ 3d
1616
+ I
1617
+ 19
1618
+ x
1619
+ 59
1620
+ /Users/hakanensari/code/sucker/spec/sucker/response_spec.rb
1621
+ p
1622
+ 1
1623
+ x
1624
+ 4
1625
+ node
1626
+ x
1627
+ 2
1628
+ it
1629
+ p
1630
+ 3
1631
+ I
1632
+ 0
1633
+ I
1634
+ 3b
1635
+ I
1636
+ b
1637
+ x
1638
+ 59
1639
+ /Users/hakanensari/code/sucker/spec/sucker/response_spec.rb
1640
+ p
1641
+ 0
1642
+ p
1643
+ 5
1644
+ I
1645
+ 0
1646
+ I
1647
+ 34
1648
+ I
1649
+ b
1650
+ I
1651
+ 3a
1652
+ I
1653
+ 16
1654
+ x
1655
+ 59
1656
+ /Users/hakanensari/code/sucker/spec/sucker/response_spec.rb
1657
+ p
1658
+ 0
1659
+ s
1660
+ 8
1661
+ #to_hash
1662
+ M
1663
+ 1
1664
+ p
1665
+ 2
1666
+ x
1667
+ 9
1668
+ for_block
1669
+ t
1670
+ n
1671
+ x
1672
+ 6
1673
+ Sucker
1674
+ i
1675
+ 55
1676
+ 5
1677
+ 7
1678
+ 0
1679
+ 64
1680
+ 56
1681
+ 1
1682
+ 47
1683
+ 50
1684
+ 2
1685
+ 1
1686
+ 15
1687
+ 5
1688
+ 7
1689
+ 3
1690
+ 64
1691
+ 56
1692
+ 4
1693
+ 47
1694
+ 50
1695
+ 2
1696
+ 1
1697
+ 15
1698
+ 5
1699
+ 7
1700
+ 5
1701
+ 64
1702
+ 56
1703
+ 6
1704
+ 47
1705
+ 50
1706
+ 2
1707
+ 1
1708
+ 15
1709
+ 5
1710
+ 7
1711
+ 7
1712
+ 64
1713
+ 56
1714
+ 8
1715
+ 47
1716
+ 50
1717
+ 2
1718
+ 1
1719
+ 15
1720
+ 5
1721
+ 7
1722
+ 9
1723
+ 64
1724
+ 56
1725
+ 10
1726
+ 47
1727
+ 50
1728
+ 2
1729
+ 1
1730
+ 11
1731
+ I
1732
+ 4
1733
+ I
1734
+ 0
1735
+ I
1736
+ 0
1737
+ I
1738
+ 0
1739
+ I
1740
+ -2
1741
+ p
1742
+ 11
1743
+ s
1744
+ 14
1745
+ returns a hash
1746
+ M
1747
+ 1
1748
+ p
1749
+ 2
1750
+ x
1751
+ 9
1752
+ for_block
1753
+ t
1754
+ n
1755
+ x
1756
+ 6
1757
+ Sucker
1758
+ i
1759
+ 18
1760
+ 5
1761
+ 48
1762
+ 0
1763
+ 49
1764
+ 1
1765
+ 0
1766
+ 5
1767
+ 45
1768
+ 2
1769
+ 3
1770
+ 47
1771
+ 49
1772
+ 4
1773
+ 1
1774
+ 49
1775
+ 5
1776
+ 1
1777
+ 11
1778
+ I
1779
+ 4
1780
+ I
1781
+ 0
1782
+ I
1783
+ 0
1784
+ I
1785
+ 0
1786
+ I
1787
+ -2
1788
+ p
1789
+ 6
1790
+ x
1791
+ 8
1792
+ response
1793
+ x
1794
+ 7
1795
+ to_hash
1796
+ x
1797
+ 4
1798
+ Hash
1799
+ n
1800
+ x
1801
+ 17
1802
+ be_an_instance_of
1803
+ x
1804
+ 6
1805
+ should
1806
+ p
1807
+ 3
1808
+ I
1809
+ 0
1810
+ I
1811
+ 44
1812
+ I
1813
+ 12
1814
+ x
1815
+ 59
1816
+ /Users/hakanensari/code/sucker/spec/sucker/response_spec.rb
1817
+ p
1818
+ 0
1819
+ x
1820
+ 2
1821
+ it
1822
+ s
1823
+ 33
1824
+ converts a content hash to string
1825
+ M
1826
+ 1
1827
+ p
1828
+ 2
1829
+ x
1830
+ 9
1831
+ for_block
1832
+ t
1833
+ n
1834
+ x
1835
+ 6
1836
+ Sucker
1837
+ i
1838
+ 44
1839
+ 5
1840
+ 48
1841
+ 0
1842
+ 7
1843
+ 1
1844
+ 64
1845
+ 13
1846
+ 18
1847
+ 2
1848
+ 49
1849
+ 2
1850
+ 1
1851
+ 15
1852
+ 15
1853
+ 5
1854
+ 48
1855
+ 0
1856
+ 49
1857
+ 3
1858
+ 0
1859
+ 7
1860
+ 4
1861
+ 64
1862
+ 49
1863
+ 5
1864
+ 1
1865
+ 7
1866
+ 6
1867
+ 64
1868
+ 49
1869
+ 5
1870
+ 1
1871
+ 5
1872
+ 45
1873
+ 7
1874
+ 8
1875
+ 47
1876
+ 49
1877
+ 9
1878
+ 1
1879
+ 49
1880
+ 10
1881
+ 1
1882
+ 11
1883
+ I
1884
+ 4
1885
+ I
1886
+ 0
1887
+ I
1888
+ 0
1889
+ I
1890
+ 0
1891
+ I
1892
+ -2
1893
+ p
1894
+ 11
1895
+ x
1896
+ 8
1897
+ response
1898
+ s
1899
+ 47
1900
+ <book><title>A Thousand Plateaus</title></book>
1901
+ x
1902
+ 5
1903
+ body=
1904
+ x
1905
+ 7
1906
+ to_hash
1907
+ s
1908
+ 4
1909
+ book
1910
+ x
1911
+ 2
1912
+ []
1913
+ s
1914
+ 5
1915
+ title
1916
+ x
1917
+ 6
1918
+ String
1919
+ n
1920
+ x
1921
+ 17
1922
+ be_an_instance_of
1923
+ x
1924
+ 6
1925
+ should
1926
+ p
1927
+ 5
1928
+ I
1929
+ 0
1930
+ I
1931
+ 48
1932
+ I
1933
+ e
1934
+ I
1935
+ 49
1936
+ I
1937
+ 2c
1938
+ x
1939
+ 59
1940
+ /Users/hakanensari/code/sucker/spec/sucker/response_spec.rb
1941
+ p
1942
+ 0
1943
+ s
1944
+ 14
1945
+ renders French
1946
+ M
1947
+ 1
1948
+ p
1949
+ 2
1950
+ x
1951
+ 9
1952
+ for_block
1953
+ t
1954
+ n
1955
+ x
1956
+ 6
1957
+ Sucker
1958
+ i
1959
+ 38
1960
+ 5
1961
+ 48
1962
+ 0
1963
+ 7
1964
+ 1
1965
+ 64
1966
+ 13
1967
+ 18
1968
+ 2
1969
+ 49
1970
+ 2
1971
+ 1
1972
+ 15
1973
+ 15
1974
+ 5
1975
+ 48
1976
+ 0
1977
+ 49
1978
+ 3
1979
+ 0
1980
+ 7
1981
+ 4
1982
+ 64
1983
+ 49
1984
+ 5
1985
+ 1
1986
+ 5
1987
+ 7
1988
+ 6
1989
+ 64
1990
+ 47
1991
+ 49
1992
+ 7
1993
+ 1
1994
+ 49
1995
+ 8
1996
+ 1
1997
+ 11
1998
+ I
1999
+ 4
2000
+ I
2001
+ 0
2002
+ I
2003
+ 0
2004
+ I
2005
+ 0
2006
+ I
2007
+ -2
2008
+ p
2009
+ 9
2010
+ x
2011
+ 8
2012
+ response
2013
+ s
2014
+ 39
2015
+ <Title>L'archéologie du savoir</Title>
2016
+ x
2017
+ 5
2018
+ body=
2019
+ x
2020
+ 7
2021
+ to_hash
2022
+ s
2023
+ 5
2024
+ Title
2025
+ x
2026
+ 2
2027
+ []
2028
+ s
2029
+ 24
2030
+ L'archéologie du savoir
2031
+ x
2032
+ 3
2033
+ eql
2034
+ x
2035
+ 6
2036
+ should
2037
+ p
2038
+ 5
2039
+ I
2040
+ 0
2041
+ I
2042
+ 4d
2043
+ I
2044
+ e
2045
+ I
2046
+ 4e
2047
+ I
2048
+ 26
2049
+ x
2050
+ 59
2051
+ /Users/hakanensari/code/sucker/spec/sucker/response_spec.rb
2052
+ p
2053
+ 0
2054
+ s
2055
+ 14
2056
+ renders German
2057
+ M
2058
+ 1
2059
+ p
2060
+ 2
2061
+ x
2062
+ 9
2063
+ for_block
2064
+ t
2065
+ n
2066
+ x
2067
+ 6
2068
+ Sucker
2069
+ i
2070
+ 38
2071
+ 5
2072
+ 48
2073
+ 0
2074
+ 7
2075
+ 1
2076
+ 64
2077
+ 13
2078
+ 18
2079
+ 2
2080
+ 49
2081
+ 2
2082
+ 1
2083
+ 15
2084
+ 15
2085
+ 5
2086
+ 48
2087
+ 0
2088
+ 49
2089
+ 3
2090
+ 0
2091
+ 7
2092
+ 4
2093
+ 64
2094
+ 49
2095
+ 5
2096
+ 1
2097
+ 5
2098
+ 7
2099
+ 6
2100
+ 64
2101
+ 47
2102
+ 49
2103
+ 7
2104
+ 1
2105
+ 49
2106
+ 8
2107
+ 1
2108
+ 11
2109
+ I
2110
+ 4
2111
+ I
2112
+ 0
2113
+ I
2114
+ 0
2115
+ I
2116
+ 0
2117
+ I
2118
+ -2
2119
+ p
2120
+ 9
2121
+ x
2122
+ 8
2123
+ response
2124
+ s
2125
+ 48
2126
+ <Title>Kafka: Für eine kleine Literatur</Title>
2127
+ x
2128
+ 5
2129
+ body=
2130
+ x
2131
+ 7
2132
+ to_hash
2133
+ s
2134
+ 5
2135
+ Title
2136
+ x
2137
+ 2
2138
+ []
2139
+ s
2140
+ 33
2141
+ Kafka: Für eine kleine Literatur
2142
+ x
2143
+ 3
2144
+ eql
2145
+ x
2146
+ 6
2147
+ should
2148
+ p
2149
+ 5
2150
+ I
2151
+ 0
2152
+ I
2153
+ 52
2154
+ I
2155
+ e
2156
+ I
2157
+ 53
2158
+ I
2159
+ 26
2160
+ x
2161
+ 59
2162
+ /Users/hakanensari/code/sucker/spec/sucker/response_spec.rb
2163
+ p
2164
+ 0
2165
+ s
2166
+ 16
2167
+ renders Japanese
2168
+ M
2169
+ 1
2170
+ p
2171
+ 2
2172
+ x
2173
+ 9
2174
+ for_block
2175
+ t
2176
+ n
2177
+ x
2178
+ 6
2179
+ Sucker
2180
+ i
2181
+ 38
2182
+ 5
2183
+ 48
2184
+ 0
2185
+ 7
2186
+ 1
2187
+ 64
2188
+ 13
2189
+ 18
2190
+ 2
2191
+ 49
2192
+ 2
2193
+ 1
2194
+ 15
2195
+ 15
2196
+ 5
2197
+ 48
2198
+ 0
2199
+ 49
2200
+ 3
2201
+ 0
2202
+ 7
2203
+ 4
2204
+ 64
2205
+ 49
2206
+ 5
2207
+ 1
2208
+ 5
2209
+ 7
2210
+ 6
2211
+ 64
2212
+ 47
2213
+ 49
2214
+ 7
2215
+ 1
2216
+ 49
2217
+ 8
2218
+ 1
2219
+ 11
2220
+ I
2221
+ 4
2222
+ I
2223
+ 0
2224
+ I
2225
+ 0
2226
+ I
2227
+ 0
2228
+ I
2229
+ -2
2230
+ p
2231
+ 9
2232
+ x
2233
+ 8
2234
+ response
2235
+ s
2236
+ 105
2237
+ <Title>スティーブ・ジョブズ 驚異のプレゼン―人々を惹きつける18の法則</Title>
2238
+ x
2239
+ 5
2240
+ body=
2241
+ x
2242
+ 7
2243
+ to_hash
2244
+ s
2245
+ 5
2246
+ Title
2247
+ x
2248
+ 2
2249
+ []
2250
+ s
2251
+ 90
2252
+ スティーブ・ジョブズ 驚異のプレゼン―人々を惹きつける18の法則
2253
+ x
2254
+ 3
2255
+ eql
2256
+ x
2257
+ 6
2258
+ should
2259
+ p
2260
+ 5
2261
+ I
2262
+ 0
2263
+ I
2264
+ 57
2265
+ I
2266
+ e
2267
+ I
2268
+ 58
2269
+ I
2270
+ 26
2271
+ x
2272
+ 59
2273
+ /Users/hakanensari/code/sucker/spec/sucker/response_spec.rb
2274
+ p
2275
+ 0
2276
+ p
2277
+ 11
2278
+ I
2279
+ 0
2280
+ I
2281
+ 43
2282
+ I
2283
+ b
2284
+ I
2285
+ 47
2286
+ I
2287
+ 16
2288
+ I
2289
+ 4c
2290
+ I
2291
+ 21
2292
+ I
2293
+ 51
2294
+ I
2295
+ 2c
2296
+ I
2297
+ 56
2298
+ I
2299
+ 37
2300
+ x
2301
+ 59
2302
+ /Users/hakanensari/code/sucker/spec/sucker/response_spec.rb
2303
+ p
2304
+ 0
2305
+ s
2306
+ 7
2307
+ #valid?
2308
+ M
2309
+ 1
2310
+ p
2311
+ 2
2312
+ x
2313
+ 9
2314
+ for_block
2315
+ t
2316
+ n
2317
+ x
2318
+ 6
2319
+ Sucker
2320
+ i
2321
+ 22
2322
+ 5
2323
+ 7
2324
+ 0
2325
+ 64
2326
+ 56
2327
+ 1
2328
+ 47
2329
+ 50
2330
+ 2
2331
+ 1
2332
+ 15
2333
+ 5
2334
+ 7
2335
+ 3
2336
+ 64
2337
+ 56
2338
+ 4
2339
+ 47
2340
+ 50
2341
+ 2
2342
+ 1
2343
+ 11
2344
+ I
2345
+ 4
2346
+ I
2347
+ 0
2348
+ I
2349
+ 0
2350
+ I
2351
+ 0
2352
+ I
2353
+ -2
2354
+ p
2355
+ 5
2356
+ s
2357
+ 22
2358
+ when HTTP status is OK
2359
+ M
2360
+ 1
2361
+ p
2362
+ 2
2363
+ x
2364
+ 9
2365
+ for_block
2366
+ t
2367
+ n
2368
+ x
2369
+ 6
2370
+ Sucker
2371
+ i
2372
+ 11
2373
+ 5
2374
+ 7
2375
+ 0
2376
+ 64
2377
+ 56
2378
+ 1
2379
+ 47
2380
+ 50
2381
+ 2
2382
+ 1
2383
+ 11
2384
+ I
2385
+ 4
2386
+ I
2387
+ 0
2388
+ I
2389
+ 0
2390
+ I
2391
+ 0
2392
+ I
2393
+ -2
2394
+ p
2395
+ 3
2396
+ s
2397
+ 12
2398
+ returns true
2399
+ M
2400
+ 1
2401
+ p
2402
+ 2
2403
+ x
2404
+ 9
2405
+ for_block
2406
+ t
2407
+ n
2408
+ x
2409
+ 6
2410
+ Sucker
2411
+ i
2412
+ 10
2413
+ 5
2414
+ 48
2415
+ 0
2416
+ 5
2417
+ 48
2418
+ 1
2419
+ 49
2420
+ 2
2421
+ 1
2422
+ 11
2423
+ I
2424
+ 3
2425
+ I
2426
+ 0
2427
+ I
2428
+ 0
2429
+ I
2430
+ 0
2431
+ I
2432
+ -2
2433
+ p
2434
+ 3
2435
+ x
2436
+ 8
2437
+ response
2438
+ x
2439
+ 8
2440
+ be_valid
2441
+ x
2442
+ 6
2443
+ should
2444
+ p
2445
+ 3
2446
+ I
2447
+ 0
2448
+ I
2449
+ 5f
2450
+ I
2451
+ a
2452
+ x
2453
+ 59
2454
+ /Users/hakanensari/code/sucker/spec/sucker/response_spec.rb
2455
+ p
2456
+ 0
2457
+ x
2458
+ 2
2459
+ it
2460
+ p
2461
+ 3
2462
+ I
2463
+ 0
2464
+ I
2465
+ 5e
2466
+ I
2467
+ b
2468
+ x
2469
+ 59
2470
+ /Users/hakanensari/code/sucker/spec/sucker/response_spec.rb
2471
+ p
2472
+ 0
2473
+ x
2474
+ 7
2475
+ context
2476
+ s
2477
+ 26
2478
+ when HTTP status is not OK
2479
+ M
2480
+ 1
2481
+ p
2482
+ 2
2483
+ x
2484
+ 9
2485
+ for_block
2486
+ t
2487
+ n
2488
+ x
2489
+ 6
2490
+ Sucker
2491
+ i
2492
+ 11
2493
+ 5
2494
+ 7
2495
+ 0
2496
+ 64
2497
+ 56
2498
+ 1
2499
+ 47
2500
+ 50
2501
+ 2
2502
+ 1
2503
+ 11
2504
+ I
2505
+ 4
2506
+ I
2507
+ 0
2508
+ I
2509
+ 0
2510
+ I
2511
+ 0
2512
+ I
2513
+ -2
2514
+ p
2515
+ 3
2516
+ s
2517
+ 13
2518
+ returns false
2519
+ M
2520
+ 1
2521
+ p
2522
+ 2
2523
+ x
2524
+ 9
2525
+ for_block
2526
+ t
2527
+ n
2528
+ x
2529
+ 6
2530
+ Sucker
2531
+ i
2532
+ 23
2533
+ 5
2534
+ 48
2535
+ 0
2536
+ 7
2537
+ 1
2538
+ 13
2539
+ 18
2540
+ 2
2541
+ 49
2542
+ 2
2543
+ 1
2544
+ 15
2545
+ 15
2546
+ 5
2547
+ 48
2548
+ 0
2549
+ 5
2550
+ 48
2551
+ 3
2552
+ 49
2553
+ 4
2554
+ 1
2555
+ 11
2556
+ I
2557
+ 4
2558
+ I
2559
+ 0
2560
+ I
2561
+ 0
2562
+ I
2563
+ 0
2564
+ I
2565
+ -2
2566
+ p
2567
+ 5
2568
+ x
2569
+ 8
2570
+ response
2571
+ I
2572
+ 193
2573
+ x
2574
+ 5
2575
+ code=
2576
+ x
2577
+ 8
2578
+ be_valid
2579
+ x
2580
+ 10
2581
+ should_not
2582
+ p
2583
+ 5
2584
+ I
2585
+ 0
2586
+ I
2587
+ 65
2588
+ I
2589
+ d
2590
+ I
2591
+ 66
2592
+ I
2593
+ 17
2594
+ x
2595
+ 59
2596
+ /Users/hakanensari/code/sucker/spec/sucker/response_spec.rb
2597
+ p
2598
+ 0
2599
+ x
2600
+ 2
2601
+ it
2602
+ p
2603
+ 3
2604
+ I
2605
+ 0
2606
+ I
2607
+ 64
2608
+ I
2609
+ b
2610
+ x
2611
+ 59
2612
+ /Users/hakanensari/code/sucker/spec/sucker/response_spec.rb
2613
+ p
2614
+ 0
2615
+ p
2616
+ 5
2617
+ I
2618
+ 0
2619
+ I
2620
+ 5d
2621
+ I
2622
+ b
2623
+ I
2624
+ 63
2625
+ I
2626
+ 16
2627
+ x
2628
+ 59
2629
+ /Users/hakanensari/code/sucker/spec/sucker/response_spec.rb
2630
+ p
2631
+ 0
2632
+ s
2633
+ 4
2634
+ #xml
2635
+ M
2636
+ 1
2637
+ p
2638
+ 2
2639
+ x
2640
+ 9
2641
+ for_block
2642
+ t
2643
+ n
2644
+ x
2645
+ 6
2646
+ Sucker
2647
+ i
2648
+ 11
2649
+ 5
2650
+ 7
2651
+ 0
2652
+ 64
2653
+ 56
2654
+ 1
2655
+ 47
2656
+ 50
2657
+ 2
2658
+ 1
2659
+ 11
2660
+ I
2661
+ 4
2662
+ I
2663
+ 0
2664
+ I
2665
+ 0
2666
+ I
2667
+ 0
2668
+ I
2669
+ -2
2670
+ p
2671
+ 3
2672
+ s
2673
+ 27
2674
+ returns a Nokogiri document
2675
+ M
2676
+ 1
2677
+ p
2678
+ 2
2679
+ x
2680
+ 9
2681
+ for_block
2682
+ t
2683
+ n
2684
+ x
2685
+ 6
2686
+ Sucker
2687
+ i
2688
+ 22
2689
+ 5
2690
+ 48
2691
+ 0
2692
+ 49
2693
+ 1
2694
+ 0
2695
+ 5
2696
+ 45
2697
+ 2
2698
+ 3
2699
+ 43
2700
+ 4
2701
+ 43
2702
+ 5
2703
+ 47
2704
+ 49
2705
+ 6
2706
+ 1
2707
+ 49
2708
+ 7
2709
+ 1
2710
+ 11
2711
+ I
2712
+ 4
2713
+ I
2714
+ 0
2715
+ I
2716
+ 0
2717
+ I
2718
+ 0
2719
+ I
2720
+ -2
2721
+ p
2722
+ 8
2723
+ x
2724
+ 8
2725
+ response
2726
+ x
2727
+ 3
2728
+ xml
2729
+ x
2730
+ 8
2731
+ Nokogiri
2732
+ n
2733
+ x
2734
+ 3
2735
+ XML
2736
+ x
2737
+ 8
2738
+ Document
2739
+ x
2740
+ 17
2741
+ be_an_instance_of
2742
+ x
2743
+ 6
2744
+ should
2745
+ p
2746
+ 3
2747
+ I
2748
+ 0
2749
+ I
2750
+ 6d
2751
+ I
2752
+ 16
2753
+ x
2754
+ 59
2755
+ /Users/hakanensari/code/sucker/spec/sucker/response_spec.rb
2756
+ p
2757
+ 0
2758
+ x
2759
+ 2
2760
+ it
2761
+ p
2762
+ 3
2763
+ I
2764
+ 0
2765
+ I
2766
+ 6c
2767
+ I
2768
+ b
2769
+ x
2770
+ 59
2771
+ /Users/hakanensari/code/sucker/spec/sucker/response_spec.rb
2772
+ p
2773
+ 0
2774
+ p
2775
+ 19
2776
+ I
2777
+ 0
2778
+ I
2779
+ 7
2780
+ I
2781
+ 19
2782
+ I
2783
+ 9
2784
+ I
2785
+ 23
2786
+ I
2787
+ b
2788
+ I
2789
+ 2d
2790
+ I
2791
+ 17
2792
+ I
2793
+ 38
2794
+ I
2795
+ 21
2796
+ I
2797
+ 43
2798
+ I
2799
+ 33
2800
+ I
2801
+ 4e
2802
+ I
2803
+ 42
2804
+ I
2805
+ 59
2806
+ I
2807
+ 5c
2808
+ I
2809
+ 64
2810
+ I
2811
+ 6b
2812
+ I
2813
+ 6f
2814
+ x
2815
+ 59
2816
+ /Users/hakanensari/code/sucker/spec/sucker/response_spec.rb
2817
+ p
2818
+ 0
2819
+ x
2820
+ 8
2821
+ describe
2822
+ p
2823
+ 3
2824
+ I
2825
+ 2
2826
+ I
2827
+ 6
2828
+ I
2829
+ d
2830
+ x
2831
+ 59
2832
+ /Users/hakanensari/code/sucker/spec/sucker/response_spec.rb
2833
+ p
2834
+ 0
2835
+ x
2836
+ 13
2837
+ attach_method
2838
+ p
2839
+ 5
2840
+ I
2841
+ 0
2842
+ I
2843
+ 3
2844
+ I
2845
+ 9
2846
+ I
2847
+ 5
2848
+ I
2849
+ 25
2850
+ x
2851
+ 59
2852
+ /Users/hakanensari/code/sucker/spec/sucker/response_spec.rb
2853
+ p
2854
+ 0