sucker 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +16 -11
- data/lib/sucker.rb +3 -3
- data/lib/sucker.rbc +18 -34
- data/lib/sucker/hash.rb +7 -0
- data/lib/sucker/hash.rbc +914 -0
- data/lib/sucker/parameters.rb +3 -4
- data/lib/sucker/parameters.rbc +177 -122
- data/lib/sucker/request.rb +13 -11
- data/lib/sucker/request.rbc +257 -792
- data/lib/sucker/response.rb +25 -20
- data/lib/sucker/response.rbc +356 -472
- data/lib/sucker/version.rb +1 -1
- data/lib/sucker/version.rbc +4 -4
- data/spec/sucker/hash_spec.rbc +861 -0
- data/spec/sucker/parameters_spec.rbc +5 -6
- data/spec/sucker/request_spec.rbc +38 -420
- data/spec/sucker/response_spec.rb +2 -2
- data/spec/sucker/response_spec.rbc +1258 -349
- metadata +5 -90
data/lib/sucker/request.rb
CHANGED
@@ -4,7 +4,7 @@ require 'sucker/parameters'
|
|
4
4
|
|
5
5
|
module Sucker
|
6
6
|
|
7
|
-
# A wrapper around the API request
|
7
|
+
# A wrapper around the API request.
|
8
8
|
class Request
|
9
9
|
HOSTS = {
|
10
10
|
:us => 'ecs.amazonaws.com',
|
@@ -14,19 +14,21 @@ module Sucker
|
|
14
14
|
:fr => 'ecs.amazonaws.fr',
|
15
15
|
:jp => 'ecs.amazonaws.jp' }
|
16
16
|
|
17
|
-
#
|
17
|
+
# The Amazon associate tag.
|
18
18
|
attr_accessor :associate_tag
|
19
19
|
|
20
|
-
#
|
20
|
+
# The Amazon Web Services access key.
|
21
21
|
attr_accessor :key
|
22
22
|
|
23
|
-
# Amazon locale
|
23
|
+
# The Amazon locale.
|
24
24
|
attr_accessor :locale
|
25
25
|
|
26
|
-
#
|
26
|
+
# The Amazon Web Services secret.
|
27
27
|
attr_accessor :secret
|
28
28
|
|
29
|
-
# Initializes a request object
|
29
|
+
# Initializes a request object.
|
30
|
+
#
|
31
|
+
# Takes an optional hash of attribute and value pairs.
|
30
32
|
#
|
31
33
|
# worker = Sucker.new(
|
32
34
|
# :key => 'API KEY',
|
@@ -36,7 +38,7 @@ module Sucker
|
|
36
38
|
args.each { |k, v| send("#{k}=", v) }
|
37
39
|
end
|
38
40
|
|
39
|
-
# Merges a hash into the existing parameters
|
41
|
+
# Merges a hash into the existing parameters.
|
40
42
|
#
|
41
43
|
# worker << {
|
42
44
|
# 'Operation' => 'ItemLookup',
|
@@ -47,7 +49,7 @@ module Sucker
|
|
47
49
|
parameters.merge!(hash)
|
48
50
|
end
|
49
51
|
|
50
|
-
# Performs a request and returns a response
|
52
|
+
# Performs a request and returns a response object.
|
51
53
|
#
|
52
54
|
# response = worker.get
|
53
55
|
#
|
@@ -60,12 +62,12 @@ module Sucker
|
|
60
62
|
Response.new(response)
|
61
63
|
end
|
62
64
|
|
63
|
-
# The
|
65
|
+
# The query parameters.
|
64
66
|
def parameters
|
65
67
|
@parameters ||= Parameters.new
|
66
68
|
end
|
67
69
|
|
68
|
-
# Sets the Amazon API version
|
70
|
+
# Sets the Amazon API version.
|
69
71
|
#
|
70
72
|
# worker.version = '2010-06-01'
|
71
73
|
#
|
@@ -103,7 +105,7 @@ module Sucker
|
|
103
105
|
end
|
104
106
|
|
105
107
|
def host
|
106
|
-
HOSTS[locale]
|
108
|
+
HOSTS[locale.to_sym]
|
107
109
|
end
|
108
110
|
end
|
109
111
|
end
|
data/lib/sucker/request.rbc
CHANGED
@@ -77,8 +77,8 @@ n
|
|
77
77
|
p
|
78
78
|
9
|
79
79
|
s
|
80
|
-
|
81
|
-
|
80
|
+
10
|
81
|
+
httpclient
|
82
82
|
x
|
83
83
|
7
|
84
84
|
require
|
@@ -86,8 +86,8 @@ s
|
|
86
86
|
7
|
87
87
|
openssl
|
88
88
|
s
|
89
|
-
|
90
|
-
|
89
|
+
17
|
90
|
+
sucker/parameters
|
91
91
|
x
|
92
92
|
6
|
93
93
|
Sucker
|
@@ -163,7 +163,7 @@ x
|
|
163
163
|
7
|
164
164
|
Request
|
165
165
|
i
|
166
|
-
|
166
|
+
267
|
167
167
|
5
|
168
168
|
66
|
169
169
|
65
|
@@ -273,170 +273,162 @@ i
|
|
273
273
|
18
|
274
274
|
1
|
275
275
|
15
|
276
|
-
|
276
|
+
99
|
277
277
|
7
|
278
278
|
22
|
279
|
-
47
|
280
|
-
49
|
281
|
-
18
|
282
|
-
1
|
283
|
-
15
|
284
|
-
99
|
285
279
|
7
|
286
280
|
23
|
287
|
-
7
|
288
|
-
24
|
289
281
|
65
|
290
282
|
67
|
291
283
|
49
|
292
|
-
|
284
|
+
24
|
293
285
|
0
|
294
286
|
49
|
295
|
-
|
287
|
+
25
|
296
288
|
4
|
297
289
|
15
|
298
290
|
99
|
299
291
|
7
|
300
|
-
|
292
|
+
26
|
301
293
|
7
|
302
|
-
|
294
|
+
27
|
303
295
|
65
|
304
296
|
67
|
305
297
|
49
|
306
|
-
|
298
|
+
24
|
307
299
|
0
|
308
300
|
49
|
309
|
-
|
301
|
+
25
|
310
302
|
4
|
311
303
|
15
|
312
304
|
99
|
313
305
|
7
|
314
|
-
|
306
|
+
28
|
315
307
|
7
|
316
|
-
|
308
|
+
29
|
317
309
|
65
|
318
310
|
67
|
319
311
|
49
|
320
|
-
|
312
|
+
24
|
321
313
|
0
|
322
314
|
49
|
323
|
-
|
315
|
+
25
|
324
316
|
4
|
325
317
|
15
|
326
318
|
99
|
327
319
|
7
|
328
|
-
|
320
|
+
30
|
329
321
|
7
|
330
|
-
|
322
|
+
31
|
331
323
|
65
|
332
324
|
67
|
333
325
|
49
|
334
|
-
|
326
|
+
24
|
335
327
|
0
|
336
328
|
49
|
337
|
-
|
329
|
+
25
|
338
330
|
4
|
339
331
|
15
|
340
332
|
99
|
341
333
|
7
|
342
|
-
|
334
|
+
32
|
343
335
|
7
|
344
|
-
|
336
|
+
33
|
345
337
|
65
|
346
338
|
67
|
347
339
|
49
|
348
|
-
|
340
|
+
24
|
349
341
|
0
|
350
342
|
49
|
351
|
-
|
343
|
+
25
|
352
344
|
4
|
353
345
|
15
|
354
|
-
5
|
355
|
-
48
|
356
|
-
35
|
357
|
-
15
|
358
346
|
99
|
359
347
|
7
|
360
|
-
|
348
|
+
34
|
361
349
|
7
|
362
|
-
|
350
|
+
35
|
363
351
|
65
|
364
352
|
67
|
365
353
|
49
|
366
|
-
|
354
|
+
24
|
367
355
|
0
|
368
356
|
49
|
369
|
-
|
357
|
+
25
|
370
358
|
4
|
371
359
|
15
|
360
|
+
5
|
361
|
+
48
|
362
|
+
36
|
363
|
+
15
|
372
364
|
99
|
373
365
|
7
|
374
|
-
|
366
|
+
37
|
375
367
|
7
|
376
|
-
|
368
|
+
38
|
377
369
|
65
|
378
370
|
67
|
379
371
|
49
|
380
|
-
|
372
|
+
24
|
381
373
|
0
|
382
374
|
49
|
383
|
-
|
375
|
+
25
|
384
376
|
4
|
385
377
|
15
|
386
378
|
99
|
387
379
|
7
|
388
|
-
|
380
|
+
39
|
389
381
|
7
|
390
|
-
|
382
|
+
40
|
391
383
|
65
|
392
384
|
67
|
393
385
|
49
|
394
|
-
|
386
|
+
24
|
395
387
|
0
|
396
388
|
49
|
397
|
-
|
389
|
+
25
|
398
390
|
4
|
399
391
|
15
|
400
392
|
99
|
401
393
|
7
|
402
|
-
|
394
|
+
41
|
403
395
|
7
|
404
|
-
|
396
|
+
42
|
405
397
|
65
|
406
398
|
67
|
407
399
|
49
|
408
|
-
|
400
|
+
24
|
409
401
|
0
|
410
402
|
49
|
411
|
-
|
403
|
+
25
|
412
404
|
4
|
413
405
|
15
|
414
406
|
99
|
415
407
|
7
|
416
|
-
|
408
|
+
43
|
417
409
|
7
|
418
|
-
|
410
|
+
44
|
419
411
|
65
|
420
412
|
67
|
421
413
|
49
|
422
|
-
|
414
|
+
24
|
423
415
|
0
|
424
416
|
49
|
425
|
-
|
417
|
+
25
|
426
418
|
4
|
427
419
|
15
|
428
420
|
99
|
429
421
|
7
|
430
|
-
|
422
|
+
45
|
431
423
|
7
|
432
|
-
|
424
|
+
46
|
433
425
|
65
|
434
426
|
67
|
435
427
|
49
|
436
|
-
|
428
|
+
24
|
437
429
|
0
|
438
430
|
49
|
439
|
-
|
431
|
+
25
|
440
432
|
4
|
441
433
|
11
|
442
434
|
I
|
@@ -449,7 +441,7 @@ I
|
|
449
441
|
0
|
450
442
|
n
|
451
443
|
p
|
452
|
-
|
444
|
+
47
|
453
445
|
x
|
454
446
|
5
|
455
447
|
HOSTS
|
@@ -511,9 +503,6 @@ x
|
|
511
503
|
3
|
512
504
|
key
|
513
505
|
x
|
514
|
-
8
|
515
|
-
local_ip
|
516
|
-
x
|
517
506
|
6
|
518
507
|
locale
|
519
508
|
x
|
@@ -636,7 +625,7 @@ p
|
|
636
625
|
I
|
637
626
|
0
|
638
627
|
I
|
639
|
-
|
628
|
+
28
|
640
629
|
I
|
641
630
|
1b
|
642
631
|
x
|
@@ -658,11 +647,11 @@ p
|
|
658
647
|
I
|
659
648
|
-1
|
660
649
|
I
|
661
|
-
|
650
|
+
27
|
662
651
|
I
|
663
652
|
e
|
664
653
|
I
|
665
|
-
|
654
|
+
28
|
666
655
|
I
|
667
656
|
16
|
668
657
|
x
|
@@ -722,11 +711,11 @@ p
|
|
722
711
|
I
|
723
712
|
-1
|
724
713
|
I
|
725
|
-
|
714
|
+
32
|
726
715
|
I
|
727
716
|
0
|
728
717
|
I
|
729
|
-
|
718
|
+
33
|
730
719
|
I
|
731
720
|
9
|
732
721
|
x
|
@@ -738,233 +727,166 @@ x
|
|
738
727
|
4
|
739
728
|
hash
|
740
729
|
x
|
741
|
-
|
742
|
-
|
730
|
+
7
|
731
|
+
adapter
|
743
732
|
M
|
744
733
|
1
|
745
734
|
n
|
746
735
|
n
|
747
736
|
x
|
748
|
-
|
749
|
-
|
737
|
+
7
|
738
|
+
adapter
|
750
739
|
i
|
751
|
-
|
752
|
-
|
753
|
-
5
|
754
|
-
48
|
755
|
-
0
|
756
|
-
56
|
757
|
-
1
|
758
|
-
47
|
759
|
-
50
|
760
|
-
2
|
761
|
-
1
|
762
|
-
19
|
740
|
+
33
|
741
|
+
39
|
763
742
|
0
|
743
|
+
13
|
744
|
+
10
|
745
|
+
32
|
764
746
|
15
|
765
747
|
45
|
766
|
-
|
767
|
-
|
748
|
+
1
|
749
|
+
2
|
768
750
|
13
|
769
751
|
71
|
770
|
-
|
752
|
+
3
|
771
753
|
47
|
772
754
|
9
|
773
|
-
|
755
|
+
27
|
774
756
|
47
|
775
757
|
49
|
776
|
-
|
758
|
+
4
|
777
759
|
0
|
778
760
|
13
|
779
|
-
20
|
780
|
-
0
|
781
761
|
47
|
782
762
|
49
|
783
|
-
|
784
|
-
|
763
|
+
5
|
764
|
+
0
|
785
765
|
15
|
786
766
|
8
|
787
|
-
|
788
|
-
20
|
789
|
-
0
|
767
|
+
30
|
790
768
|
49
|
791
|
-
|
792
|
-
|
769
|
+
3
|
770
|
+
0
|
771
|
+
38
|
772
|
+
0
|
793
773
|
11
|
794
774
|
I
|
795
|
-
|
775
|
+
2
|
796
776
|
I
|
797
|
-
|
777
|
+
0
|
798
778
|
I
|
799
779
|
0
|
800
780
|
I
|
801
781
|
0
|
802
782
|
n
|
803
783
|
p
|
804
|
-
|
784
|
+
6
|
805
785
|
x
|
806
786
|
8
|
807
|
-
|
808
|
-
M
|
809
|
-
1
|
810
|
-
p
|
811
|
-
2
|
787
|
+
@adapter
|
812
788
|
x
|
813
|
-
|
814
|
-
|
815
|
-
t
|
789
|
+
10
|
790
|
+
HTTPClient
|
816
791
|
n
|
817
792
|
x
|
818
793
|
3
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
5
|
828
|
-
48
|
829
|
-
3
|
830
|
-
4
|
831
|
-
80
|
832
|
-
56
|
833
|
-
4
|
834
|
-
50
|
794
|
+
new
|
795
|
+
x
|
796
|
+
8
|
797
|
+
allocate
|
798
|
+
x
|
799
|
+
10
|
800
|
+
initialize
|
801
|
+
p
|
835
802
|
5
|
836
|
-
2
|
837
|
-
11
|
838
803
|
I
|
839
|
-
|
804
|
+
-1
|
840
805
|
I
|
841
|
-
|
806
|
+
3b
|
842
807
|
I
|
843
808
|
0
|
844
809
|
I
|
845
|
-
|
810
|
+
3c
|
846
811
|
I
|
847
|
-
|
812
|
+
21
|
813
|
+
x
|
814
|
+
52
|
815
|
+
/Users/hakanensari/code/sucker/lib/sucker/request.rb
|
848
816
|
p
|
849
|
-
|
817
|
+
0
|
850
818
|
x
|
851
819
|
3
|
852
|
-
|
853
|
-
n
|
854
|
-
x
|
855
|
-
4
|
856
|
-
HTTP
|
857
|
-
x
|
858
|
-
4
|
859
|
-
host
|
820
|
+
get
|
860
821
|
M
|
861
822
|
1
|
862
|
-
|
863
|
-
2
|
864
|
-
x
|
865
|
-
9
|
866
|
-
for_block
|
867
|
-
t
|
823
|
+
n
|
868
824
|
n
|
869
825
|
x
|
870
826
|
3
|
871
827
|
get
|
872
828
|
i
|
873
|
-
|
874
|
-
|
875
|
-
19
|
829
|
+
49
|
830
|
+
45
|
876
831
|
0
|
877
|
-
|
832
|
+
1
|
833
|
+
13
|
834
|
+
71
|
835
|
+
2
|
836
|
+
47
|
837
|
+
9
|
838
|
+
33
|
839
|
+
47
|
840
|
+
49
|
841
|
+
3
|
842
|
+
0
|
843
|
+
13
|
878
844
|
5
|
879
845
|
48
|
846
|
+
4
|
847
|
+
5
|
848
|
+
48
|
849
|
+
5
|
850
|
+
49
|
851
|
+
6
|
880
852
|
0
|
881
|
-
|
882
|
-
1
|
883
|
-
15
|
884
|
-
20
|
885
|
-
0
|
853
|
+
49
|
886
854
|
7
|
887
855
|
1
|
888
|
-
20
|
889
|
-
1
|
890
856
|
47
|
891
|
-
101
|
892
|
-
2
|
893
|
-
63
|
894
|
-
2
|
895
857
|
49
|
896
|
-
|
858
|
+
8
|
897
859
|
1
|
898
|
-
|
899
|
-
|
860
|
+
15
|
861
|
+
8
|
862
|
+
48
|
863
|
+
5
|
864
|
+
48
|
865
|
+
4
|
866
|
+
5
|
867
|
+
48
|
868
|
+
5
|
869
|
+
49
|
900
870
|
6
|
901
|
-
|
871
|
+
0
|
872
|
+
49
|
873
|
+
7
|
874
|
+
1
|
875
|
+
49
|
902
876
|
2
|
903
|
-
I
|
904
877
|
1
|
878
|
+
11
|
905
879
|
I
|
906
|
-
1
|
907
|
-
n
|
908
|
-
p
|
909
|
-
4
|
910
|
-
x
|
911
|
-
18
|
912
|
-
build_signed_query
|
913
|
-
s
|
914
|
-
10
|
915
|
-
/onca/xml?
|
916
|
-
x
|
917
880
|
4
|
918
|
-
to_s
|
919
|
-
x
|
920
|
-
3
|
921
|
-
get
|
922
|
-
p
|
923
|
-
7
|
924
881
|
I
|
925
882
|
0
|
926
883
|
I
|
927
|
-
3d
|
928
|
-
I
|
929
|
-
4
|
930
|
-
I
|
931
|
-
3e
|
932
|
-
I
|
933
|
-
a
|
934
|
-
I
|
935
|
-
3f
|
936
|
-
I
|
937
|
-
19
|
938
|
-
x
|
939
|
-
52
|
940
|
-
/Users/hakanensari/code/sucker/lib/sucker/request.rb
|
941
|
-
p
|
942
|
-
2
|
943
|
-
x
|
944
|
-
4
|
945
|
-
http
|
946
|
-
x
|
947
|
-
5
|
948
|
-
query
|
949
|
-
x
|
950
|
-
5
|
951
|
-
start
|
952
|
-
p
|
953
|
-
3
|
954
|
-
I
|
955
884
|
0
|
956
885
|
I
|
957
|
-
3d
|
958
|
-
I
|
959
|
-
10
|
960
|
-
x
|
961
|
-
52
|
962
|
-
/Users/hakanensari/code/sucker/lib/sucker/request.rb
|
963
|
-
p
|
964
886
|
0
|
965
|
-
|
966
|
-
|
967
|
-
|
887
|
+
n
|
888
|
+
p
|
889
|
+
9
|
968
890
|
x
|
969
891
|
8
|
970
892
|
Response
|
@@ -976,32 +898,37 @@ x
|
|
976
898
|
8
|
977
899
|
allocate
|
978
900
|
x
|
901
|
+
7
|
902
|
+
adapter
|
903
|
+
x
|
904
|
+
3
|
905
|
+
url
|
906
|
+
x
|
907
|
+
4
|
908
|
+
to_s
|
909
|
+
x
|
910
|
+
3
|
911
|
+
get
|
912
|
+
x
|
979
913
|
10
|
980
914
|
initialize
|
981
915
|
p
|
982
|
-
|
916
|
+
5
|
983
917
|
I
|
984
918
|
-1
|
985
919
|
I
|
986
|
-
|
920
|
+
43
|
987
921
|
I
|
988
922
|
0
|
989
923
|
I
|
990
|
-
|
991
|
-
I
|
992
|
-
d
|
993
|
-
I
|
994
|
-
42
|
924
|
+
44
|
995
925
|
I
|
996
|
-
|
926
|
+
31
|
997
927
|
x
|
998
928
|
52
|
999
929
|
/Users/hakanensari/code/sucker/lib/sucker/request.rb
|
1000
930
|
p
|
1001
|
-
|
1002
|
-
x
|
1003
|
-
8
|
1004
|
-
response
|
931
|
+
0
|
1005
932
|
x
|
1006
933
|
10
|
1007
934
|
parameters
|
@@ -1079,11 +1006,11 @@ p
|
|
1079
1006
|
I
|
1080
1007
|
-1
|
1081
1008
|
I
|
1082
|
-
|
1009
|
+
48
|
1083
1010
|
I
|
1084
1011
|
0
|
1085
1012
|
I
|
1086
|
-
|
1013
|
+
49
|
1087
1014
|
I
|
1088
1015
|
21
|
1089
1016
|
x
|
@@ -1144,11 +1071,11 @@ p
|
|
1144
1071
|
I
|
1145
1072
|
-1
|
1146
1073
|
I
|
1147
|
-
|
1074
|
+
50
|
1148
1075
|
I
|
1149
1076
|
0
|
1150
1077
|
I
|
1151
|
-
|
1078
|
+
51
|
1152
1079
|
I
|
1153
1080
|
10
|
1154
1081
|
x
|
@@ -1348,11 +1275,11 @@ p
|
|
1348
1275
|
I
|
1349
1276
|
0
|
1350
1277
|
I
|
1351
|
-
|
1278
|
+
57
|
1352
1279
|
I
|
1353
1280
|
2
|
1354
1281
|
I
|
1355
|
-
|
1282
|
+
5c
|
1356
1283
|
I
|
1357
1284
|
1d
|
1358
1285
|
x
|
@@ -1380,35 +1307,35 @@ p
|
|
1380
1307
|
I
|
1381
1308
|
-1
|
1382
1309
|
I
|
1383
|
-
|
1310
|
+
56
|
1384
1311
|
I
|
1385
1312
|
0
|
1386
1313
|
I
|
1387
|
-
|
1314
|
+
57
|
1388
1315
|
I
|
1389
1316
|
6
|
1390
1317
|
I
|
1391
|
-
|
1318
|
+
5a
|
1392
1319
|
I
|
1393
1320
|
e
|
1394
1321
|
I
|
1395
|
-
|
1322
|
+
59
|
1396
1323
|
I
|
1397
1324
|
19
|
1398
1325
|
I
|
1399
|
-
|
1326
|
+
5a
|
1400
1327
|
I
|
1401
1328
|
26
|
1402
1329
|
I
|
1403
|
-
|
1330
|
+
57
|
1404
1331
|
I
|
1405
1332
|
31
|
1406
1333
|
I
|
1407
|
-
|
1334
|
+
5d
|
1408
1335
|
I
|
1409
1336
|
34
|
1410
1337
|
I
|
1411
|
-
|
1338
|
+
57
|
1412
1339
|
I
|
1413
1340
|
38
|
1414
1341
|
x
|
@@ -1626,31 +1553,31 @@ p
|
|
1626
1553
|
I
|
1627
1554
|
-1
|
1628
1555
|
I
|
1629
|
-
|
1556
|
+
60
|
1630
1557
|
I
|
1631
1558
|
0
|
1632
1559
|
I
|
1633
|
-
|
1560
|
+
61
|
1634
1561
|
I
|
1635
1562
|
6
|
1636
1563
|
I
|
1637
|
-
|
1564
|
+
63
|
1638
1565
|
I
|
1639
1566
|
2b
|
1640
1567
|
I
|
1641
|
-
|
1568
|
+
64
|
1642
1569
|
I
|
1643
1570
|
41
|
1644
1571
|
I
|
1645
|
-
|
1572
|
+
65
|
1646
1573
|
I
|
1647
1574
|
53
|
1648
1575
|
I
|
1649
|
-
|
1576
|
+
66
|
1650
1577
|
I
|
1651
1578
|
68
|
1652
1579
|
I
|
1653
|
-
|
1580
|
+
68
|
1654
1581
|
I
|
1655
1582
|
74
|
1656
1583
|
x
|
@@ -1829,7 +1756,7 @@ p
|
|
1829
1756
|
I
|
1830
1757
|
0
|
1831
1758
|
I
|
1832
|
-
|
1759
|
+
6d
|
1833
1760
|
I
|
1834
1761
|
27
|
1835
1762
|
x
|
@@ -1845,11 +1772,11 @@ p
|
|
1845
1772
|
I
|
1846
1773
|
-1
|
1847
1774
|
I
|
1848
|
-
|
1775
|
+
6b
|
1849
1776
|
I
|
1850
1777
|
0
|
1851
1778
|
I
|
1852
|
-
|
1779
|
+
6c
|
1853
1780
|
I
|
1854
1781
|
1a
|
1855
1782
|
x
|
@@ -1908,11 +1835,11 @@ p
|
|
1908
1835
|
I
|
1909
1836
|
-1
|
1910
1837
|
I
|
1911
|
-
|
1838
|
+
71
|
1912
1839
|
I
|
1913
1840
|
0
|
1914
1841
|
I
|
1915
|
-
|
1842
|
+
72
|
1916
1843
|
I
|
1917
1844
|
a
|
1918
1845
|
x
|
@@ -1921,524 +1848,66 @@ x
|
|
1921
1848
|
p
|
1922
1849
|
0
|
1923
1850
|
x
|
1924
|
-
|
1925
|
-
|
1851
|
+
3
|
1852
|
+
url
|
1926
1853
|
M
|
1927
1854
|
1
|
1928
1855
|
n
|
1929
1856
|
n
|
1930
1857
|
x
|
1931
|
-
|
1932
|
-
|
1858
|
+
3
|
1859
|
+
url
|
1933
1860
|
i
|
1934
|
-
|
1935
|
-
20
|
1936
|
-
0
|
1937
|
-
9
|
1938
|
-
14
|
1861
|
+
47
|
1939
1862
|
45
|
1940
1863
|
0
|
1941
1864
|
1
|
1942
|
-
|
1865
|
+
43
|
1943
1866
|
2
|
1944
|
-
|
1867
|
+
44
|
1868
|
+
43
|
1945
1869
|
3
|
1946
|
-
0
|
1947
|
-
8
|
1948
|
-
15
|
1949
|
-
1
|
1950
|
-
15
|
1951
|
-
60
|
1952
|
-
0
|
1953
|
-
19
|
1954
|
-
1
|
1955
|
-
15
|
1956
|
-
20
|
1957
|
-
0
|
1958
|
-
9
|
1959
|
-
35
|
1960
|
-
45
|
1961
|
-
0
|
1962
1870
|
4
|
1963
|
-
56
|
1964
|
-
5
|
1965
|
-
50
|
1966
1871
|
3
|
1967
|
-
|
1968
|
-
8
|
1969
|
-
36
|
1970
|
-
1
|
1971
|
-
15
|
1972
|
-
20
|
1973
|
-
1
|
1974
|
-
11
|
1975
|
-
I
|
1872
|
+
49
|
1976
1873
|
4
|
1977
|
-
I
|
1978
|
-
2
|
1979
|
-
I
|
1980
1874
|
1
|
1981
|
-
|
1982
|
-
|
1983
|
-
|
1984
|
-
|
1875
|
+
13
|
1876
|
+
7
|
1877
|
+
5
|
1878
|
+
5
|
1879
|
+
48
|
1880
|
+
5
|
1881
|
+
49
|
1985
1882
|
6
|
1986
|
-
x
|
1987
|
-
9
|
1988
|
-
TCPSocket
|
1989
|
-
n
|
1990
|
-
M
|
1991
|
-
1
|
1992
|
-
p
|
1993
1883
|
2
|
1994
|
-
x
|
1995
|
-
9
|
1996
|
-
for_block
|
1997
|
-
t
|
1998
|
-
n
|
1999
|
-
x
|
2000
1884
|
15
|
2001
|
-
|
2002
|
-
|
2003
|
-
|
1885
|
+
13
|
1886
|
+
7
|
1887
|
+
7
|
1888
|
+
7
|
1889
|
+
8
|
1890
|
+
64
|
1891
|
+
49
|
1892
|
+
6
|
1893
|
+
2
|
1894
|
+
15
|
1895
|
+
13
|
1896
|
+
7
|
1897
|
+
9
|
2004
1898
|
5
|
2005
|
-
|
2006
|
-
|
1899
|
+
48
|
1900
|
+
10
|
2007
1901
|
49
|
2008
|
-
|
2009
|
-
1
|
2010
|
-
56
|
2011
|
-
1
|
2012
|
-
50
|
1902
|
+
6
|
2013
1903
|
2
|
2014
|
-
|
1904
|
+
15
|
1905
|
+
49
|
1906
|
+
11
|
1907
|
+
1
|
2015
1908
|
11
|
2016
1909
|
I
|
2017
|
-
|
2018
|
-
I
|
2019
|
-
0
|
2020
|
-
I
|
2021
|
-
0
|
2022
|
-
I
|
2023
|
-
0
|
2024
|
-
I
|
2025
|
-
-2
|
2026
|
-
p
|
2027
|
-
3
|
2028
|
-
x
|
2029
|
-
16
|
2030
|
-
object_metaclass
|
2031
|
-
M
|
2032
|
-
1
|
2033
|
-
p
|
2034
|
-
2
|
2035
|
-
x
|
2036
|
-
9
|
2037
|
-
for_block
|
2038
|
-
t
|
2039
|
-
n
|
2040
|
-
x
|
2041
|
-
15
|
2042
|
-
request_through
|
2043
|
-
i
|
2044
|
-
20
|
2045
|
-
5
|
2046
|
-
7
|
2047
|
-
0
|
2048
|
-
7
|
2049
|
-
1
|
2050
|
-
47
|
2051
|
-
49
|
2052
|
-
2
|
2053
|
-
2
|
2054
|
-
15
|
2055
|
-
5
|
2056
|
-
7
|
2057
|
-
1
|
2058
|
-
56
|
2059
|
-
3
|
2060
|
-
47
|
2061
|
-
50
|
2062
|
-
4
|
2063
|
-
1
|
2064
|
-
11
|
2065
|
-
I
|
2066
|
-
4
|
2067
|
-
I
|
2068
|
-
0
|
2069
|
-
I
|
2070
|
-
0
|
2071
|
-
I
|
2072
|
-
0
|
2073
|
-
I
|
2074
|
-
-2
|
2075
|
-
p
|
2076
|
-
5
|
2077
|
-
x
|
2078
|
-
13
|
2079
|
-
original_open
|
2080
|
-
x
|
2081
|
-
4
|
2082
|
-
open
|
2083
|
-
x
|
2084
|
-
12
|
2085
|
-
alias_method
|
2086
|
-
M
|
2087
|
-
1
|
2088
|
-
p
|
2089
|
-
2
|
2090
|
-
x
|
2091
|
-
9
|
2092
|
-
for_block
|
2093
|
-
t
|
2094
|
-
n
|
2095
|
-
x
|
2096
|
-
15
|
2097
|
-
request_through
|
2098
|
-
i
|
2099
|
-
23
|
2100
|
-
58
|
2101
|
-
37
|
2102
|
-
19
|
2103
|
-
0
|
2104
|
-
15
|
2105
|
-
37
|
2106
|
-
19
|
2107
|
-
1
|
2108
|
-
15
|
2109
|
-
15
|
2110
|
-
5
|
2111
|
-
20
|
2112
|
-
0
|
2113
|
-
20
|
2114
|
-
1
|
2115
|
-
21
|
2116
|
-
3
|
2117
|
-
0
|
2118
|
-
47
|
2119
|
-
49
|
2120
|
-
0
|
2121
|
-
3
|
2122
|
-
11
|
2123
|
-
I
|
2124
|
-
7
|
2125
|
-
I
|
2126
|
-
2
|
2127
|
-
I
|
2128
|
-
2
|
2129
|
-
I
|
2130
|
-
2
|
2131
|
-
n
|
2132
|
-
p
|
2133
|
-
1
|
2134
|
-
x
|
2135
|
-
13
|
2136
|
-
original_open
|
2137
|
-
p
|
2138
|
-
5
|
2139
|
-
I
|
2140
|
-
0
|
2141
|
-
I
|
2142
|
-
79
|
2143
|
-
I
|
2144
|
-
a
|
2145
|
-
I
|
2146
|
-
7a
|
2147
|
-
I
|
2148
|
-
17
|
2149
|
-
x
|
2150
|
-
52
|
2151
|
-
/Users/hakanensari/code/sucker/lib/sucker/request.rb
|
2152
|
-
p
|
2153
|
-
2
|
2154
|
-
x
|
2155
|
-
12
|
2156
|
-
conn_address
|
2157
|
-
x
|
2158
|
-
9
|
2159
|
-
conn_port
|
2160
|
-
x
|
2161
|
-
13
|
2162
|
-
define_method
|
2163
|
-
p
|
2164
|
-
5
|
2165
|
-
I
|
2166
|
-
0
|
2167
|
-
I
|
2168
|
-
77
|
2169
|
-
I
|
2170
|
-
a
|
2171
|
-
I
|
2172
|
-
79
|
2173
|
-
I
|
2174
|
-
14
|
2175
|
-
x
|
2176
|
-
52
|
2177
|
-
/Users/hakanensari/code/sucker/lib/sucker/request.rb
|
2178
|
-
p
|
2179
|
-
0
|
2180
|
-
x
|
2181
|
-
13
|
2182
|
-
instance_eval
|
2183
|
-
p
|
2184
|
-
3
|
2185
|
-
I
|
2186
|
-
0
|
2187
|
-
I
|
2188
|
-
76
|
2189
|
-
I
|
2190
|
-
c
|
2191
|
-
x
|
2192
|
-
52
|
2193
|
-
/Users/hakanensari/code/sucker/lib/sucker/request.rb
|
2194
|
-
p
|
2195
|
-
0
|
2196
|
-
x
|
2197
|
-
13
|
2198
|
-
instance_eval
|
2199
|
-
n
|
2200
|
-
M
|
2201
|
-
1
|
2202
|
-
p
|
2203
|
-
2
|
2204
|
-
x
|
2205
|
-
9
|
2206
|
-
for_block
|
2207
|
-
t
|
2208
|
-
n
|
2209
|
-
x
|
2210
|
-
15
|
2211
|
-
request_through
|
2212
|
-
i
|
2213
|
-
12
|
2214
|
-
5
|
2215
|
-
99
|
2216
|
-
12
|
2217
|
-
49
|
2218
|
-
0
|
2219
|
-
1
|
2220
|
-
56
|
2221
|
-
1
|
2222
|
-
50
|
2223
|
-
2
|
2224
|
-
0
|
2225
|
-
11
|
2226
|
-
I
|
2227
|
-
3
|
2228
|
-
I
|
2229
|
-
0
|
2230
|
-
I
|
2231
|
-
0
|
2232
|
-
I
|
2233
|
-
0
|
2234
|
-
I
|
2235
|
-
-2
|
2236
|
-
p
|
2237
|
-
3
|
2238
|
-
x
|
2239
|
-
16
|
2240
|
-
object_metaclass
|
2241
|
-
M
|
2242
|
-
1
|
2243
|
-
p
|
2244
|
-
2
|
2245
|
-
x
|
2246
|
-
9
|
2247
|
-
for_block
|
2248
|
-
t
|
2249
|
-
n
|
2250
|
-
x
|
2251
|
-
15
|
2252
|
-
request_through
|
2253
|
-
i
|
2254
|
-
18
|
2255
|
-
5
|
2256
|
-
7
|
2257
|
-
0
|
2258
|
-
7
|
2259
|
-
1
|
2260
|
-
47
|
2261
|
-
49
|
2262
|
-
2
|
2263
|
-
2
|
2264
|
-
15
|
2265
|
-
5
|
2266
|
-
7
|
2267
|
-
1
|
2268
|
-
47
|
2269
|
-
49
|
2270
|
-
3
|
2271
|
-
1
|
2272
|
-
11
|
2273
|
-
I
|
2274
|
-
4
|
2275
|
-
I
|
2276
|
-
0
|
2277
|
-
I
|
2278
|
-
0
|
2279
|
-
I
|
2280
|
-
0
|
2281
|
-
I
|
2282
|
-
-2
|
2283
|
-
p
|
2284
|
-
4
|
2285
|
-
x
|
2286
|
-
4
|
2287
|
-
open
|
2288
|
-
x
|
2289
|
-
13
|
2290
|
-
original_open
|
2291
|
-
x
|
2292
|
-
12
|
2293
|
-
alias_method
|
2294
|
-
x
|
2295
|
-
13
|
2296
|
-
remove_method
|
2297
|
-
p
|
2298
|
-
5
|
2299
|
-
I
|
2300
|
-
0
|
2301
|
-
I
|
2302
|
-
85
|
2303
|
-
I
|
2304
|
-
a
|
2305
|
-
I
|
2306
|
-
86
|
2307
|
-
I
|
2308
|
-
12
|
2309
|
-
x
|
2310
|
-
52
|
2311
|
-
/Users/hakanensari/code/sucker/lib/sucker/request.rb
|
2312
|
-
p
|
2313
|
-
0
|
2314
|
-
x
|
2315
|
-
13
|
2316
|
-
instance_eval
|
2317
|
-
p
|
2318
|
-
3
|
2319
|
-
I
|
2320
|
-
0
|
2321
|
-
I
|
2322
|
-
84
|
2323
|
-
I
|
2324
|
-
c
|
2325
|
-
x
|
2326
|
-
52
|
2327
|
-
/Users/hakanensari/code/sucker/lib/sucker/request.rb
|
2328
|
-
p
|
2329
|
-
0
|
2330
|
-
p
|
2331
|
-
19
|
2332
|
-
I
|
2333
|
-
-1
|
2334
|
-
I
|
2335
|
-
73
|
2336
|
-
I
|
2337
|
-
0
|
2338
|
-
I
|
2339
|
-
74
|
2340
|
-
I
|
2341
|
-
4
|
2342
|
-
I
|
2343
|
-
75
|
2344
|
-
I
|
2345
|
-
e
|
2346
|
-
I
|
2347
|
-
74
|
2348
|
-
I
|
2349
|
-
10
|
2350
|
-
I
|
2351
|
-
80
|
2352
|
-
I
|
2353
|
-
15
|
2354
|
-
I
|
2355
|
-
82
|
2356
|
-
I
|
2357
|
-
19
|
2358
|
-
I
|
2359
|
-
83
|
2360
|
-
I
|
2361
|
-
23
|
2362
|
-
I
|
2363
|
-
82
|
2364
|
-
I
|
2365
|
-
25
|
2366
|
-
I
|
2367
|
-
8b
|
2368
|
-
I
|
2369
|
-
28
|
2370
|
-
x
|
2371
|
-
52
|
2372
|
-
/Users/hakanensari/code/sucker/lib/sucker/request.rb
|
2373
|
-
p
|
2374
|
-
2
|
2375
|
-
x
|
2376
|
-
8
|
2377
|
-
local_ip
|
2378
|
-
x
|
2379
|
-
12
|
2380
|
-
return_value
|
2381
|
-
x
|
2382
|
-
3
|
2383
|
-
uri
|
2384
|
-
M
|
2385
|
-
1
|
2386
|
-
n
|
2387
|
-
n
|
2388
|
-
x
|
2389
|
-
3
|
2390
|
-
uri
|
2391
|
-
i
|
2392
|
-
47
|
2393
|
-
45
|
2394
|
-
0
|
2395
|
-
1
|
2396
|
-
43
|
2397
|
-
2
|
2398
|
-
44
|
2399
|
-
43
|
2400
|
-
3
|
2401
|
-
4
|
2402
|
-
3
|
2403
|
-
49
|
2404
|
-
4
|
2405
|
-
1
|
2406
|
-
13
|
2407
|
-
7
|
2408
|
-
5
|
2409
|
-
5
|
2410
|
-
48
|
2411
|
-
5
|
2412
|
-
49
|
2413
|
-
6
|
2414
|
-
2
|
2415
|
-
15
|
2416
|
-
13
|
2417
|
-
7
|
2418
|
-
7
|
2419
|
-
7
|
2420
|
-
8
|
2421
|
-
64
|
2422
|
-
49
|
2423
|
-
6
|
2424
|
-
2
|
2425
|
-
15
|
2426
|
-
13
|
2427
|
-
7
|
2428
|
-
9
|
2429
|
-
5
|
2430
|
-
48
|
2431
|
-
10
|
2432
|
-
49
|
2433
|
-
6
|
2434
|
-
2
|
2435
|
-
15
|
2436
|
-
49
|
2437
|
-
11
|
2438
|
-
1
|
2439
|
-
11
|
2440
|
-
I
|
2441
|
-
5
|
1910
|
+
5
|
2442
1911
|
I
|
2443
1912
|
0
|
2444
1913
|
I
|
@@ -2487,31 +1956,31 @@ p
|
|
2487
1956
|
I
|
2488
1957
|
-1
|
2489
1958
|
I
|
2490
|
-
|
1959
|
+
75
|
2491
1960
|
I
|
2492
1961
|
0
|
2493
1962
|
I
|
2494
|
-
|
1963
|
+
76
|
2495
1964
|
I
|
2496
1965
|
5
|
2497
1966
|
I
|
2498
|
-
|
1967
|
+
79
|
2499
1968
|
I
|
2500
1969
|
e
|
2501
1970
|
I
|
2502
|
-
|
1971
|
+
77
|
2503
1972
|
I
|
2504
1973
|
18
|
2505
1974
|
I
|
2506
|
-
|
1975
|
+
78
|
2507
1976
|
I
|
2508
1977
|
22
|
2509
1978
|
I
|
2510
|
-
|
1979
|
+
79
|
2511
1980
|
I
|
2512
1981
|
2b
|
2513
1982
|
I
|
2514
|
-
|
1983
|
+
76
|
2515
1984
|
I
|
2516
1985
|
2f
|
2517
1986
|
x
|
@@ -2520,7 +1989,7 @@ x
|
|
2520
1989
|
p
|
2521
1990
|
0
|
2522
1991
|
p
|
2523
|
-
|
1992
|
+
49
|
2524
1993
|
I
|
2525
1994
|
2
|
2526
1995
|
I
|
@@ -2572,57 +2041,53 @@ I
|
|
2572
2041
|
I
|
2573
2042
|
6d
|
2574
2043
|
I
|
2575
|
-
|
2576
|
-
I
|
2577
|
-
75
|
2578
|
-
I
|
2579
|
-
28
|
2044
|
+
27
|
2580
2045
|
I
|
2581
|
-
|
2046
|
+
7b
|
2582
2047
|
I
|
2583
|
-
|
2048
|
+
32
|
2584
2049
|
I
|
2585
|
-
|
2050
|
+
89
|
2586
2051
|
I
|
2587
2052
|
3b
|
2588
2053
|
I
|
2589
|
-
|
2054
|
+
97
|
2590
2055
|
I
|
2591
|
-
|
2056
|
+
43
|
2592
2057
|
I
|
2593
|
-
|
2058
|
+
a5
|
2594
2059
|
I
|
2595
|
-
|
2060
|
+
48
|
2596
2061
|
I
|
2597
|
-
|
2062
|
+
b3
|
2598
2063
|
I
|
2599
|
-
|
2064
|
+
50
|
2600
2065
|
I
|
2601
|
-
|
2066
|
+
c1
|
2602
2067
|
I
|
2603
2068
|
54
|
2604
2069
|
I
|
2605
|
-
|
2070
|
+
c5
|
2606
2071
|
I
|
2607
|
-
|
2072
|
+
56
|
2608
2073
|
I
|
2609
|
-
|
2074
|
+
d3
|
2610
2075
|
I
|
2611
|
-
|
2076
|
+
60
|
2612
2077
|
I
|
2613
|
-
|
2078
|
+
e1
|
2614
2079
|
I
|
2615
|
-
|
2080
|
+
6b
|
2616
2081
|
I
|
2617
|
-
|
2082
|
+
ef
|
2618
2083
|
I
|
2619
|
-
|
2084
|
+
71
|
2620
2085
|
I
|
2621
|
-
|
2086
|
+
fd
|
2622
2087
|
I
|
2623
|
-
|
2088
|
+
75
|
2624
2089
|
I
|
2625
|
-
|
2090
|
+
10b
|
2626
2091
|
x
|
2627
2092
|
52
|
2628
2093
|
/Users/hakanensari/code/sucker/lib/sucker/request.rb
|
@@ -2652,15 +2117,15 @@ p
|
|
2652
2117
|
I
|
2653
2118
|
0
|
2654
2119
|
I
|
2655
|
-
|
2120
|
+
1
|
2656
2121
|
I
|
2657
2122
|
9
|
2658
2123
|
I
|
2659
|
-
|
2124
|
+
2
|
2660
2125
|
I
|
2661
2126
|
12
|
2662
2127
|
I
|
2663
|
-
|
2128
|
+
3
|
2664
2129
|
I
|
2665
2130
|
1b
|
2666
2131
|
I
|