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