rest_baby 0.8 → 1.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.
- checksums.yaml +4 -4
- data/.rubocop.yml +0 -1
- data/ChangeLog +12 -2
- data/Gemfile +2 -0
- data/Rakefile +7 -1
- data/doc/MockRestService.html +204 -31
- data/doc/RestBaby/Client.html +686 -246
- data/doc/RestBaby.html +6 -7
- data/doc/_index.html +6 -19
- data/doc/class_list.html +6 -2
- data/doc/css/style.css +2 -1
- data/doc/feature_list.html +82 -55
- data/doc/featuredirectories_list.html +25 -32
- data/doc/file.README.html +6 -6
- data/doc/file_list.html +5 -1
- data/doc/frames.html +5 -7
- data/doc/index.html +6 -6
- data/doc/js/app.js +7 -2
- data/doc/js/full_list.js +4 -1
- data/doc/method_list.html +41 -25
- data/doc/requirements/features/header_options.html +81 -45
- data/doc/requirements/features/print_response.html +42 -148
- data/doc/requirements/features/rest_client.html +38 -30
- data/doc/requirements/features/url_parameter.html +342 -0
- data/doc/requirements/features.html +42 -39
- data/doc/requirements/step_transformers.html +524 -321
- data/doc/requirements/tags/authentication.html +8 -8
- data/doc/requirements/tags/core.html +4 -4
- data/doc/requirements/tags/delete.html +4 -4
- data/doc/requirements/tags/extended.html +12 -12
- data/doc/requirements/tags/get.html +6 -6
- data/doc/requirements/tags/header.S1.html +160 -0
- data/doc/requirements/tags/header.S2.html +160 -0
- data/doc/requirements/tags/header.S3.html +160 -0
- data/doc/requirements/tags/header.S4.html +160 -0
- data/doc/requirements/tags/header.html +160 -0
- data/doc/requirements/tags/headers.html +7 -16
- data/doc/requirements/tags/parameter.S1.html +160 -0
- data/doc/requirements/tags/parameter.html +160 -0
- data/doc/requirements/tags/post.html +10 -10
- data/doc/requirements/tags/print.S1.html +160 -0
- data/doc/requirements/tags/print.S2.html +160 -0
- data/doc/requirements/tags/print.S3.html +160 -0
- data/doc/requirements/tags/print.S4.html +160 -0
- data/doc/requirements/tags/print.html +4 -4
- data/doc/requirements/tags/put.html +4 -4
- data/doc/requirements/tags/rest.S1.html +160 -0
- data/doc/requirements/tags/rest.S2.html +160 -0
- data/doc/requirements/tags/rest.S3.html +160 -0
- data/doc/requirements/tags/rest.S4.html +160 -0
- data/doc/requirements/tags.html +97 -57
- data/doc/requirements.html +43 -38
- data/doc/step_list.html +204 -189
- data/doc/stepdefinition_list.html +69 -35
- data/doc/tag_list.html +100 -6
- data/doc/top-level-namespace.html +79 -13
- data/features/step_definitions/rest_client_steps.rb +4 -4
- data/lib/rest_baby/version.rb +1 -1
- data/lib/rest_baby.rb +1 -1
- metadata +46 -31
- data/Gemfile.lock +0 -68
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Feature: Create a basic rest client that can get, put, post, and delete
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7
|
9
|
+
— Documentation by YARD 0.8.7.6
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -19,7 +19,7 @@
|
|
19
19
|
<script type="text/javascript" charset="utf-8">
|
20
20
|
hasFrames = window.top.frames.main ? true : false;
|
21
21
|
relpath = '../../';
|
22
|
-
framesUrl = "../../frames.html#!"
|
22
|
+
framesUrl = "../../frames.html#!requirements/features/print_response.html";
|
23
23
|
</script>
|
24
24
|
|
25
25
|
|
@@ -142,7 +142,7 @@ $(function() {
|
|
142
142
|
|
143
143
|
<div class="details">
|
144
144
|
<div class="meta developer">
|
145
|
-
<div class="file">features/print_response.feature:
|
145
|
+
<div class="file">features/print_response.feature:5</div>
|
146
146
|
|
147
147
|
<div style="clear:right;"></div>
|
148
148
|
<div class="tags">
|
@@ -153,6 +153,8 @@ $(function() {
|
|
153
153
|
|
154
154
|
<a href="../tags/print.html">@print</a>
|
155
155
|
|
156
|
+
<a href="../tags/print.S1.html">@print.S1</a>
|
157
|
+
|
156
158
|
</div>
|
157
159
|
|
158
160
|
<div style="clear: both;"></div>
|
@@ -173,7 +175,7 @@ $(function() {
|
|
173
175
|
<span class="defined">
|
174
176
|
I have a web service
|
175
177
|
<div class="definition developer">
|
176
|
-
<a href="../step_transformers.html#
|
178
|
+
<a href="../step_transformers.html#step_definition7-stepdefinition"><div class="valid"> </div></a>
|
177
179
|
</div>
|
178
180
|
</span>
|
179
181
|
|
@@ -198,7 +200,7 @@ $(function() {
|
|
198
200
|
<span class="defined">
|
199
201
|
I have "<span class='match'>GET</span>" service for "<span class='match'>/test</span>" as follows
|
200
202
|
<div class="definition developer">
|
201
|
-
<a href="../step_transformers.html#
|
203
|
+
<a href="../step_transformers.html#step_definition9-stepdefinition"><div class="valid"> </div></a>
|
202
204
|
</div>
|
203
205
|
</span>
|
204
206
|
|
@@ -208,7 +210,7 @@ $(function() {
|
|
208
210
|
|
209
211
|
|
210
212
|
<div class="text">
|
211
|
-
{
|
213
|
+
{"Answer": "What did you expect?"}
|
212
214
|
</div>
|
213
215
|
|
214
216
|
|
@@ -226,7 +228,7 @@ $(function() {
|
|
226
228
|
<span class="defined">
|
227
229
|
I am a rest client
|
228
230
|
<div class="definition developer">
|
229
|
-
<a href="../step_transformers.html#
|
231
|
+
<a href="../step_transformers.html#step_definition10-stepdefinition"><div class="valid"> </div></a>
|
230
232
|
</div>
|
231
233
|
</span>
|
232
234
|
|
@@ -242,8 +244,6 @@ $(function() {
|
|
242
244
|
|
243
245
|
|
244
246
|
|
245
|
-
<div class="comments developer"># And I pause</div>
|
246
|
-
|
247
247
|
<div class="step even">
|
248
248
|
<span class="predicate">When </span>
|
249
249
|
|
@@ -253,7 +253,7 @@ $(function() {
|
|
253
253
|
<span class="defined">
|
254
254
|
I "<span class='match'>GET</span>" from the web service
|
255
255
|
<div class="definition developer">
|
256
|
-
<a href="../step_transformers.html#
|
256
|
+
<a href="../step_transformers.html#step_definition11-stepdefinition"><div class="valid"> </div></a>
|
257
257
|
</div>
|
258
258
|
</span>
|
259
259
|
|
@@ -278,7 +278,7 @@ $(function() {
|
|
278
278
|
<span class="defined">
|
279
279
|
I receive the expected message
|
280
280
|
<div class="definition developer">
|
281
|
-
<a href="../step_transformers.html#
|
281
|
+
<a href="../step_transformers.html#step_definition15-stepdefinition"><div class="valid"> </div></a>
|
282
282
|
</div>
|
283
283
|
</span>
|
284
284
|
|
@@ -291,34 +291,6 @@ $(function() {
|
|
291
291
|
|
292
292
|
|
293
293
|
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
<div class="step even">
|
298
|
-
<span class="predicate">And </span>
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
<span class="defined">
|
304
|
-
the response prints like the following
|
305
|
-
<div class="definition developer">
|
306
|
-
<a href="../step_transformers.html#step_definition14-stepdefinition"><div class="valid"> </div></a>
|
307
|
-
</div>
|
308
|
-
</span>
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
</div>
|
313
|
-
|
314
|
-
|
315
|
-
<div class="text">
|
316
|
-
CODE = 200<br/>MESSAGE = <br/>BODY = {'Answer': 'What did you expect?'}
|
317
|
-
</div>
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
294
|
|
323
295
|
|
324
296
|
</div>
|
@@ -350,7 +322,7 @@ $(function() {
|
|
350
322
|
|
351
323
|
<div class="details">
|
352
324
|
<div class="meta developer">
|
353
|
-
<div class="file">features/print_response.feature:
|
325
|
+
<div class="file">features/print_response.feature:17</div>
|
354
326
|
|
355
327
|
<div style="clear:right;"></div>
|
356
328
|
<div class="tags">
|
@@ -361,6 +333,8 @@ $(function() {
|
|
361
333
|
|
362
334
|
<a href="../tags/print.html">@print</a>
|
363
335
|
|
336
|
+
<a href="../tags/print.S2.html">@print.S2</a>
|
337
|
+
|
364
338
|
</div>
|
365
339
|
|
366
340
|
<div style="clear: both;"></div>
|
@@ -381,7 +355,7 @@ $(function() {
|
|
381
355
|
<span class="defined">
|
382
356
|
I have a web service
|
383
357
|
<div class="definition developer">
|
384
|
-
<a href="../step_transformers.html#
|
358
|
+
<a href="../step_transformers.html#step_definition7-stepdefinition"><div class="valid"> </div></a>
|
385
359
|
</div>
|
386
360
|
</span>
|
387
361
|
|
@@ -406,7 +380,7 @@ $(function() {
|
|
406
380
|
<span class="defined">
|
407
381
|
I have "<span class='match'>PUT</span>" service for "<span class='match'>/test</span>" as follows
|
408
382
|
<div class="definition developer">
|
409
|
-
<a href="../step_transformers.html#
|
383
|
+
<a href="../step_transformers.html#step_definition9-stepdefinition"><div class="valid"> </div></a>
|
410
384
|
</div>
|
411
385
|
</span>
|
412
386
|
|
@@ -416,7 +390,7 @@ $(function() {
|
|
416
390
|
|
417
391
|
|
418
392
|
<div class="text">
|
419
|
-
{
|
393
|
+
{"Answer": "What did you expect?"}
|
420
394
|
</div>
|
421
395
|
|
422
396
|
|
@@ -434,7 +408,7 @@ $(function() {
|
|
434
408
|
<span class="defined">
|
435
409
|
I am a rest client
|
436
410
|
<div class="definition developer">
|
437
|
-
<a href="../step_transformers.html#
|
411
|
+
<a href="../step_transformers.html#step_definition10-stepdefinition"><div class="valid"> </div></a>
|
438
412
|
</div>
|
439
413
|
</span>
|
440
414
|
|
@@ -459,7 +433,7 @@ $(function() {
|
|
459
433
|
<span class="defined">
|
460
434
|
I "<span class='match'>PUT</span>" to the web service with the following
|
461
435
|
<div class="definition developer">
|
462
|
-
<a href="../step_transformers.html#
|
436
|
+
<a href="../step_transformers.html#step_definition12-stepdefinition"><div class="valid"> </div></a>
|
463
437
|
</div>
|
464
438
|
</span>
|
465
439
|
|
@@ -469,7 +443,7 @@ $(function() {
|
|
469
443
|
|
470
444
|
|
471
445
|
<div class="text">
|
472
|
-
{
|
446
|
+
{"Answer": "What did you expect?"}
|
473
447
|
</div>
|
474
448
|
|
475
449
|
|
@@ -487,7 +461,7 @@ $(function() {
|
|
487
461
|
<span class="defined">
|
488
462
|
I receive the expected message
|
489
463
|
<div class="definition developer">
|
490
|
-
<a href="../step_transformers.html#
|
464
|
+
<a href="../step_transformers.html#step_definition15-stepdefinition"><div class="valid"> </div></a>
|
491
465
|
</div>
|
492
466
|
</span>
|
493
467
|
|
@@ -500,34 +474,6 @@ $(function() {
|
|
500
474
|
|
501
475
|
|
502
476
|
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
<div class="step even">
|
507
|
-
<span class="predicate">And </span>
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
<span class="defined">
|
513
|
-
the response prints like the following
|
514
|
-
<div class="definition developer">
|
515
|
-
<a href="../step_transformers.html#step_definition14-stepdefinition"><div class="valid"> </div></a>
|
516
|
-
</div>
|
517
|
-
</span>
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
</div>
|
522
|
-
|
523
|
-
|
524
|
-
<div class="text">
|
525
|
-
CODE = 200<br/>MESSAGE = <br/>BODY = {'Answer': 'What did you expect?'}
|
526
|
-
</div>
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
477
|
|
532
478
|
|
533
479
|
</div>
|
@@ -559,7 +505,7 @@ $(function() {
|
|
559
505
|
|
560
506
|
<div class="details">
|
561
507
|
<div class="meta developer">
|
562
|
-
<div class="file">features/print_response.feature:
|
508
|
+
<div class="file">features/print_response.feature:32</div>
|
563
509
|
|
564
510
|
<div style="clear:right;"></div>
|
565
511
|
<div class="tags">
|
@@ -570,6 +516,8 @@ $(function() {
|
|
570
516
|
|
571
517
|
<a href="../tags/print.html">@print</a>
|
572
518
|
|
519
|
+
<a href="../tags/print.S3.html">@print.S3</a>
|
520
|
+
|
573
521
|
</div>
|
574
522
|
|
575
523
|
<div style="clear: both;"></div>
|
@@ -590,7 +538,7 @@ $(function() {
|
|
590
538
|
<span class="defined">
|
591
539
|
I have a web service
|
592
540
|
<div class="definition developer">
|
593
|
-
<a href="../step_transformers.html#
|
541
|
+
<a href="../step_transformers.html#step_definition7-stepdefinition"><div class="valid"> </div></a>
|
594
542
|
</div>
|
595
543
|
</span>
|
596
544
|
|
@@ -615,7 +563,7 @@ $(function() {
|
|
615
563
|
<span class="defined">
|
616
564
|
I have "<span class='match'>POST</span>" service for "<span class='match'>/test</span>" as follows
|
617
565
|
<div class="definition developer">
|
618
|
-
<a href="../step_transformers.html#
|
566
|
+
<a href="../step_transformers.html#step_definition9-stepdefinition"><div class="valid"> </div></a>
|
619
567
|
</div>
|
620
568
|
</span>
|
621
569
|
|
@@ -625,7 +573,7 @@ $(function() {
|
|
625
573
|
|
626
574
|
|
627
575
|
<div class="text">
|
628
|
-
{
|
576
|
+
{"Answer": "What did you expect?"}
|
629
577
|
</div>
|
630
578
|
|
631
579
|
|
@@ -643,7 +591,7 @@ $(function() {
|
|
643
591
|
<span class="defined">
|
644
592
|
I am a rest client
|
645
593
|
<div class="definition developer">
|
646
|
-
<a href="../step_transformers.html#
|
594
|
+
<a href="../step_transformers.html#step_definition10-stepdefinition"><div class="valid"> </div></a>
|
647
595
|
</div>
|
648
596
|
</span>
|
649
597
|
|
@@ -668,7 +616,7 @@ $(function() {
|
|
668
616
|
<span class="defined">
|
669
617
|
I "<span class='match'>POST</span>" to the web service with the following
|
670
618
|
<div class="definition developer">
|
671
|
-
<a href="../step_transformers.html#
|
619
|
+
<a href="../step_transformers.html#step_definition12-stepdefinition"><div class="valid"> </div></a>
|
672
620
|
</div>
|
673
621
|
</span>
|
674
622
|
|
@@ -678,7 +626,7 @@ $(function() {
|
|
678
626
|
|
679
627
|
|
680
628
|
<div class="text">
|
681
|
-
{
|
629
|
+
{"Answer": "What did you expect?"}
|
682
630
|
</div>
|
683
631
|
|
684
632
|
|
@@ -696,7 +644,7 @@ $(function() {
|
|
696
644
|
<span class="defined">
|
697
645
|
I receive the expected message
|
698
646
|
<div class="definition developer">
|
699
|
-
<a href="../step_transformers.html#
|
647
|
+
<a href="../step_transformers.html#step_definition15-stepdefinition"><div class="valid"> </div></a>
|
700
648
|
</div>
|
701
649
|
</span>
|
702
650
|
|
@@ -709,34 +657,6 @@ $(function() {
|
|
709
657
|
|
710
658
|
|
711
659
|
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
<div class="step even">
|
716
|
-
<span class="predicate">And </span>
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
<span class="defined">
|
722
|
-
the response prints like the following
|
723
|
-
<div class="definition developer">
|
724
|
-
<a href="../step_transformers.html#step_definition14-stepdefinition"><div class="valid"> </div></a>
|
725
|
-
</div>
|
726
|
-
</span>
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
</div>
|
731
|
-
|
732
|
-
|
733
|
-
<div class="text">
|
734
|
-
CODE = 200<br/>MESSAGE = <br/>BODY = {'Answer': 'What did you expect?'}
|
735
|
-
</div>
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
660
|
|
741
661
|
|
742
662
|
</div>
|
@@ -768,7 +688,7 @@ $(function() {
|
|
768
688
|
|
769
689
|
<div class="details">
|
770
690
|
<div class="meta developer">
|
771
|
-
<div class="file">features/print_response.feature:
|
691
|
+
<div class="file">features/print_response.feature:47</div>
|
772
692
|
|
773
693
|
<div style="clear:right;"></div>
|
774
694
|
<div class="tags">
|
@@ -779,6 +699,8 @@ $(function() {
|
|
779
699
|
|
780
700
|
<a href="../tags/print.html">@print</a>
|
781
701
|
|
702
|
+
<a href="../tags/print.S4.html">@print.S4</a>
|
703
|
+
|
782
704
|
</div>
|
783
705
|
|
784
706
|
<div style="clear: both;"></div>
|
@@ -799,7 +721,7 @@ $(function() {
|
|
799
721
|
<span class="defined">
|
800
722
|
I have a web service
|
801
723
|
<div class="definition developer">
|
802
|
-
<a href="../step_transformers.html#
|
724
|
+
<a href="../step_transformers.html#step_definition7-stepdefinition"><div class="valid"> </div></a>
|
803
725
|
</div>
|
804
726
|
</span>
|
805
727
|
|
@@ -824,7 +746,7 @@ $(function() {
|
|
824
746
|
<span class="defined">
|
825
747
|
I have "<span class='match'>DELETE</span>" service for "<span class='match'>/test</span>" as follows
|
826
748
|
<div class="definition developer">
|
827
|
-
<a href="../step_transformers.html#
|
749
|
+
<a href="../step_transformers.html#step_definition9-stepdefinition"><div class="valid"> </div></a>
|
828
750
|
</div>
|
829
751
|
</span>
|
830
752
|
|
@@ -834,7 +756,7 @@ $(function() {
|
|
834
756
|
|
835
757
|
|
836
758
|
<div class="text">
|
837
|
-
{
|
759
|
+
{"Answer": "What did you expect?"}
|
838
760
|
</div>
|
839
761
|
|
840
762
|
|
@@ -852,7 +774,7 @@ $(function() {
|
|
852
774
|
<span class="defined">
|
853
775
|
I am a rest client
|
854
776
|
<div class="definition developer">
|
855
|
-
<a href="../step_transformers.html#
|
777
|
+
<a href="../step_transformers.html#step_definition10-stepdefinition"><div class="valid"> </div></a>
|
856
778
|
</div>
|
857
779
|
</span>
|
858
780
|
|
@@ -877,7 +799,7 @@ $(function() {
|
|
877
799
|
<span class="defined">
|
878
800
|
I "<span class='match'>DELETE</span>" from the web service
|
879
801
|
<div class="definition developer">
|
880
|
-
<a href="../step_transformers.html#
|
802
|
+
<a href="../step_transformers.html#step_definition11-stepdefinition"><div class="valid"> </div></a>
|
881
803
|
</div>
|
882
804
|
</span>
|
883
805
|
|
@@ -902,7 +824,7 @@ $(function() {
|
|
902
824
|
<span class="defined">
|
903
825
|
I receive the expected message
|
904
826
|
<div class="definition developer">
|
905
|
-
<a href="../step_transformers.html#
|
827
|
+
<a href="../step_transformers.html#step_definition15-stepdefinition"><div class="valid"> </div></a>
|
906
828
|
</div>
|
907
829
|
</span>
|
908
830
|
|
@@ -915,34 +837,6 @@ $(function() {
|
|
915
837
|
|
916
838
|
|
917
839
|
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
<div class="step even">
|
922
|
-
<span class="predicate">And </span>
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
|
927
|
-
<span class="defined">
|
928
|
-
the response prints like the following
|
929
|
-
<div class="definition developer">
|
930
|
-
<a href="../step_transformers.html#step_definition14-stepdefinition"><div class="valid"> </div></a>
|
931
|
-
</div>
|
932
|
-
</span>
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
</div>
|
937
|
-
|
938
|
-
|
939
|
-
<div class="text">
|
940
|
-
CODE = 200<br/>MESSAGE = <br/>BODY = {'Answer': 'What did you expect?'}
|
941
|
-
</div>
|
942
|
-
|
943
|
-
|
944
|
-
|
945
|
-
|
946
840
|
|
947
841
|
|
948
842
|
</div>
|
@@ -960,9 +854,9 @@ $(function() {
|
|
960
854
|
</div>
|
961
855
|
|
962
856
|
<div id="footer">
|
963
|
-
Generated on
|
857
|
+
Generated on Fri Jul 17 23:52:38 2015 by
|
964
858
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
965
|
-
0.8.7 (ruby-2.0.0).
|
859
|
+
0.8.7.6 (ruby-2.0.0).
|
966
860
|
</div>
|
967
861
|
|
968
862
|
</body>
|