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/parameters.rb
CHANGED
@@ -1,11 +1,10 @@
|
|
1
1
|
module Sucker
|
2
2
|
class Parameters < ::Hash
|
3
|
-
|
4
|
-
SERVICE = 'AWSECommerceService'
|
3
|
+
CURRENT_API_VERSION = '2010-11-01'
|
5
4
|
|
6
5
|
def initialize
|
7
|
-
self.store 'Service',
|
8
|
-
self.store 'Version',
|
6
|
+
self.store 'Service', 'AWSECommerceService'
|
7
|
+
self.store 'Version', CURRENT_API_VERSION
|
9
8
|
self.store 'Timestamp', timestamp
|
10
9
|
end
|
11
10
|
|
data/lib/sucker/parameters.rbc
CHANGED
@@ -9,40 +9,31 @@ x
|
|
9
9
|
10
|
10
10
|
__script__
|
11
11
|
i
|
12
|
-
|
13
|
-
5
|
14
|
-
7
|
15
|
-
0
|
16
|
-
64
|
17
|
-
47
|
18
|
-
49
|
19
|
-
1
|
20
|
-
1
|
21
|
-
15
|
12
|
+
28
|
22
13
|
99
|
23
14
|
7
|
24
|
-
|
15
|
+
0
|
25
16
|
65
|
26
17
|
49
|
27
|
-
|
18
|
+
1
|
28
19
|
2
|
29
20
|
13
|
30
21
|
99
|
31
22
|
12
|
32
23
|
7
|
33
|
-
|
24
|
+
2
|
34
25
|
12
|
35
26
|
7
|
36
|
-
|
27
|
+
3
|
37
28
|
12
|
38
29
|
65
|
39
30
|
12
|
40
31
|
49
|
41
|
-
|
32
|
+
4
|
42
33
|
4
|
43
34
|
15
|
44
35
|
49
|
45
|
-
|
36
|
+
2
|
46
37
|
0
|
47
38
|
15
|
48
39
|
2
|
@@ -57,13 +48,7 @@ I
|
|
57
48
|
0
|
58
49
|
n
|
59
50
|
p
|
60
|
-
|
61
|
-
s
|
62
|
-
24
|
63
|
-
active_support/inflector
|
64
|
-
x
|
65
|
-
7
|
66
|
-
require
|
51
|
+
5
|
67
52
|
x
|
68
53
|
6
|
69
54
|
Sucker
|
@@ -87,30 +72,30 @@ i
|
|
87
72
|
99
|
88
73
|
7
|
89
74
|
0
|
90
|
-
|
75
|
+
44
|
76
|
+
43
|
91
77
|
1
|
92
|
-
2
|
93
78
|
65
|
94
79
|
49
|
95
|
-
|
80
|
+
2
|
96
81
|
3
|
97
82
|
13
|
98
83
|
99
|
99
84
|
12
|
100
85
|
7
|
101
|
-
|
86
|
+
3
|
102
87
|
12
|
103
88
|
7
|
104
|
-
|
89
|
+
4
|
105
90
|
12
|
106
91
|
65
|
107
92
|
12
|
108
93
|
49
|
109
|
-
|
94
|
+
5
|
110
95
|
4
|
111
96
|
15
|
112
97
|
49
|
113
|
-
|
98
|
+
3
|
114
99
|
0
|
115
100
|
11
|
116
101
|
I
|
@@ -123,14 +108,13 @@ I
|
|
123
108
|
0
|
124
109
|
n
|
125
110
|
p
|
126
|
-
|
111
|
+
6
|
127
112
|
x
|
128
113
|
10
|
129
114
|
Parameters
|
130
115
|
x
|
131
116
|
4
|
132
117
|
Hash
|
133
|
-
n
|
134
118
|
x
|
135
119
|
10
|
136
120
|
open_class
|
@@ -145,7 +129,7 @@ x
|
|
145
129
|
10
|
146
130
|
Parameters
|
147
131
|
i
|
148
|
-
|
132
|
+
58
|
149
133
|
5
|
150
134
|
66
|
151
135
|
65
|
@@ -158,60 +142,50 @@ i
|
|
158
142
|
2
|
159
143
|
2
|
160
144
|
15
|
161
|
-
|
145
|
+
99
|
162
146
|
7
|
163
147
|
3
|
164
148
|
7
|
165
149
|
4
|
166
|
-
64
|
167
|
-
49
|
168
|
-
2
|
169
|
-
2
|
170
|
-
15
|
171
|
-
99
|
172
|
-
7
|
173
|
-
5
|
174
|
-
7
|
175
|
-
6
|
176
150
|
65
|
177
151
|
67
|
178
152
|
49
|
179
|
-
|
153
|
+
5
|
180
154
|
0
|
181
155
|
49
|
182
|
-
|
156
|
+
6
|
183
157
|
4
|
184
158
|
15
|
185
159
|
99
|
186
160
|
7
|
187
|
-
9
|
188
161
|
7
|
189
|
-
|
162
|
+
7
|
163
|
+
8
|
190
164
|
65
|
191
165
|
67
|
192
166
|
49
|
193
|
-
|
167
|
+
5
|
194
168
|
0
|
195
169
|
49
|
196
|
-
|
170
|
+
6
|
197
171
|
4
|
198
172
|
15
|
199
173
|
5
|
200
174
|
48
|
201
|
-
|
175
|
+
9
|
202
176
|
15
|
203
177
|
99
|
204
178
|
7
|
205
|
-
|
179
|
+
10
|
206
180
|
7
|
207
|
-
|
181
|
+
11
|
208
182
|
65
|
209
183
|
67
|
210
184
|
49
|
211
|
-
|
185
|
+
5
|
212
186
|
0
|
213
187
|
49
|
214
|
-
|
188
|
+
6
|
215
189
|
4
|
216
190
|
11
|
217
191
|
I
|
@@ -224,10 +198,10 @@ I
|
|
224
198
|
0
|
225
199
|
n
|
226
200
|
p
|
227
|
-
|
201
|
+
12
|
228
202
|
x
|
229
|
-
|
230
|
-
|
203
|
+
19
|
204
|
+
CURRENT_API_VERSION
|
231
205
|
s
|
232
206
|
10
|
233
207
|
2010-11-01
|
@@ -235,12 +209,6 @@ x
|
|
235
209
|
9
|
236
210
|
const_set
|
237
211
|
x
|
238
|
-
7
|
239
|
-
SERVICE
|
240
|
-
s
|
241
|
-
19
|
242
|
-
AWSECommerceService
|
243
|
-
x
|
244
212
|
10
|
245
213
|
initialize
|
246
214
|
M
|
@@ -256,33 +224,33 @@ i
|
|
256
224
|
7
|
257
225
|
0
|
258
226
|
64
|
259
|
-
|
227
|
+
7
|
260
228
|
1
|
261
|
-
|
229
|
+
64
|
262
230
|
49
|
263
|
-
|
231
|
+
2
|
264
232
|
2
|
265
233
|
15
|
266
234
|
5
|
267
235
|
7
|
268
|
-
|
236
|
+
3
|
269
237
|
64
|
270
238
|
45
|
239
|
+
4
|
271
240
|
5
|
272
|
-
6
|
273
241
|
49
|
274
|
-
|
242
|
+
2
|
275
243
|
2
|
276
244
|
15
|
277
245
|
5
|
278
246
|
7
|
279
|
-
|
247
|
+
6
|
280
248
|
64
|
281
249
|
5
|
282
250
|
48
|
283
|
-
|
251
|
+
7
|
284
252
|
49
|
285
|
-
|
253
|
+
2
|
286
254
|
2
|
287
255
|
11
|
288
256
|
I
|
@@ -295,14 +263,13 @@ I
|
|
295
263
|
0
|
296
264
|
n
|
297
265
|
p
|
298
|
-
|
266
|
+
8
|
299
267
|
s
|
300
268
|
7
|
301
269
|
Service
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
n
|
270
|
+
s
|
271
|
+
19
|
272
|
+
AWSECommerceService
|
306
273
|
x
|
307
274
|
5
|
308
275
|
store
|
@@ -310,8 +277,8 @@ s
|
|
310
277
|
7
|
311
278
|
Version
|
312
279
|
x
|
313
|
-
|
314
|
-
|
280
|
+
19
|
281
|
+
CURRENT_API_VERSION
|
315
282
|
n
|
316
283
|
s
|
317
284
|
9
|
@@ -324,19 +291,19 @@ p
|
|
324
291
|
I
|
325
292
|
-1
|
326
293
|
I
|
327
|
-
|
294
|
+
5
|
328
295
|
I
|
329
296
|
0
|
330
297
|
I
|
331
|
-
|
298
|
+
6
|
332
299
|
I
|
333
300
|
b
|
334
301
|
I
|
335
|
-
|
302
|
+
7
|
336
303
|
I
|
337
304
|
16
|
338
305
|
I
|
339
|
-
|
306
|
+
8
|
340
307
|
I
|
341
308
|
21
|
342
309
|
x
|
@@ -407,7 +374,7 @@ x
|
|
407
374
|
9
|
408
375
|
normalize
|
409
376
|
i
|
410
|
-
|
377
|
+
86
|
411
378
|
58
|
412
379
|
37
|
413
380
|
19
|
@@ -467,8 +434,19 @@ i
|
|
467
434
|
49
|
468
435
|
5
|
469
436
|
0
|
470
|
-
|
437
|
+
7
|
471
438
|
6
|
439
|
+
64
|
440
|
+
49
|
441
|
+
7
|
442
|
+
1
|
443
|
+
56
|
444
|
+
8
|
445
|
+
50
|
446
|
+
9
|
447
|
+
0
|
448
|
+
49
|
449
|
+
4
|
472
450
|
0
|
473
451
|
20
|
474
452
|
3
|
@@ -476,7 +454,7 @@ i
|
|
476
454
|
18
|
477
455
|
3
|
478
456
|
49
|
479
|
-
|
457
|
+
10
|
480
458
|
2
|
481
459
|
15
|
482
460
|
15
|
@@ -493,7 +471,7 @@ I
|
|
493
471
|
2
|
494
472
|
n
|
495
473
|
p
|
496
|
-
|
474
|
+
11
|
497
475
|
x
|
498
476
|
5
|
499
477
|
Array
|
@@ -510,9 +488,94 @@ join
|
|
510
488
|
x
|
511
489
|
4
|
512
490
|
to_s
|
491
|
+
s
|
492
|
+
1
|
493
|
+
_
|
494
|
+
x
|
495
|
+
5
|
496
|
+
split
|
497
|
+
M
|
498
|
+
1
|
499
|
+
p
|
500
|
+
2
|
501
|
+
x
|
502
|
+
9
|
503
|
+
for_block
|
504
|
+
t
|
505
|
+
n
|
513
506
|
x
|
507
|
+
9
|
508
|
+
normalize
|
509
|
+
i
|
510
|
+
29
|
511
|
+
57
|
512
|
+
19
|
513
|
+
0
|
514
|
+
15
|
515
|
+
20
|
516
|
+
0
|
517
|
+
78
|
518
|
+
79
|
519
|
+
20
|
520
|
+
0
|
521
|
+
78
|
522
|
+
79
|
523
|
+
49
|
524
|
+
0
|
525
|
+
2
|
526
|
+
49
|
527
|
+
1
|
528
|
+
0
|
529
|
+
13
|
530
|
+
18
|
531
|
+
4
|
532
|
+
49
|
533
|
+
2
|
534
|
+
3
|
535
|
+
15
|
536
|
+
15
|
537
|
+
20
|
538
|
+
0
|
539
|
+
11
|
540
|
+
I
|
514
541
|
8
|
515
|
-
|
542
|
+
I
|
543
|
+
1
|
544
|
+
I
|
545
|
+
1
|
546
|
+
I
|
547
|
+
1
|
548
|
+
n
|
549
|
+
p
|
550
|
+
3
|
551
|
+
x
|
552
|
+
2
|
553
|
+
[]
|
554
|
+
x
|
555
|
+
6
|
556
|
+
upcase
|
557
|
+
x
|
558
|
+
3
|
559
|
+
[]=
|
560
|
+
p
|
561
|
+
3
|
562
|
+
I
|
563
|
+
0
|
564
|
+
I
|
565
|
+
10
|
566
|
+
I
|
567
|
+
1d
|
568
|
+
x
|
569
|
+
55
|
570
|
+
/Users/hakanensari/code/sucker/lib/sucker/parameters.rb
|
571
|
+
p
|
572
|
+
1
|
573
|
+
x
|
574
|
+
1
|
575
|
+
w
|
576
|
+
x
|
577
|
+
3
|
578
|
+
map
|
516
579
|
x
|
517
580
|
3
|
518
581
|
[]=
|
@@ -521,25 +584,25 @@ p
|
|
521
584
|
I
|
522
585
|
0
|
523
586
|
I
|
524
|
-
|
587
|
+
d
|
525
588
|
I
|
526
589
|
a
|
527
590
|
I
|
528
|
-
|
591
|
+
e
|
529
592
|
I
|
530
593
|
18
|
531
594
|
I
|
532
|
-
|
595
|
+
f
|
533
596
|
I
|
534
597
|
34
|
535
598
|
I
|
536
|
-
|
599
|
+
10
|
537
600
|
I
|
538
|
-
|
601
|
+
53
|
539
602
|
I
|
540
|
-
|
603
|
+
11
|
541
604
|
I
|
542
|
-
|
605
|
+
56
|
543
606
|
x
|
544
607
|
55
|
545
608
|
/Users/hakanensari/code/sucker/lib/sucker/parameters.rb
|
@@ -565,11 +628,11 @@ p
|
|
565
628
|
I
|
566
629
|
-1
|
567
630
|
I
|
568
|
-
|
631
|
+
c
|
569
632
|
I
|
570
633
|
0
|
571
634
|
I
|
572
|
-
|
635
|
+
d
|
573
636
|
I
|
574
637
|
f
|
575
638
|
x
|
@@ -640,11 +703,11 @@ p
|
|
640
703
|
I
|
641
704
|
-1
|
642
705
|
I
|
643
|
-
|
706
|
+
17
|
644
707
|
I
|
645
708
|
0
|
646
709
|
I
|
647
|
-
|
710
|
+
18
|
648
711
|
I
|
649
712
|
10
|
650
713
|
x
|
@@ -653,33 +716,29 @@ x
|
|
653
716
|
p
|
654
717
|
0
|
655
718
|
p
|
656
|
-
|
719
|
+
11
|
657
720
|
I
|
658
721
|
2
|
659
722
|
I
|
660
|
-
|
723
|
+
3
|
661
724
|
I
|
662
725
|
c
|
663
726
|
I
|
664
|
-
|
665
|
-
I
|
666
|
-
16
|
667
|
-
I
|
668
|
-
b
|
727
|
+
5
|
669
728
|
I
|
670
|
-
|
729
|
+
1a
|
671
730
|
I
|
672
|
-
|
731
|
+
c
|
673
732
|
I
|
674
|
-
|
733
|
+
28
|
675
734
|
I
|
676
|
-
|
735
|
+
15
|
677
736
|
I
|
678
|
-
|
737
|
+
2c
|
679
738
|
I
|
680
|
-
|
739
|
+
17
|
681
740
|
I
|
682
|
-
|
741
|
+
3a
|
683
742
|
x
|
684
743
|
55
|
685
744
|
/Users/hakanensari/code/sucker/lib/sucker/parameters.rb
|
@@ -693,7 +752,7 @@ p
|
|
693
752
|
I
|
694
753
|
2
|
695
754
|
I
|
696
|
-
|
755
|
+
2
|
697
756
|
I
|
698
757
|
1f
|
699
758
|
x
|
@@ -705,17 +764,13 @@ x
|
|
705
764
|
13
|
706
765
|
attach_method
|
707
766
|
p
|
708
|
-
5
|
709
|
-
I
|
710
|
-
0
|
711
|
-
I
|
712
767
|
3
|
713
768
|
I
|
714
|
-
|
769
|
+
0
|
715
770
|
I
|
716
|
-
|
771
|
+
1
|
717
772
|
I
|
718
|
-
|
773
|
+
1c
|
719
774
|
x
|
720
775
|
55
|
721
776
|
/Users/hakanensari/code/sucker/lib/sucker/parameters.rb
|