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

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