wrest 1.0.0.beta2-universal-java-1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. data/CHANGELOG +59 -0
  2. data/LICENCE +7 -0
  3. data/README.rdoc +127 -0
  4. data/bin/wrest +3 -0
  5. data/bin/wrest_shell.rb +21 -0
  6. data/lib/wrest.rb +101 -0
  7. data/lib/wrest.rbc +1900 -0
  8. data/lib/wrest/components.rb +20 -0
  9. data/lib/wrest/components.rbc +217 -0
  10. data/lib/wrest/components/container.rb +185 -0
  11. data/lib/wrest/components/container.rbc +2466 -0
  12. data/lib/wrest/components/container/alias_accessors.rb +66 -0
  13. data/lib/wrest/components/container/alias_accessors.rbc +905 -0
  14. data/lib/wrest/components/container/typecaster.rb +127 -0
  15. data/lib/wrest/components/container/typecaster.rbc +1985 -0
  16. data/lib/wrest/components/mutators.rb +39 -0
  17. data/lib/wrest/components/mutators.rbc +650 -0
  18. data/lib/wrest/components/mutators/base.rb +56 -0
  19. data/lib/wrest/components/mutators/base.rbc +702 -0
  20. data/lib/wrest/components/mutators/camel_to_snake_case.rb +22 -0
  21. data/lib/wrest/components/mutators/camel_to_snake_case.rbc +360 -0
  22. data/lib/wrest/components/mutators/xml_mini_type_caster.rb +43 -0
  23. data/lib/wrest/components/mutators/xml_mini_type_caster.rbc +679 -0
  24. data/lib/wrest/components/mutators/xml_simple_type_caster.rb +37 -0
  25. data/lib/wrest/components/mutators/xml_simple_type_caster.rbc +559 -0
  26. data/lib/wrest/components/translators.rb +28 -0
  27. data/lib/wrest/components/translators.rbc +517 -0
  28. data/lib/wrest/components/translators/content_types.rb +20 -0
  29. data/lib/wrest/components/translators/content_types.rbc +339 -0
  30. data/lib/wrest/components/translators/json.rb +25 -0
  31. data/lib/wrest/components/translators/json.rbc +462 -0
  32. data/lib/wrest/components/translators/xml.rb +24 -0
  33. data/lib/wrest/components/translators/xml.rbc +457 -0
  34. data/lib/wrest/core_ext/hash.rb +5 -0
  35. data/lib/wrest/core_ext/hash.rbc +182 -0
  36. data/lib/wrest/core_ext/hash/conversions.rb +44 -0
  37. data/lib/wrest/core_ext/hash/conversions.rbc +501 -0
  38. data/lib/wrest/core_ext/string.rb +5 -0
  39. data/lib/wrest/core_ext/string.rbc +182 -0
  40. data/lib/wrest/core_ext/string/conversions.rb +23 -0
  41. data/lib/wrest/core_ext/string/conversions.rbc +471 -0
  42. data/lib/wrest/curl.rb +49 -0
  43. data/lib/wrest/curl.rbc +704 -0
  44. data/lib/wrest/curl/delete.rb +23 -0
  45. data/lib/wrest/curl/get.rb +23 -0
  46. data/lib/wrest/curl/options.rb +16 -0
  47. data/lib/wrest/curl/post.rb +23 -0
  48. data/lib/wrest/curl/put.rb +23 -0
  49. data/lib/wrest/curl/request.rb +97 -0
  50. data/lib/wrest/curl/response.rb +71 -0
  51. data/lib/wrest/curl/session.rb +57 -0
  52. data/lib/wrest/exceptions.rb +33 -0
  53. data/lib/wrest/exceptions.rbc +312 -0
  54. data/lib/wrest/http_shared.rb +23 -0
  55. data/lib/wrest/http_shared.rbc +279 -0
  56. data/lib/wrest/http_shared/headers.rb +343 -0
  57. data/lib/wrest/http_shared/headers.rbc +353 -0
  58. data/lib/wrest/http_shared/standard_headers.rb +21 -0
  59. data/lib/wrest/http_shared/standard_headers.rbc +336 -0
  60. data/lib/wrest/http_shared/standard_tokens.rb +18 -0
  61. data/lib/wrest/http_shared/standard_tokens.rbc +316 -0
  62. data/lib/wrest/multipart.rb +52 -0
  63. data/lib/wrest/native.rb +33 -0
  64. data/lib/wrest/native.rbc +513 -0
  65. data/lib/wrest/native/connection_factory.rb +23 -0
  66. data/lib/wrest/native/connection_factory.rbc +445 -0
  67. data/lib/wrest/native/delete.rb +23 -0
  68. data/lib/wrest/native/delete.rbc +371 -0
  69. data/lib/wrest/native/get.rb +51 -0
  70. data/lib/wrest/native/get.rbc +855 -0
  71. data/lib/wrest/native/options.rb +23 -0
  72. data/lib/wrest/native/options.rbc +347 -0
  73. data/lib/wrest/native/post.rb +23 -0
  74. data/lib/wrest/native/post.rbc +388 -0
  75. data/lib/wrest/native/post_multipart.rb +32 -0
  76. data/lib/wrest/native/put.rb +23 -0
  77. data/lib/wrest/native/put.rbc +388 -0
  78. data/lib/wrest/native/put_multipart.rb +32 -0
  79. data/lib/wrest/native/redirection.rb +38 -0
  80. data/lib/wrest/native/redirection.rbc +520 -0
  81. data/lib/wrest/native/request.rb +94 -0
  82. data/lib/wrest/native/request.rbc +1675 -0
  83. data/lib/wrest/native/response.rb +120 -0
  84. data/lib/wrest/native/response.rbc +2150 -0
  85. data/lib/wrest/native/session.rb +57 -0
  86. data/lib/wrest/native/session.rbc +1372 -0
  87. data/lib/wrest/resource.rb +18 -0
  88. data/lib/wrest/resource.rbc +163 -0
  89. data/lib/wrest/resource/base.rb +99 -0
  90. data/lib/wrest/resource/base.rbc +2115 -0
  91. data/lib/wrest/resource/collection.rb +12 -0
  92. data/lib/wrest/resource/state.rb +6 -0
  93. data/lib/wrest/test.rb +1 -0
  94. data/lib/wrest/test/request_patches.rb +5 -0
  95. data/lib/wrest/uri.rb +160 -0
  96. data/lib/wrest/uri.rbc +2599 -0
  97. data/lib/wrest/uri_template.rb +49 -0
  98. data/lib/wrest/uri_template.rbc +505 -0
  99. data/lib/wrest/version.rb +23 -0
  100. data/lib/wrest/version.rbc +372 -0
  101. metadata +231 -0
@@ -0,0 +1,127 @@
1
+ # Copyright 2009 Sidu Ponnappa
2
+
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ # Unless required by applicable law or agreed to in writing, software distributed under the License
7
+ # is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
8
+ # See the License for the specific language governing permissions and limitations under the License.
9
+
10
+ module Wrest
11
+ module Components::Container
12
+ # An extension to Container that adds support for specifying
13
+ # how the values associated with certain attribute keys
14
+ # should be typecast.
15
+ #
16
+ # This extension can be used in situations where the attributes
17
+ # hash consists of just strings with no associated tup information.
18
+ # For example, params recieved from a web browser may contain
19
+ # attributes like
20
+ # 'id' => '4', 'dateofbirth' => '1984-04-05'
21
+ # and we'd like to have these cast to an integer and a date
22
+ # respectively, rather than have to deal with them as strings.
23
+ module Typecaster
24
+ def self.included(klass) #:nodoc:
25
+ klass.extend Typecaster::ClassMethods
26
+ klass.class_eval{ include Typecaster::InstanceMethods }
27
+ klass.alias_method_chain :initialize, :typecasting
28
+ end
29
+
30
+ module Helpers
31
+ def as_base64Binary
32
+ ActiveSupport::XmlMini::PARSING['base64Binary']
33
+ end
34
+
35
+ def as_boolean
36
+ ActiveSupport::XmlMini::PARSING['boolean']
37
+ end
38
+
39
+ def as_decimal
40
+ ActiveSupport::XmlMini::PARSING['decimal']
41
+ end
42
+
43
+ def as_date
44
+ ActiveSupport::XmlMini::PARSING['date']
45
+ end
46
+
47
+ def as_datetime
48
+ ActiveSupport::XmlMini::PARSING['datetime']
49
+ end
50
+
51
+ def as_float
52
+ ActiveSupport::XmlMini::PARSING['float']
53
+ end
54
+
55
+ def as_integer
56
+ ActiveSupport::XmlMini::PARSING['integer']
57
+ end
58
+
59
+ def as_symbol
60
+ ActiveSupport::XmlMini::PARSING['symbol']
61
+ end
62
+
63
+ def as_yaml
64
+ ActiveSupport::XmlMini::PARSING['yaml']
65
+ end
66
+ end
67
+
68
+ module ClassMethods
69
+ # Accepts a set of attribute-name/lambda pairs which are used
70
+ # to typecast string values injected through the constructor.
71
+ # Typically needed when populating an +Container+
72
+ # directly from request params. Typecasting kicks in for
73
+ # a given value _only_ if it is a String, Hash or Array, the
74
+ # three classes that deserilisation can produce.
75
+ #
76
+ # Typecast information is inherited by subclasses; however be
77
+ # aware that explicitly invoking +typecast+ in a subclass will
78
+ # discard inherited typecast information leaving only the casts
79
+ # defined in the subclass.
80
+ #
81
+ # Note that this _will_ increase the time needed to initialize
82
+ # instances.
83
+ #
84
+ # Common typecasts such as integer, float, datetime etc. are
85
+ # available through predefined helpers. See TypecastHelpers
86
+ # for a full list.
87
+ #
88
+ # Example:
89
+ #
90
+ # class Demon
91
+ # include Wrest::Components::Container
92
+ # include Wrest::Components::Container::Typecaster
93
+ #
94
+ # typecast :age => as_integer,
95
+ # :chi => lambda{|chi| Chi.new(chi)}
96
+ # end
97
+ #
98
+ # kai_wren = Demon.new('age' => '1500', 'chi' => '1024')
99
+ # kai_wren.age # => 1500
100
+ # kai_wren.chi # => #<Chi:0x113af8c @count="1024">
101
+ def typecast(cast_map)
102
+ @typecast_map = @typecast_map ? @typecast_map.merge(cast_map.symbolize_keys) : cast_map.symbolize_keys
103
+ end
104
+
105
+ def typecast_map #:nodoc:
106
+ if defined?(@typecast_map)
107
+ @typecast_map
108
+ elsif superclass != Object && superclass.respond_to?(:typecast_map)
109
+ superclass.typecast_map
110
+ else
111
+ {}
112
+ end
113
+ end
114
+ end
115
+
116
+ module InstanceMethods # :nodoc:
117
+ def initialize_with_typecasting(attributes = {}) # :nodoc:
118
+ initialize_without_typecasting(attributes)
119
+ self.class.typecast_map.each do |key, typecaster|
120
+ value = @attributes[key]
121
+ @attributes[key] = typecaster.call(value) if (value.is_a?(String) || value.is_a?(Hash) || value.is_a?(Array))
122
+ end
123
+ end
124
+ end
125
+ end
126
+ end
127
+ end
@@ -0,0 +1,1985 @@
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
+ 5
54
+ Wrest
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
+ 5
67
+ Wrest
68
+ i
69
+ 30
70
+ 5
71
+ 66
72
+ 99
73
+ 7
74
+ 0
75
+ 45
76
+ 1
77
+ 2
78
+ 49
79
+ 3
80
+ 2
81
+ 13
82
+ 99
83
+ 12
84
+ 7
85
+ 4
86
+ 12
87
+ 7
88
+ 5
89
+ 12
90
+ 65
91
+ 12
92
+ 49
93
+ 6
94
+ 4
95
+ 15
96
+ 49
97
+ 4
98
+ 0
99
+ 11
100
+ I
101
+ 6
102
+ I
103
+ 0
104
+ I
105
+ 0
106
+ I
107
+ 0
108
+ n
109
+ p
110
+ 7
111
+ x
112
+ 9
113
+ Container
114
+ x
115
+ 10
116
+ Components
117
+ n
118
+ x
119
+ 17
120
+ open_module_under
121
+ x
122
+ 15
123
+ __module_init__
124
+ M
125
+ 1
126
+ n
127
+ n
128
+ x
129
+ 9
130
+ Container
131
+ i
132
+ 28
133
+ 5
134
+ 66
135
+ 99
136
+ 7
137
+ 0
138
+ 65
139
+ 49
140
+ 1
141
+ 2
142
+ 13
143
+ 99
144
+ 12
145
+ 7
146
+ 2
147
+ 12
148
+ 7
149
+ 3
150
+ 12
151
+ 65
152
+ 12
153
+ 49
154
+ 4
155
+ 4
156
+ 15
157
+ 49
158
+ 2
159
+ 0
160
+ 11
161
+ I
162
+ 6
163
+ I
164
+ 0
165
+ I
166
+ 0
167
+ I
168
+ 0
169
+ n
170
+ p
171
+ 5
172
+ x
173
+ 10
174
+ Typecaster
175
+ x
176
+ 11
177
+ open_module
178
+ x
179
+ 15
180
+ __module_init__
181
+ M
182
+ 1
183
+ n
184
+ n
185
+ x
186
+ 10
187
+ Typecaster
188
+ i
189
+ 91
190
+ 5
191
+ 66
192
+ 99
193
+ 7
194
+ 0
195
+ 7
196
+ 1
197
+ 65
198
+ 5
199
+ 49
200
+ 2
201
+ 4
202
+ 15
203
+ 99
204
+ 7
205
+ 3
206
+ 65
207
+ 49
208
+ 4
209
+ 2
210
+ 13
211
+ 99
212
+ 12
213
+ 7
214
+ 5
215
+ 12
216
+ 7
217
+ 6
218
+ 12
219
+ 65
220
+ 12
221
+ 49
222
+ 2
223
+ 4
224
+ 15
225
+ 49
226
+ 5
227
+ 0
228
+ 15
229
+ 99
230
+ 7
231
+ 7
232
+ 65
233
+ 49
234
+ 4
235
+ 2
236
+ 13
237
+ 99
238
+ 12
239
+ 7
240
+ 5
241
+ 12
242
+ 7
243
+ 8
244
+ 12
245
+ 65
246
+ 12
247
+ 49
248
+ 2
249
+ 4
250
+ 15
251
+ 49
252
+ 5
253
+ 0
254
+ 15
255
+ 99
256
+ 7
257
+ 9
258
+ 65
259
+ 49
260
+ 4
261
+ 2
262
+ 13
263
+ 99
264
+ 12
265
+ 7
266
+ 5
267
+ 12
268
+ 7
269
+ 10
270
+ 12
271
+ 65
272
+ 12
273
+ 49
274
+ 2
275
+ 4
276
+ 15
277
+ 49
278
+ 5
279
+ 0
280
+ 11
281
+ I
282
+ 6
283
+ I
284
+ 0
285
+ I
286
+ 0
287
+ I
288
+ 0
289
+ n
290
+ p
291
+ 11
292
+ x
293
+ 8
294
+ included
295
+ M
296
+ 1
297
+ n
298
+ n
299
+ x
300
+ 8
301
+ included
302
+ i
303
+ 29
304
+ 20
305
+ 0
306
+ 45
307
+ 0
308
+ 1
309
+ 43
310
+ 2
311
+ 49
312
+ 3
313
+ 1
314
+ 15
315
+ 20
316
+ 0
317
+ 56
318
+ 4
319
+ 50
320
+ 5
321
+ 0
322
+ 15
323
+ 20
324
+ 0
325
+ 7
326
+ 6
327
+ 7
328
+ 7
329
+ 49
330
+ 8
331
+ 2
332
+ 11
333
+ I
334
+ 4
335
+ I
336
+ 1
337
+ I
338
+ 1
339
+ I
340
+ 1
341
+ n
342
+ p
343
+ 9
344
+ x
345
+ 10
346
+ Typecaster
347
+ n
348
+ x
349
+ 12
350
+ ClassMethods
351
+ x
352
+ 6
353
+ extend
354
+ M
355
+ 1
356
+ p
357
+ 2
358
+ x
359
+ 9
360
+ for_block
361
+ t
362
+ n
363
+ x
364
+ 8
365
+ included
366
+ i
367
+ 11
368
+ 5
369
+ 45
370
+ 0
371
+ 1
372
+ 43
373
+ 2
374
+ 47
375
+ 49
376
+ 3
377
+ 1
378
+ 11
379
+ I
380
+ 3
381
+ I
382
+ 0
383
+ I
384
+ 0
385
+ I
386
+ 0
387
+ I
388
+ -2
389
+ p
390
+ 4
391
+ x
392
+ 10
393
+ Typecaster
394
+ n
395
+ x
396
+ 15
397
+ InstanceMethods
398
+ x
399
+ 7
400
+ include
401
+ p
402
+ 3
403
+ I
404
+ 0
405
+ I
406
+ 1a
407
+ I
408
+ b
409
+ x
410
+ 67
411
+ /Users/sidu/Work/wrest/lib/wrest/components/container/typecaster.rb
412
+ p
413
+ 0
414
+ x
415
+ 10
416
+ class_eval
417
+ x
418
+ 10
419
+ initialize
420
+ x
421
+ 11
422
+ typecasting
423
+ x
424
+ 18
425
+ alias_method_chain
426
+ p
427
+ 9
428
+ I
429
+ 0
430
+ I
431
+ 18
432
+ I
433
+ 0
434
+ I
435
+ 19
436
+ I
437
+ b
438
+ I
439
+ 1a
440
+ I
441
+ 13
442
+ I
443
+ 1b
444
+ I
445
+ 1d
446
+ x
447
+ 67
448
+ /Users/sidu/Work/wrest/lib/wrest/components/container/typecaster.rb
449
+ p
450
+ 1
451
+ x
452
+ 5
453
+ klass
454
+ x
455
+ 13
456
+ attach_method
457
+ x
458
+ 7
459
+ Helpers
460
+ x
461
+ 11
462
+ open_module
463
+ x
464
+ 15
465
+ __module_init__
466
+ M
467
+ 1
468
+ n
469
+ n
470
+ x
471
+ 7
472
+ Helpers
473
+ i
474
+ 128
475
+ 5
476
+ 66
477
+ 99
478
+ 7
479
+ 0
480
+ 7
481
+ 1
482
+ 65
483
+ 67
484
+ 49
485
+ 2
486
+ 0
487
+ 49
488
+ 3
489
+ 4
490
+ 15
491
+ 99
492
+ 7
493
+ 4
494
+ 7
495
+ 5
496
+ 65
497
+ 67
498
+ 49
499
+ 2
500
+ 0
501
+ 49
502
+ 3
503
+ 4
504
+ 15
505
+ 99
506
+ 7
507
+ 6
508
+ 7
509
+ 7
510
+ 65
511
+ 67
512
+ 49
513
+ 2
514
+ 0
515
+ 49
516
+ 3
517
+ 4
518
+ 15
519
+ 99
520
+ 7
521
+ 8
522
+ 7
523
+ 9
524
+ 65
525
+ 67
526
+ 49
527
+ 2
528
+ 0
529
+ 49
530
+ 3
531
+ 4
532
+ 15
533
+ 99
534
+ 7
535
+ 10
536
+ 7
537
+ 11
538
+ 65
539
+ 67
540
+ 49
541
+ 2
542
+ 0
543
+ 49
544
+ 3
545
+ 4
546
+ 15
547
+ 99
548
+ 7
549
+ 12
550
+ 7
551
+ 13
552
+ 65
553
+ 67
554
+ 49
555
+ 2
556
+ 0
557
+ 49
558
+ 3
559
+ 4
560
+ 15
561
+ 99
562
+ 7
563
+ 14
564
+ 7
565
+ 15
566
+ 65
567
+ 67
568
+ 49
569
+ 2
570
+ 0
571
+ 49
572
+ 3
573
+ 4
574
+ 15
575
+ 99
576
+ 7
577
+ 16
578
+ 7
579
+ 17
580
+ 65
581
+ 67
582
+ 49
583
+ 2
584
+ 0
585
+ 49
586
+ 3
587
+ 4
588
+ 15
589
+ 99
590
+ 7
591
+ 18
592
+ 7
593
+ 19
594
+ 65
595
+ 67
596
+ 49
597
+ 2
598
+ 0
599
+ 49
600
+ 3
601
+ 4
602
+ 11
603
+ I
604
+ 5
605
+ I
606
+ 0
607
+ I
608
+ 0
609
+ I
610
+ 0
611
+ n
612
+ p
613
+ 20
614
+ x
615
+ 15
616
+ as_base64Binary
617
+ M
618
+ 1
619
+ n
620
+ n
621
+ x
622
+ 15
623
+ as_base64Binary
624
+ i
625
+ 14
626
+ 45
627
+ 0
628
+ 1
629
+ 43
630
+ 2
631
+ 43
632
+ 3
633
+ 7
634
+ 4
635
+ 64
636
+ 49
637
+ 5
638
+ 1
639
+ 11
640
+ I
641
+ 2
642
+ I
643
+ 0
644
+ I
645
+ 0
646
+ I
647
+ 0
648
+ n
649
+ p
650
+ 6
651
+ x
652
+ 13
653
+ ActiveSupport
654
+ n
655
+ x
656
+ 7
657
+ XmlMini
658
+ x
659
+ 7
660
+ PARSING
661
+ s
662
+ 12
663
+ base64Binary
664
+ x
665
+ 2
666
+ []
667
+ p
668
+ 5
669
+ I
670
+ 0
671
+ I
672
+ 1f
673
+ I
674
+ 0
675
+ I
676
+ 20
677
+ I
678
+ e
679
+ x
680
+ 67
681
+ /Users/sidu/Work/wrest/lib/wrest/components/container/typecaster.rb
682
+ p
683
+ 0
684
+ x
685
+ 17
686
+ method_visibility
687
+ x
688
+ 15
689
+ add_defn_method
690
+ x
691
+ 10
692
+ as_boolean
693
+ M
694
+ 1
695
+ n
696
+ n
697
+ x
698
+ 10
699
+ as_boolean
700
+ i
701
+ 14
702
+ 45
703
+ 0
704
+ 1
705
+ 43
706
+ 2
707
+ 43
708
+ 3
709
+ 7
710
+ 4
711
+ 64
712
+ 49
713
+ 5
714
+ 1
715
+ 11
716
+ I
717
+ 2
718
+ I
719
+ 0
720
+ I
721
+ 0
722
+ I
723
+ 0
724
+ n
725
+ p
726
+ 6
727
+ x
728
+ 13
729
+ ActiveSupport
730
+ n
731
+ x
732
+ 7
733
+ XmlMini
734
+ x
735
+ 7
736
+ PARSING
737
+ s
738
+ 7
739
+ boolean
740
+ x
741
+ 2
742
+ []
743
+ p
744
+ 5
745
+ I
746
+ 0
747
+ I
748
+ 23
749
+ I
750
+ 0
751
+ I
752
+ 24
753
+ I
754
+ e
755
+ x
756
+ 67
757
+ /Users/sidu/Work/wrest/lib/wrest/components/container/typecaster.rb
758
+ p
759
+ 0
760
+ x
761
+ 10
762
+ as_decimal
763
+ M
764
+ 1
765
+ n
766
+ n
767
+ x
768
+ 10
769
+ as_decimal
770
+ i
771
+ 14
772
+ 45
773
+ 0
774
+ 1
775
+ 43
776
+ 2
777
+ 43
778
+ 3
779
+ 7
780
+ 4
781
+ 64
782
+ 49
783
+ 5
784
+ 1
785
+ 11
786
+ I
787
+ 2
788
+ I
789
+ 0
790
+ I
791
+ 0
792
+ I
793
+ 0
794
+ n
795
+ p
796
+ 6
797
+ x
798
+ 13
799
+ ActiveSupport
800
+ n
801
+ x
802
+ 7
803
+ XmlMini
804
+ x
805
+ 7
806
+ PARSING
807
+ s
808
+ 7
809
+ decimal
810
+ x
811
+ 2
812
+ []
813
+ p
814
+ 5
815
+ I
816
+ 0
817
+ I
818
+ 27
819
+ I
820
+ 0
821
+ I
822
+ 28
823
+ I
824
+ e
825
+ x
826
+ 67
827
+ /Users/sidu/Work/wrest/lib/wrest/components/container/typecaster.rb
828
+ p
829
+ 0
830
+ x
831
+ 7
832
+ as_date
833
+ M
834
+ 1
835
+ n
836
+ n
837
+ x
838
+ 7
839
+ as_date
840
+ i
841
+ 14
842
+ 45
843
+ 0
844
+ 1
845
+ 43
846
+ 2
847
+ 43
848
+ 3
849
+ 7
850
+ 4
851
+ 64
852
+ 49
853
+ 5
854
+ 1
855
+ 11
856
+ I
857
+ 2
858
+ I
859
+ 0
860
+ I
861
+ 0
862
+ I
863
+ 0
864
+ n
865
+ p
866
+ 6
867
+ x
868
+ 13
869
+ ActiveSupport
870
+ n
871
+ x
872
+ 7
873
+ XmlMini
874
+ x
875
+ 7
876
+ PARSING
877
+ s
878
+ 4
879
+ date
880
+ x
881
+ 2
882
+ []
883
+ p
884
+ 5
885
+ I
886
+ 0
887
+ I
888
+ 2b
889
+ I
890
+ 0
891
+ I
892
+ 2c
893
+ I
894
+ e
895
+ x
896
+ 67
897
+ /Users/sidu/Work/wrest/lib/wrest/components/container/typecaster.rb
898
+ p
899
+ 0
900
+ x
901
+ 11
902
+ as_datetime
903
+ M
904
+ 1
905
+ n
906
+ n
907
+ x
908
+ 11
909
+ as_datetime
910
+ i
911
+ 14
912
+ 45
913
+ 0
914
+ 1
915
+ 43
916
+ 2
917
+ 43
918
+ 3
919
+ 7
920
+ 4
921
+ 64
922
+ 49
923
+ 5
924
+ 1
925
+ 11
926
+ I
927
+ 2
928
+ I
929
+ 0
930
+ I
931
+ 0
932
+ I
933
+ 0
934
+ n
935
+ p
936
+ 6
937
+ x
938
+ 13
939
+ ActiveSupport
940
+ n
941
+ x
942
+ 7
943
+ XmlMini
944
+ x
945
+ 7
946
+ PARSING
947
+ s
948
+ 8
949
+ datetime
950
+ x
951
+ 2
952
+ []
953
+ p
954
+ 5
955
+ I
956
+ 0
957
+ I
958
+ 2f
959
+ I
960
+ 0
961
+ I
962
+ 30
963
+ I
964
+ e
965
+ x
966
+ 67
967
+ /Users/sidu/Work/wrest/lib/wrest/components/container/typecaster.rb
968
+ p
969
+ 0
970
+ x
971
+ 8
972
+ as_float
973
+ M
974
+ 1
975
+ n
976
+ n
977
+ x
978
+ 8
979
+ as_float
980
+ i
981
+ 14
982
+ 45
983
+ 0
984
+ 1
985
+ 43
986
+ 2
987
+ 43
988
+ 3
989
+ 7
990
+ 4
991
+ 64
992
+ 49
993
+ 5
994
+ 1
995
+ 11
996
+ I
997
+ 2
998
+ I
999
+ 0
1000
+ I
1001
+ 0
1002
+ I
1003
+ 0
1004
+ n
1005
+ p
1006
+ 6
1007
+ x
1008
+ 13
1009
+ ActiveSupport
1010
+ n
1011
+ x
1012
+ 7
1013
+ XmlMini
1014
+ x
1015
+ 7
1016
+ PARSING
1017
+ s
1018
+ 5
1019
+ float
1020
+ x
1021
+ 2
1022
+ []
1023
+ p
1024
+ 5
1025
+ I
1026
+ 0
1027
+ I
1028
+ 33
1029
+ I
1030
+ 0
1031
+ I
1032
+ 34
1033
+ I
1034
+ e
1035
+ x
1036
+ 67
1037
+ /Users/sidu/Work/wrest/lib/wrest/components/container/typecaster.rb
1038
+ p
1039
+ 0
1040
+ x
1041
+ 10
1042
+ as_integer
1043
+ M
1044
+ 1
1045
+ n
1046
+ n
1047
+ x
1048
+ 10
1049
+ as_integer
1050
+ i
1051
+ 14
1052
+ 45
1053
+ 0
1054
+ 1
1055
+ 43
1056
+ 2
1057
+ 43
1058
+ 3
1059
+ 7
1060
+ 4
1061
+ 64
1062
+ 49
1063
+ 5
1064
+ 1
1065
+ 11
1066
+ I
1067
+ 2
1068
+ I
1069
+ 0
1070
+ I
1071
+ 0
1072
+ I
1073
+ 0
1074
+ n
1075
+ p
1076
+ 6
1077
+ x
1078
+ 13
1079
+ ActiveSupport
1080
+ n
1081
+ x
1082
+ 7
1083
+ XmlMini
1084
+ x
1085
+ 7
1086
+ PARSING
1087
+ s
1088
+ 7
1089
+ integer
1090
+ x
1091
+ 2
1092
+ []
1093
+ p
1094
+ 5
1095
+ I
1096
+ 0
1097
+ I
1098
+ 37
1099
+ I
1100
+ 0
1101
+ I
1102
+ 38
1103
+ I
1104
+ e
1105
+ x
1106
+ 67
1107
+ /Users/sidu/Work/wrest/lib/wrest/components/container/typecaster.rb
1108
+ p
1109
+ 0
1110
+ x
1111
+ 9
1112
+ as_symbol
1113
+ M
1114
+ 1
1115
+ n
1116
+ n
1117
+ x
1118
+ 9
1119
+ as_symbol
1120
+ i
1121
+ 14
1122
+ 45
1123
+ 0
1124
+ 1
1125
+ 43
1126
+ 2
1127
+ 43
1128
+ 3
1129
+ 7
1130
+ 4
1131
+ 64
1132
+ 49
1133
+ 5
1134
+ 1
1135
+ 11
1136
+ I
1137
+ 2
1138
+ I
1139
+ 0
1140
+ I
1141
+ 0
1142
+ I
1143
+ 0
1144
+ n
1145
+ p
1146
+ 6
1147
+ x
1148
+ 13
1149
+ ActiveSupport
1150
+ n
1151
+ x
1152
+ 7
1153
+ XmlMini
1154
+ x
1155
+ 7
1156
+ PARSING
1157
+ s
1158
+ 6
1159
+ symbol
1160
+ x
1161
+ 2
1162
+ []
1163
+ p
1164
+ 5
1165
+ I
1166
+ 0
1167
+ I
1168
+ 3b
1169
+ I
1170
+ 0
1171
+ I
1172
+ 3c
1173
+ I
1174
+ e
1175
+ x
1176
+ 67
1177
+ /Users/sidu/Work/wrest/lib/wrest/components/container/typecaster.rb
1178
+ p
1179
+ 0
1180
+ x
1181
+ 7
1182
+ as_yaml
1183
+ M
1184
+ 1
1185
+ n
1186
+ n
1187
+ x
1188
+ 7
1189
+ as_yaml
1190
+ i
1191
+ 14
1192
+ 45
1193
+ 0
1194
+ 1
1195
+ 43
1196
+ 2
1197
+ 43
1198
+ 3
1199
+ 7
1200
+ 4
1201
+ 64
1202
+ 49
1203
+ 5
1204
+ 1
1205
+ 11
1206
+ I
1207
+ 2
1208
+ I
1209
+ 0
1210
+ I
1211
+ 0
1212
+ I
1213
+ 0
1214
+ n
1215
+ p
1216
+ 6
1217
+ x
1218
+ 13
1219
+ ActiveSupport
1220
+ n
1221
+ x
1222
+ 7
1223
+ XmlMini
1224
+ x
1225
+ 7
1226
+ PARSING
1227
+ s
1228
+ 4
1229
+ yaml
1230
+ x
1231
+ 2
1232
+ []
1233
+ p
1234
+ 5
1235
+ I
1236
+ 0
1237
+ I
1238
+ 3f
1239
+ I
1240
+ 0
1241
+ I
1242
+ 40
1243
+ I
1244
+ e
1245
+ x
1246
+ 67
1247
+ /Users/sidu/Work/wrest/lib/wrest/components/container/typecaster.rb
1248
+ p
1249
+ 0
1250
+ p
1251
+ 19
1252
+ I
1253
+ 2
1254
+ I
1255
+ 1f
1256
+ I
1257
+ 10
1258
+ I
1259
+ 23
1260
+ I
1261
+ 1e
1262
+ I
1263
+ 27
1264
+ I
1265
+ 2c
1266
+ I
1267
+ 2b
1268
+ I
1269
+ 3a
1270
+ I
1271
+ 2f
1272
+ I
1273
+ 48
1274
+ I
1275
+ 33
1276
+ I
1277
+ 56
1278
+ I
1279
+ 37
1280
+ I
1281
+ 64
1282
+ I
1283
+ 3b
1284
+ I
1285
+ 72
1286
+ I
1287
+ 3f
1288
+ I
1289
+ 80
1290
+ x
1291
+ 67
1292
+ /Users/sidu/Work/wrest/lib/wrest/components/container/typecaster.rb
1293
+ p
1294
+ 0
1295
+ x
1296
+ 12
1297
+ ClassMethods
1298
+ M
1299
+ 1
1300
+ n
1301
+ n
1302
+ x
1303
+ 12
1304
+ ClassMethods
1305
+ i
1306
+ 30
1307
+ 5
1308
+ 66
1309
+ 99
1310
+ 7
1311
+ 0
1312
+ 7
1313
+ 1
1314
+ 65
1315
+ 67
1316
+ 49
1317
+ 2
1318
+ 0
1319
+ 49
1320
+ 3
1321
+ 4
1322
+ 15
1323
+ 99
1324
+ 7
1325
+ 4
1326
+ 7
1327
+ 5
1328
+ 65
1329
+ 67
1330
+ 49
1331
+ 2
1332
+ 0
1333
+ 49
1334
+ 3
1335
+ 4
1336
+ 11
1337
+ I
1338
+ 5
1339
+ I
1340
+ 0
1341
+ I
1342
+ 0
1343
+ I
1344
+ 0
1345
+ n
1346
+ p
1347
+ 6
1348
+ x
1349
+ 8
1350
+ typecast
1351
+ M
1352
+ 1
1353
+ n
1354
+ n
1355
+ x
1356
+ 8
1357
+ typecast
1358
+ i
1359
+ 24
1360
+ 39
1361
+ 0
1362
+ 9
1363
+ 16
1364
+ 39
1365
+ 0
1366
+ 20
1367
+ 0
1368
+ 49
1369
+ 1
1370
+ 0
1371
+ 49
1372
+ 2
1373
+ 1
1374
+ 8
1375
+ 21
1376
+ 20
1377
+ 0
1378
+ 49
1379
+ 1
1380
+ 0
1381
+ 38
1382
+ 0
1383
+ 11
1384
+ I
1385
+ 3
1386
+ I
1387
+ 1
1388
+ I
1389
+ 1
1390
+ I
1391
+ 1
1392
+ n
1393
+ p
1394
+ 3
1395
+ x
1396
+ 13
1397
+ @typecast_map
1398
+ x
1399
+ 14
1400
+ symbolize_keys
1401
+ x
1402
+ 5
1403
+ merge
1404
+ p
1405
+ 5
1406
+ I
1407
+ 0
1408
+ I
1409
+ 65
1410
+ I
1411
+ 0
1412
+ I
1413
+ 66
1414
+ I
1415
+ 18
1416
+ x
1417
+ 67
1418
+ /Users/sidu/Work/wrest/lib/wrest/components/container/typecaster.rb
1419
+ p
1420
+ 1
1421
+ x
1422
+ 8
1423
+ cast_map
1424
+ x
1425
+ 17
1426
+ method_visibility
1427
+ x
1428
+ 15
1429
+ add_defn_method
1430
+ x
1431
+ 12
1432
+ typecast_map
1433
+ M
1434
+ 1
1435
+ n
1436
+ n
1437
+ x
1438
+ 12
1439
+ typecast_map
1440
+ i
1441
+ 63
1442
+ 5
1443
+ 7
1444
+ 0
1445
+ 49
1446
+ 1
1447
+ 1
1448
+ 9
1449
+ 12
1450
+ 7
1451
+ 2
1452
+ 8
1453
+ 13
1454
+ 1
1455
+ 9
1456
+ 19
1457
+ 39
1458
+ 0
1459
+ 8
1460
+ 62
1461
+ 5
1462
+ 48
1463
+ 3
1464
+ 45
1465
+ 4
1466
+ 5
1467
+ 83
1468
+ 6
1469
+ 10
1470
+ 32
1471
+ 2
1472
+ 8
1473
+ 33
1474
+ 3
1475
+ 13
1476
+ 9
1477
+ 45
1478
+ 15
1479
+ 5
1480
+ 48
1481
+ 3
1482
+ 7
1483
+ 7
1484
+ 49
1485
+ 8
1486
+ 1
1487
+ 9
1488
+ 55
1489
+ 5
1490
+ 48
1491
+ 3
1492
+ 49
1493
+ 7
1494
+ 0
1495
+ 8
1496
+ 62
1497
+ 44
1498
+ 43
1499
+ 9
1500
+ 78
1501
+ 49
1502
+ 10
1503
+ 1
1504
+ 11
1505
+ I
1506
+ 2
1507
+ I
1508
+ 0
1509
+ I
1510
+ 0
1511
+ I
1512
+ 0
1513
+ n
1514
+ p
1515
+ 11
1516
+ x
1517
+ 13
1518
+ @typecast_map
1519
+ x
1520
+ 32
1521
+ __instance_variable_defined_eh__
1522
+ s
1523
+ 17
1524
+ instance-variable
1525
+ x
1526
+ 10
1527
+ superclass
1528
+ x
1529
+ 6
1530
+ Object
1531
+ n
1532
+ x
1533
+ 2
1534
+ ==
1535
+ x
1536
+ 12
1537
+ typecast_map
1538
+ x
1539
+ 11
1540
+ respond_to?
1541
+ x
1542
+ 4
1543
+ Hash
1544
+ x
1545
+ 16
1546
+ new_from_literal
1547
+ p
1548
+ 13
1549
+ I
1550
+ 0
1551
+ I
1552
+ 69
1553
+ I
1554
+ 0
1555
+ I
1556
+ 6a
1557
+ I
1558
+ f
1559
+ I
1560
+ 6b
1561
+ I
1562
+ 13
1563
+ I
1564
+ 6c
1565
+ I
1566
+ 2f
1567
+ I
1568
+ 6d
1569
+ I
1570
+ 37
1571
+ I
1572
+ 6f
1573
+ I
1574
+ 3f
1575
+ x
1576
+ 67
1577
+ /Users/sidu/Work/wrest/lib/wrest/components/container/typecaster.rb
1578
+ p
1579
+ 0
1580
+ p
1581
+ 5
1582
+ I
1583
+ 2
1584
+ I
1585
+ 65
1586
+ I
1587
+ 10
1588
+ I
1589
+ 69
1590
+ I
1591
+ 1e
1592
+ x
1593
+ 67
1594
+ /Users/sidu/Work/wrest/lib/wrest/components/container/typecaster.rb
1595
+ p
1596
+ 0
1597
+ x
1598
+ 15
1599
+ InstanceMethods
1600
+ M
1601
+ 1
1602
+ n
1603
+ n
1604
+ x
1605
+ 15
1606
+ InstanceMethods
1607
+ i
1608
+ 16
1609
+ 5
1610
+ 66
1611
+ 99
1612
+ 7
1613
+ 0
1614
+ 7
1615
+ 1
1616
+ 65
1617
+ 67
1618
+ 49
1619
+ 2
1620
+ 0
1621
+ 49
1622
+ 3
1623
+ 4
1624
+ 11
1625
+ I
1626
+ 5
1627
+ I
1628
+ 0
1629
+ I
1630
+ 0
1631
+ I
1632
+ 0
1633
+ n
1634
+ p
1635
+ 4
1636
+ x
1637
+ 27
1638
+ initialize_with_typecasting
1639
+ M
1640
+ 1
1641
+ n
1642
+ n
1643
+ x
1644
+ 27
1645
+ initialize_with_typecasting
1646
+ i
1647
+ 35
1648
+ 23
1649
+ 0
1650
+ 10
1651
+ 14
1652
+ 44
1653
+ 43
1654
+ 0
1655
+ 78
1656
+ 49
1657
+ 1
1658
+ 1
1659
+ 19
1660
+ 0
1661
+ 15
1662
+ 5
1663
+ 20
1664
+ 0
1665
+ 47
1666
+ 49
1667
+ 2
1668
+ 1
1669
+ 15
1670
+ 5
1671
+ 49
1672
+ 3
1673
+ 0
1674
+ 49
1675
+ 4
1676
+ 0
1677
+ 56
1678
+ 5
1679
+ 50
1680
+ 6
1681
+ 0
1682
+ 11
1683
+ I
1684
+ 3
1685
+ I
1686
+ 1
1687
+ I
1688
+ 0
1689
+ I
1690
+ 1
1691
+ n
1692
+ p
1693
+ 7
1694
+ x
1695
+ 4
1696
+ Hash
1697
+ x
1698
+ 16
1699
+ new_from_literal
1700
+ x
1701
+ 30
1702
+ initialize_without_typecasting
1703
+ x
1704
+ 5
1705
+ class
1706
+ x
1707
+ 12
1708
+ typecast_map
1709
+ M
1710
+ 1
1711
+ p
1712
+ 2
1713
+ x
1714
+ 9
1715
+ for_block
1716
+ t
1717
+ n
1718
+ x
1719
+ 27
1720
+ initialize_with_typecasting
1721
+ i
1722
+ 76
1723
+ 58
1724
+ 37
1725
+ 19
1726
+ 0
1727
+ 15
1728
+ 37
1729
+ 19
1730
+ 1
1731
+ 15
1732
+ 15
1733
+ 39
1734
+ 0
1735
+ 20
1736
+ 0
1737
+ 49
1738
+ 1
1739
+ 1
1740
+ 19
1741
+ 2
1742
+ 15
1743
+ 20
1744
+ 2
1745
+ 45
1746
+ 2
1747
+ 3
1748
+ 49
1749
+ 4
1750
+ 1
1751
+ 13
1752
+ 10
1753
+ 52
1754
+ 15
1755
+ 20
1756
+ 2
1757
+ 45
1758
+ 5
1759
+ 6
1760
+ 49
1761
+ 4
1762
+ 1
1763
+ 13
1764
+ 10
1765
+ 52
1766
+ 15
1767
+ 20
1768
+ 2
1769
+ 45
1770
+ 7
1771
+ 8
1772
+ 49
1773
+ 4
1774
+ 1
1775
+ 9
1776
+ 74
1777
+ 39
1778
+ 0
1779
+ 20
1780
+ 0
1781
+ 20
1782
+ 1
1783
+ 20
1784
+ 2
1785
+ 49
1786
+ 9
1787
+ 1
1788
+ 13
1789
+ 18
1790
+ 3
1791
+ 49
1792
+ 10
1793
+ 2
1794
+ 15
1795
+ 8
1796
+ 75
1797
+ 1
1798
+ 11
1799
+ I
1800
+ 8
1801
+ I
1802
+ 3
1803
+ I
1804
+ 2
1805
+ I
1806
+ 2
1807
+ n
1808
+ p
1809
+ 11
1810
+ x
1811
+ 11
1812
+ @attributes
1813
+ x
1814
+ 2
1815
+ []
1816
+ x
1817
+ 6
1818
+ String
1819
+ n
1820
+ x
1821
+ 5
1822
+ is_a?
1823
+ x
1824
+ 4
1825
+ Hash
1826
+ n
1827
+ x
1828
+ 5
1829
+ Array
1830
+ n
1831
+ x
1832
+ 4
1833
+ call
1834
+ x
1835
+ 3
1836
+ []=
1837
+ p
1838
+ 7
1839
+ I
1840
+ 0
1841
+ I
1842
+ 77
1843
+ I
1844
+ a
1845
+ I
1846
+ 78
1847
+ I
1848
+ 14
1849
+ I
1850
+ 79
1851
+ I
1852
+ 4c
1853
+ x
1854
+ 67
1855
+ /Users/sidu/Work/wrest/lib/wrest/components/container/typecaster.rb
1856
+ p
1857
+ 3
1858
+ x
1859
+ 3
1860
+ key
1861
+ x
1862
+ 10
1863
+ typecaster
1864
+ x
1865
+ 5
1866
+ value
1867
+ x
1868
+ 4
1869
+ each
1870
+ p
1871
+ 7
1872
+ I
1873
+ 0
1874
+ I
1875
+ 75
1876
+ I
1877
+ e
1878
+ I
1879
+ 76
1880
+ I
1881
+ 16
1882
+ I
1883
+ 77
1884
+ I
1885
+ 23
1886
+ x
1887
+ 67
1888
+ /Users/sidu/Work/wrest/lib/wrest/components/container/typecaster.rb
1889
+ p
1890
+ 1
1891
+ x
1892
+ 10
1893
+ attributes
1894
+ x
1895
+ 17
1896
+ method_visibility
1897
+ x
1898
+ 15
1899
+ add_defn_method
1900
+ p
1901
+ 3
1902
+ I
1903
+ 2
1904
+ I
1905
+ 75
1906
+ I
1907
+ 10
1908
+ x
1909
+ 67
1910
+ /Users/sidu/Work/wrest/lib/wrest/components/container/typecaster.rb
1911
+ p
1912
+ 0
1913
+ p
1914
+ 9
1915
+ I
1916
+ 2
1917
+ I
1918
+ 18
1919
+ I
1920
+ d
1921
+ I
1922
+ 1e
1923
+ I
1924
+ 27
1925
+ I
1926
+ 44
1927
+ I
1928
+ 41
1929
+ I
1930
+ 74
1931
+ I
1932
+ 5b
1933
+ x
1934
+ 67
1935
+ /Users/sidu/Work/wrest/lib/wrest/components/container/typecaster.rb
1936
+ p
1937
+ 0
1938
+ x
1939
+ 13
1940
+ attach_method
1941
+ p
1942
+ 3
1943
+ I
1944
+ 2
1945
+ I
1946
+ 17
1947
+ I
1948
+ 1c
1949
+ x
1950
+ 67
1951
+ /Users/sidu/Work/wrest/lib/wrest/components/container/typecaster.rb
1952
+ p
1953
+ 0
1954
+ x
1955
+ 13
1956
+ attach_method
1957
+ p
1958
+ 3
1959
+ I
1960
+ 2
1961
+ I
1962
+ b
1963
+ I
1964
+ 1e
1965
+ x
1966
+ 67
1967
+ /Users/sidu/Work/wrest/lib/wrest/components/container/typecaster.rb
1968
+ p
1969
+ 0
1970
+ x
1971
+ 13
1972
+ attach_method
1973
+ p
1974
+ 3
1975
+ I
1976
+ 0
1977
+ I
1978
+ a
1979
+ I
1980
+ 1c
1981
+ x
1982
+ 67
1983
+ /Users/sidu/Work/wrest/lib/wrest/components/container/typecaster.rb
1984
+ p
1985
+ 0