wrest 1.0.0.beta1 → 1.0.0.beta2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. data/CHANGELOG +14 -2
  2. data/LICENCE +7 -0
  3. data/README.rdoc +15 -69
  4. data/lib/wrest/components/container/alias_accessors.rb +1 -1
  5. data/lib/wrest/components/container/alias_accessors.rbc +905 -0
  6. data/lib/wrest/components/container/typecaster.rb +5 -5
  7. data/lib/wrest/components/container/typecaster.rbc +1985 -0
  8. data/lib/wrest/components/container.rb +11 -12
  9. data/lib/wrest/components/container.rbc +2466 -0
  10. data/lib/wrest/components/mutators/base.rbc +702 -0
  11. data/lib/wrest/components/mutators/camel_to_snake_case.rbc +360 -0
  12. data/lib/wrest/components/mutators/xml_mini_type_caster.rbc +679 -0
  13. data/lib/wrest/components/mutators/xml_simple_type_caster.rbc +559 -0
  14. data/lib/wrest/components/mutators.rbc +650 -0
  15. data/lib/wrest/components/translators/content_types.rbc +339 -0
  16. data/lib/wrest/components/translators/json.rbc +462 -0
  17. data/lib/wrest/components/translators/xml.rbc +457 -0
  18. data/lib/wrest/components/translators.rbc +517 -0
  19. data/lib/wrest/components.rbc +217 -0
  20. data/lib/wrest/core_ext/hash/conversions.rbc +501 -0
  21. data/lib/wrest/core_ext/hash.rbc +182 -0
  22. data/lib/wrest/core_ext/string/conversions.rbc +471 -0
  23. data/lib/wrest/core_ext/string.rbc +182 -0
  24. data/lib/wrest/curl/response.rb +8 -0
  25. data/lib/wrest/curl.rbc +704 -0
  26. data/lib/wrest/exceptions.rbc +312 -0
  27. data/lib/wrest/http_shared/headers.rb +0 -7
  28. data/lib/wrest/http_shared/headers.rbc +353 -0
  29. data/lib/wrest/http_shared/standard_headers.rbc +336 -0
  30. data/lib/wrest/http_shared/standard_tokens.rbc +316 -0
  31. data/lib/wrest/http_shared.rbc +279 -0
  32. data/lib/wrest/native/connection_factory.rbc +445 -0
  33. data/lib/wrest/native/delete.rbc +371 -0
  34. data/lib/wrest/native/get.rb +26 -0
  35. data/lib/wrest/native/get.rbc +855 -0
  36. data/lib/wrest/native/options.rbc +347 -0
  37. data/lib/wrest/native/post.rbc +388 -0
  38. data/lib/wrest/native/put.rbc +388 -0
  39. data/lib/wrest/native/redirection.rbc +520 -0
  40. data/lib/wrest/native/request.rb +4 -2
  41. data/lib/wrest/native/request.rbc +1675 -0
  42. data/lib/wrest/native/response.rb +53 -2
  43. data/lib/wrest/native/response.rbc +2150 -0
  44. data/lib/wrest/native/session.rbc +1372 -0
  45. data/lib/wrest/native.rbc +513 -0
  46. data/lib/wrest/resource/base.rbc +2115 -0
  47. data/lib/wrest/resource.rbc +163 -0
  48. data/lib/wrest/uri.rbc +2599 -0
  49. data/lib/wrest/uri_template.rbc +505 -0
  50. data/lib/wrest/version.rb +1 -1
  51. data/lib/wrest/version.rbc +372 -0
  52. data/lib/wrest.rb +1 -1
  53. data/lib/wrest.rbc +1900 -0
  54. metadata +99 -102
  55. data/Rakefile +0 -495
  56. data/VERSION.yml +0 -5
  57. data/bin/jwrest +0 -3
  58. data/examples/delicious.rb +0 -72
  59. data/examples/facebook.rb +0 -101
  60. data/examples/imgur_multipart.rb +0 -24
  61. data/examples/keep_alive.rb +0 -37
  62. data/examples/redirection.rb +0 -27
  63. data/examples/twitter.rb +0 -78
  64. data/examples/twitter_public_timeline.rb +0 -32
  65. data/examples/wow_realm_status.rb +0 -67
  66. data/init.rb +0 -0
  67. data/spec/custom_matchers/custom_matchers.rb +0 -2
  68. data/spec/rcov.opts +0 -4
  69. data/spec/spec.opts.disable +0 -6
  70. data/spec/unit/spec_helper.rb +0 -35
  71. data/spec/unit/wrest/components/attributes_container/alias_accessors_spec.rb +0 -49
  72. data/spec/unit/wrest/components/attributes_container/typecaster_spec.rb +0 -83
  73. data/spec/unit/wrest/components/attributes_container_spec.rb +0 -254
  74. data/spec/unit/wrest/components/mutators/base_spec.rb +0 -42
  75. data/spec/unit/wrest/components/mutators/camel_to_snake_spec.rb +0 -22
  76. data/spec/unit/wrest/components/mutators/xml_mini_type_caster_spec.rb +0 -75
  77. data/spec/unit/wrest/components/mutators/xml_simple_type_caster_spec.rb +0 -47
  78. data/spec/unit/wrest/components/mutators_spec.rb +0 -21
  79. data/spec/unit/wrest/components/translators/xml_spec.rb +0 -16
  80. data/spec/unit/wrest/components/translators_spec.rb +0 -18
  81. data/spec/unit/wrest/core_ext/hash/conversions_spec.rb +0 -22
  82. data/spec/unit/wrest/core_ext/string/conversions_spec.rb +0 -39
  83. data/spec/unit/wrest/curl/request_spec.rb +0 -19
  84. data/spec/unit/wrest/curl/response_spec.rb +0 -16
  85. data/spec/unit/wrest/http/response_spec.rb +0 -24
  86. data/spec/unit/wrest/native/redirection_spec.rb +0 -42
  87. data/spec/unit/wrest/native/request_spec.rb +0 -71
  88. data/spec/unit/wrest/native/response_spec.rb +0 -72
  89. data/spec/unit/wrest/native/session_spec.rb +0 -74
  90. data/spec/unit/wrest/resource/base_spec.rb +0 -274
  91. data/spec/unit/wrest/uri_spec.rb +0 -273
  92. data/spec/unit/wrest/uri_template_spec.rb +0 -38
  93. data/wrest.gemspec +0 -168
@@ -0,0 +1,905 @@
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
+ 14
174
+ AliasAccessors
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
+ 14
187
+ AliasAccessors
188
+ i
189
+ 72
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
+ 7
207
+ 4
208
+ 65
209
+ 5
210
+ 49
211
+ 2
212
+ 4
213
+ 15
214
+ 99
215
+ 7
216
+ 5
217
+ 7
218
+ 6
219
+ 65
220
+ 5
221
+ 49
222
+ 2
223
+ 4
224
+ 15
225
+ 99
226
+ 7
227
+ 7
228
+ 7
229
+ 8
230
+ 65
231
+ 5
232
+ 49
233
+ 2
234
+ 4
235
+ 15
236
+ 99
237
+ 7
238
+ 9
239
+ 65
240
+ 49
241
+ 10
242
+ 2
243
+ 13
244
+ 99
245
+ 12
246
+ 7
247
+ 11
248
+ 12
249
+ 7
250
+ 12
251
+ 12
252
+ 65
253
+ 12
254
+ 49
255
+ 2
256
+ 4
257
+ 15
258
+ 49
259
+ 11
260
+ 0
261
+ 11
262
+ I
263
+ 6
264
+ I
265
+ 0
266
+ I
267
+ 0
268
+ I
269
+ 0
270
+ n
271
+ p
272
+ 13
273
+ x
274
+ 8
275
+ included
276
+ M
277
+ 1
278
+ n
279
+ n
280
+ x
281
+ 8
282
+ included
283
+ i
284
+ 11
285
+ 20
286
+ 0
287
+ 45
288
+ 0
289
+ 1
290
+ 43
291
+ 2
292
+ 49
293
+ 3
294
+ 1
295
+ 11
296
+ I
297
+ 3
298
+ I
299
+ 1
300
+ I
301
+ 1
302
+ I
303
+ 1
304
+ n
305
+ p
306
+ 4
307
+ x
308
+ 14
309
+ AliasAccessors
310
+ n
311
+ x
312
+ 12
313
+ ClassMethods
314
+ x
315
+ 6
316
+ extend
317
+ p
318
+ 5
319
+ I
320
+ 0
321
+ I
322
+ d
323
+ I
324
+ 0
325
+ I
326
+ e
327
+ I
328
+ b
329
+ x
330
+ 72
331
+ /Users/sidu/Work/wrest/lib/wrest/components/container/alias_accessors.rb
332
+ p
333
+ 1
334
+ x
335
+ 5
336
+ klass
337
+ x
338
+ 13
339
+ attach_method
340
+ x
341
+ 30
342
+ build_aliased_attribute_getter
343
+ M
344
+ 1
345
+ n
346
+ n
347
+ x
348
+ 30
349
+ build_aliased_attribute_getter
350
+ i
351
+ 21
352
+ 7
353
+ 0
354
+ 20
355
+ 1
356
+ 47
357
+ 49
358
+ 1
359
+ 0
360
+ 7
361
+ 2
362
+ 20
363
+ 0
364
+ 47
365
+ 49
366
+ 1
367
+ 0
368
+ 7
369
+ 3
370
+ 63
371
+ 5
372
+ 11
373
+ I
374
+ 7
375
+ I
376
+ 2
377
+ I
378
+ 2
379
+ I
380
+ 2
381
+ n
382
+ p
383
+ 4
384
+ s
385
+ 4
386
+ def
387
+ x
388
+ 4
389
+ to_s
390
+ s
391
+ 1
392
+ ;
393
+ s
394
+ 5
395
+ ;end;
396
+ p
397
+ 5
398
+ I
399
+ 0
400
+ I
401
+ 11
402
+ I
403
+ 0
404
+ I
405
+ 12
406
+ I
407
+ 15
408
+ x
409
+ 72
410
+ /Users/sidu/Work/wrest/lib/wrest/components/container/alias_accessors.rb
411
+ p
412
+ 2
413
+ x
414
+ 14
415
+ attribute_name
416
+ x
417
+ 10
418
+ alias_name
419
+ x
420
+ 30
421
+ build_aliased_attribute_setter
422
+ M
423
+ 1
424
+ n
425
+ n
426
+ x
427
+ 30
428
+ build_aliased_attribute_setter
429
+ i
430
+ 21
431
+ 7
432
+ 0
433
+ 20
434
+ 1
435
+ 47
436
+ 49
437
+ 1
438
+ 0
439
+ 7
440
+ 2
441
+ 20
442
+ 0
443
+ 47
444
+ 49
445
+ 1
446
+ 0
447
+ 7
448
+ 3
449
+ 63
450
+ 5
451
+ 11
452
+ I
453
+ 7
454
+ I
455
+ 2
456
+ I
457
+ 2
458
+ I
459
+ 2
460
+ n
461
+ p
462
+ 4
463
+ s
464
+ 4
465
+ def
466
+ x
467
+ 4
468
+ to_s
469
+ s
470
+ 14
471
+ =(value);self.
472
+ s
473
+ 11
474
+ =value;end;
475
+ p
476
+ 5
477
+ I
478
+ 0
479
+ I
480
+ 15
481
+ I
482
+ 0
483
+ I
484
+ 16
485
+ I
486
+ 15
487
+ x
488
+ 72
489
+ /Users/sidu/Work/wrest/lib/wrest/components/container/alias_accessors.rb
490
+ p
491
+ 2
492
+ x
493
+ 14
494
+ attribute_name
495
+ x
496
+ 10
497
+ alias_name
498
+ x
499
+ 31
500
+ build_aliased_attribute_queryer
501
+ M
502
+ 1
503
+ n
504
+ n
505
+ x
506
+ 31
507
+ build_aliased_attribute_queryer
508
+ i
509
+ 21
510
+ 7
511
+ 0
512
+ 20
513
+ 1
514
+ 47
515
+ 49
516
+ 1
517
+ 0
518
+ 7
519
+ 2
520
+ 20
521
+ 0
522
+ 47
523
+ 49
524
+ 1
525
+ 0
526
+ 7
527
+ 3
528
+ 63
529
+ 5
530
+ 11
531
+ I
532
+ 7
533
+ I
534
+ 2
535
+ I
536
+ 2
537
+ I
538
+ 2
539
+ n
540
+ p
541
+ 4
542
+ s
543
+ 4
544
+ def
545
+ x
546
+ 4
547
+ to_s
548
+ s
549
+ 7
550
+ ?;self.
551
+ s
552
+ 6
553
+ ?;end;
554
+ p
555
+ 5
556
+ I
557
+ 0
558
+ I
559
+ 19
560
+ I
561
+ 0
562
+ I
563
+ 1a
564
+ I
565
+ 15
566
+ x
567
+ 72
568
+ /Users/sidu/Work/wrest/lib/wrest/components/container/alias_accessors.rb
569
+ p
570
+ 2
571
+ x
572
+ 14
573
+ attribute_name
574
+ x
575
+ 10
576
+ alias_name
577
+ x
578
+ 12
579
+ ClassMethods
580
+ x
581
+ 11
582
+ open_module
583
+ x
584
+ 15
585
+ __module_init__
586
+ M
587
+ 1
588
+ n
589
+ n
590
+ x
591
+ 12
592
+ ClassMethods
593
+ i
594
+ 16
595
+ 5
596
+ 66
597
+ 99
598
+ 7
599
+ 0
600
+ 7
601
+ 1
602
+ 65
603
+ 67
604
+ 49
605
+ 2
606
+ 0
607
+ 49
608
+ 3
609
+ 4
610
+ 11
611
+ I
612
+ 5
613
+ I
614
+ 0
615
+ I
616
+ 0
617
+ I
618
+ 0
619
+ n
620
+ p
621
+ 4
622
+ x
623
+ 15
624
+ alias_accessors
625
+ M
626
+ 1
627
+ n
628
+ n
629
+ x
630
+ 15
631
+ alias_accessors
632
+ i
633
+ 8
634
+ 20
635
+ 0
636
+ 56
637
+ 0
638
+ 50
639
+ 1
640
+ 0
641
+ 11
642
+ I
643
+ 3
644
+ I
645
+ 1
646
+ I
647
+ 1
648
+ I
649
+ 1
650
+ n
651
+ p
652
+ 2
653
+ M
654
+ 1
655
+ p
656
+ 2
657
+ x
658
+ 9
659
+ for_block
660
+ t
661
+ n
662
+ x
663
+ 15
664
+ alias_accessors
665
+ i
666
+ 49
667
+ 58
668
+ 37
669
+ 19
670
+ 0
671
+ 15
672
+ 37
673
+ 19
674
+ 1
675
+ 15
676
+ 15
677
+ 5
678
+ 45
679
+ 0
680
+ 1
681
+ 20
682
+ 0
683
+ 20
684
+ 1
685
+ 49
686
+ 2
687
+ 2
688
+ 45
689
+ 0
690
+ 3
691
+ 20
692
+ 0
693
+ 20
694
+ 1
695
+ 49
696
+ 4
697
+ 2
698
+ 81
699
+ 5
700
+ 45
701
+ 0
702
+ 6
703
+ 20
704
+ 0
705
+ 20
706
+ 1
707
+ 49
708
+ 7
709
+ 2
710
+ 81
711
+ 5
712
+ 49
713
+ 8
714
+ 1
715
+ 11
716
+ I
717
+ 8
718
+ I
719
+ 2
720
+ I
721
+ 2
722
+ I
723
+ 2
724
+ n
725
+ p
726
+ 9
727
+ x
728
+ 14
729
+ AliasAccessors
730
+ n
731
+ x
732
+ 30
733
+ build_aliased_attribute_getter
734
+ n
735
+ x
736
+ 30
737
+ build_aliased_attribute_setter
738
+ x
739
+ 1
740
+ +
741
+ n
742
+ x
743
+ 31
744
+ build_aliased_attribute_queryer
745
+ x
746
+ 10
747
+ class_eval
748
+ p
749
+ 13
750
+ I
751
+ 0
752
+ I
753
+ 37
754
+ I
755
+ a
756
+ I
757
+ 38
758
+ I
759
+ b
760
+ I
761
+ 39
762
+ I
763
+ 15
764
+ I
765
+ 3a
766
+ I
767
+ 21
768
+ I
769
+ 3b
770
+ I
771
+ 2d
772
+ I
773
+ 38
774
+ I
775
+ 31
776
+ x
777
+ 72
778
+ /Users/sidu/Work/wrest/lib/wrest/components/container/alias_accessors.rb
779
+ p
780
+ 2
781
+ x
782
+ 14
783
+ attribute_name
784
+ x
785
+ 10
786
+ alias_name
787
+ x
788
+ 4
789
+ each
790
+ p
791
+ 5
792
+ I
793
+ 0
794
+ I
795
+ 36
796
+ I
797
+ 0
798
+ I
799
+ 37
800
+ I
801
+ 8
802
+ x
803
+ 72
804
+ /Users/sidu/Work/wrest/lib/wrest/components/container/alias_accessors.rb
805
+ p
806
+ 1
807
+ x
808
+ 9
809
+ alias_map
810
+ x
811
+ 17
812
+ method_visibility
813
+ x
814
+ 15
815
+ add_defn_method
816
+ p
817
+ 3
818
+ I
819
+ 2
820
+ I
821
+ 36
822
+ I
823
+ 10
824
+ x
825
+ 72
826
+ /Users/sidu/Work/wrest/lib/wrest/components/container/alias_accessors.rb
827
+ p
828
+ 0
829
+ p
830
+ 11
831
+ I
832
+ 2
833
+ I
834
+ d
835
+ I
836
+ d
837
+ I
838
+ 11
839
+ I
840
+ 18
841
+ I
842
+ 15
843
+ I
844
+ 23
845
+ I
846
+ 19
847
+ I
848
+ 2e
849
+ I
850
+ 1d
851
+ I
852
+ 48
853
+ x
854
+ 72
855
+ /Users/sidu/Work/wrest/lib/wrest/components/container/alias_accessors.rb
856
+ p
857
+ 0
858
+ x
859
+ 13
860
+ attach_method
861
+ p
862
+ 3
863
+ I
864
+ 2
865
+ I
866
+ c
867
+ I
868
+ 1c
869
+ x
870
+ 72
871
+ /Users/sidu/Work/wrest/lib/wrest/components/container/alias_accessors.rb
872
+ p
873
+ 0
874
+ x
875
+ 13
876
+ attach_method
877
+ p
878
+ 3
879
+ I
880
+ 2
881
+ I
882
+ b
883
+ I
884
+ 1e
885
+ x
886
+ 72
887
+ /Users/sidu/Work/wrest/lib/wrest/components/container/alias_accessors.rb
888
+ p
889
+ 0
890
+ x
891
+ 13
892
+ attach_method
893
+ p
894
+ 3
895
+ I
896
+ 0
897
+ I
898
+ a
899
+ I
900
+ 1c
901
+ x
902
+ 72
903
+ /Users/sidu/Work/wrest/lib/wrest/components/container/alias_accessors.rb
904
+ p
905
+ 0