rest_baby 0.1 → 0.2

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 (55) hide show
  1. checksums.yaml +4 -4
  2. data/ChangeLog +13 -0
  3. data/README.md +2 -2
  4. data/Rakefile +8 -1
  5. data/doc/MockRestService.html +351 -0
  6. data/doc/PinchRestService.html +349 -0
  7. data/doc/RestBaby/Client.html +936 -0
  8. data/doc/RestBaby.html +170 -0
  9. data/doc/_index.html +182 -0
  10. data/doc/class_list.html +74 -0
  11. data/doc/css/common.css +1 -0
  12. data/doc/css/cucumber.css +227 -0
  13. data/doc/css/full_list.css +57 -0
  14. data/doc/css/style.css +338 -0
  15. data/doc/feature_list.html +245 -0
  16. data/doc/featuredirectories_list.html +179 -0
  17. data/doc/file.README.html +134 -0
  18. data/doc/file_list.html +76 -0
  19. data/doc/frames.html +28 -0
  20. data/doc/index.html +134 -0
  21. data/doc/js/app.js +214 -0
  22. data/doc/js/cucumber.js +305 -0
  23. data/doc/js/full_list.js +178 -0
  24. data/doc/js/jquery.js +4 -0
  25. data/doc/method_list.html +169 -0
  26. data/doc/requirements/features/header_options.html +1020 -0
  27. data/doc/requirements/features/headers/header_options.html +1020 -0
  28. data/doc/requirements/features/headers.html +157 -0
  29. data/doc/requirements/features/print_response.html +969 -0
  30. data/doc/requirements/features/rest_client.html +835 -0
  31. data/doc/requirements/features.html +199 -0
  32. data/doc/requirements/step_transformers.html +1508 -0
  33. data/doc/requirements/tags/authentication.html +169 -0
  34. data/doc/requirements/tags/core.html +187 -0
  35. data/doc/requirements/tags/delete.html +169 -0
  36. data/doc/requirements/tags/extended.html +223 -0
  37. data/doc/requirements/tags/get.html +178 -0
  38. data/doc/requirements/tags/headers.html +169 -0
  39. data/doc/requirements/tags/post.html +196 -0
  40. data/doc/requirements/tags/print.html +187 -0
  41. data/doc/requirements/tags/put.html +169 -0
  42. data/doc/requirements/tags.html +408 -0
  43. data/doc/requirements.html +213 -0
  44. data/doc/step_list.html +825 -0
  45. data/doc/stepdefinition_list.html +230 -0
  46. data/doc/tag_list.html +131 -0
  47. data/doc/top-level-namespace.html +244 -0
  48. data/features/{header_options.feature → headers/header_options.feature} +0 -0
  49. data/features/step_definitions/rest_client_steps.rb +5 -4
  50. data/features/support/env.rb +1 -18
  51. data/features/support/mock_rest_service.rb +1 -1
  52. data/lib/rest_baby/version.rb +1 -1
  53. data/lib/rest_baby.rb +62 -35
  54. metadata +49 -5
  55. data/LICENSE +0 -24
@@ -0,0 +1,223 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Tag: @extended
8
+
9
+ &mdash; Documentation by YARD 0.8.7
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <link rel="stylesheet" href="../../css/cucumber.css" type="text/css" charset="utf-8" />
18
+
19
+ <script type="text/javascript" charset="utf-8">
20
+ hasFrames = window.top.frames.main ? true : false;
21
+ relpath = '../../';
22
+ framesUrl = "../../frames.html#!" + escape(window.location.href);
23
+ </script>
24
+
25
+
26
+ <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
27
+
28
+ <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
29
+
30
+ <script type="text/javascript" charset="utf-8" src="../../js/cucumber.js"></script>
31
+
32
+
33
+ </head>
34
+ <body>
35
+ <div id="header">
36
+ <div id="menu">
37
+
38
+ <a href="../../_index.html">Index (e)</a> &raquo;
39
+ <span class='title'><span class='object_link'><a href="../../requirements.html" title="requirements (requirements)">requirements</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../tags.html" title="requirements::tags (featuretags)">tags</a></span></span>
40
+ &raquo;
41
+ <span class="title">extended</span>
42
+
43
+
44
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
45
+ </div>
46
+
47
+ <div id="search">
48
+
49
+ <a class="full_list_link" id="feature_list_link"
50
+ href="../../feature_list.html">
51
+ Features
52
+ </a>
53
+
54
+ <a class="full_list_link" id="featuredirectories_list_link"
55
+ href="../../featuredirectories_list.html">
56
+ Features by Directory
57
+ </a>
58
+
59
+ <a class="full_list_link" id="tag_list_link"
60
+ href="../../tag_list.html">
61
+ Tags
62
+ </a>
63
+
64
+ <a class="full_list_link" id="step_list_link"
65
+ href="../../step_list.html">
66
+ Steps
67
+ </a>
68
+
69
+ <a class="full_list_link" id="stepdefinition_list_link"
70
+ href="../../stepdefinition_list.html">
71
+ Step Defs
72
+ </a>
73
+
74
+ <a class="full_list_link" id="class_list_link"
75
+ href="../../class_list.html">
76
+ Class List
77
+ </a>
78
+
79
+ <a class="full_list_link" id="method_list_link"
80
+ href="../../method_list.html">
81
+ Method List
82
+ </a>
83
+
84
+ <a class="full_list_link" id="file_list_link"
85
+ href="../../file_list.html">
86
+ File List
87
+ </a>
88
+
89
+ </div>
90
+ <div class="clear"></div>
91
+ </div>
92
+
93
+ <iframe id="search_frame"></iframe>
94
+
95
+ <div id="content"><div class="tag">
96
+ <div class="title">
97
+ <span class="pre">Tag:</span>
98
+ <span class="name">@extended</span>
99
+
100
+ </div>
101
+
102
+ <div class="meta">
103
+ <div class="file">
104
+
105
+
106
+ 8 scenarios
107
+ </div>
108
+ </div>
109
+
110
+ <div style="margin-top: 20px;">&nbsp;</div>
111
+
112
+
113
+
114
+
115
+ <div id="features" style="margin-left: 40px;">
116
+ <div class="title"><span class="name">Scenarios</span></div>
117
+ </div>
118
+
119
+
120
+ <table style="margin-left: 10px; width: 100%;">
121
+ <tr>
122
+ <td valign='top' width="50%">
123
+
124
+
125
+ <ul id="alpha_C" class="alpha">
126
+ <li class="letter">C</li>
127
+ <ul>
128
+
129
+ <li>
130
+
131
+ <a href="../features/headers/header_options.html#scenario_3">
132
+ client uses basic authentication
133
+ </a>
134
+
135
+ <small>(features/headers/header_options.feature)</small>
136
+ </li>
137
+
138
+ <li>
139
+
140
+ <a href="../features/headers/header_options.html#scenario_1">
141
+ client uses an Accept header for a GET
142
+ </a>
143
+
144
+ <small>(features/headers/header_options.feature)</small>
145
+ </li>
146
+
147
+ <li>
148
+
149
+ <a href="../features/headers/header_options.html#scenario_2">
150
+ client uses an Accept and a Content-Type header for a POST
151
+ </a>
152
+
153
+ <small>(features/headers/header_options.feature)</small>
154
+ </li>
155
+
156
+ <li>
157
+
158
+ <a href="../features/headers/header_options.html#scenario_4">
159
+ client uses a secure web server
160
+ </a>
161
+
162
+ <small>(features/headers/header_options.feature)</small>
163
+ </li>
164
+
165
+ <li>
166
+
167
+ <a href="../features/print_response.html#scenario_2">
168
+ client rest Put
169
+ </a>
170
+
171
+ <small>(features/print_response.feature)</small>
172
+ </li>
173
+
174
+ <li>
175
+
176
+ <a href="../features/print_response.html#scenario_3">
177
+ client rest Post
178
+ </a>
179
+
180
+ <small>(features/print_response.feature)</small>
181
+ </li>
182
+
183
+ <li>
184
+
185
+ <a href="../features/print_response.html#scenario_1">
186
+ client rest Get
187
+ </a>
188
+
189
+ <small>(features/print_response.feature)</small>
190
+ </li>
191
+
192
+ <li>
193
+
194
+ <a href="../features/print_response.html#scenario_4">
195
+ client rest Delete
196
+ </a>
197
+
198
+ <small>(features/print_response.feature)</small>
199
+ </li>
200
+
201
+ </ul>
202
+ </ul>
203
+
204
+ </td>
205
+ </tr>
206
+ </table>
207
+
208
+
209
+
210
+
211
+
212
+
213
+ </div>
214
+ </div>
215
+
216
+ <div id="footer">
217
+ Generated on Tue Aug 6 23:42:43 2013 by
218
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
219
+ 0.8.7 (ruby-2.0.0).
220
+ </div>
221
+
222
+ </body>
223
+ </html>
@@ -0,0 +1,178 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Tag: @get
8
+
9
+ &mdash; Documentation by YARD 0.8.7
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <link rel="stylesheet" href="../../css/cucumber.css" type="text/css" charset="utf-8" />
18
+
19
+ <script type="text/javascript" charset="utf-8">
20
+ hasFrames = window.top.frames.main ? true : false;
21
+ relpath = '../../';
22
+ framesUrl = "../../frames.html#!" + escape(window.location.href);
23
+ </script>
24
+
25
+
26
+ <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
27
+
28
+ <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
29
+
30
+ <script type="text/javascript" charset="utf-8" src="../../js/cucumber.js"></script>
31
+
32
+
33
+ </head>
34
+ <body>
35
+ <div id="header">
36
+ <div id="menu">
37
+
38
+ <a href="../../_index.html">Index (g)</a> &raquo;
39
+ <span class='title'><span class='object_link'><a href="../../requirements.html" title="requirements (requirements)">requirements</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../tags.html" title="requirements::tags (featuretags)">tags</a></span></span>
40
+ &raquo;
41
+ <span class="title">get</span>
42
+
43
+
44
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
45
+ </div>
46
+
47
+ <div id="search">
48
+
49
+ <a class="full_list_link" id="feature_list_link"
50
+ href="../../feature_list.html">
51
+ Features
52
+ </a>
53
+
54
+ <a class="full_list_link" id="featuredirectories_list_link"
55
+ href="../../featuredirectories_list.html">
56
+ Features by Directory
57
+ </a>
58
+
59
+ <a class="full_list_link" id="tag_list_link"
60
+ href="../../tag_list.html">
61
+ Tags
62
+ </a>
63
+
64
+ <a class="full_list_link" id="step_list_link"
65
+ href="../../step_list.html">
66
+ Steps
67
+ </a>
68
+
69
+ <a class="full_list_link" id="stepdefinition_list_link"
70
+ href="../../stepdefinition_list.html">
71
+ Step Defs
72
+ </a>
73
+
74
+ <a class="full_list_link" id="class_list_link"
75
+ href="../../class_list.html">
76
+ Class List
77
+ </a>
78
+
79
+ <a class="full_list_link" id="method_list_link"
80
+ href="../../method_list.html">
81
+ Method List
82
+ </a>
83
+
84
+ <a class="full_list_link" id="file_list_link"
85
+ href="../../file_list.html">
86
+ File List
87
+ </a>
88
+
89
+ </div>
90
+ <div class="clear"></div>
91
+ </div>
92
+
93
+ <iframe id="search_frame"></iframe>
94
+
95
+ <div id="content"><div class="tag">
96
+ <div class="title">
97
+ <span class="pre">Tag:</span>
98
+ <span class="name">@get</span>
99
+
100
+ </div>
101
+
102
+ <div class="meta">
103
+ <div class="file">
104
+
105
+
106
+ 3 scenarios
107
+ </div>
108
+ </div>
109
+
110
+ <div style="margin-top: 20px;">&nbsp;</div>
111
+
112
+
113
+
114
+
115
+ <div id="features" style="margin-left: 40px;">
116
+ <div class="title"><span class="name">Scenarios</span></div>
117
+ </div>
118
+
119
+
120
+ <table style="margin-left: 10px; width: 100%;">
121
+ <tr>
122
+ <td valign='top' width="50%">
123
+
124
+
125
+ <ul id="alpha_C" class="alpha">
126
+ <li class="letter">C</li>
127
+ <ul>
128
+
129
+ <li>
130
+
131
+ <a href="../features/headers/header_options.html#scenario_1">
132
+ client uses an Accept header for a GET
133
+ </a>
134
+
135
+ <small>(features/headers/header_options.feature)</small>
136
+ </li>
137
+
138
+ <li>
139
+
140
+ <a href="../features/print_response.html#scenario_1">
141
+ client rest Get
142
+ </a>
143
+
144
+ <small>(features/print_response.feature)</small>
145
+ </li>
146
+
147
+ <li>
148
+
149
+ <a href="../features/rest_client.html#scenario_1">
150
+ client rest GET
151
+ </a>
152
+
153
+ <small>(features/rest_client.feature)</small>
154
+ </li>
155
+
156
+ </ul>
157
+ </ul>
158
+
159
+ </td>
160
+ </tr>
161
+ </table>
162
+
163
+
164
+
165
+
166
+
167
+
168
+ </div>
169
+ </div>
170
+
171
+ <div id="footer">
172
+ Generated on Tue Aug 6 23:42:43 2013 by
173
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
174
+ 0.8.7 (ruby-2.0.0).
175
+ </div>
176
+
177
+ </body>
178
+ </html>
@@ -0,0 +1,169 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Tag: @headers
8
+
9
+ &mdash; Documentation by YARD 0.8.7
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <link rel="stylesheet" href="../../css/cucumber.css" type="text/css" charset="utf-8" />
18
+
19
+ <script type="text/javascript" charset="utf-8">
20
+ hasFrames = window.top.frames.main ? true : false;
21
+ relpath = '../../';
22
+ framesUrl = "../../frames.html#!" + escape(window.location.href);
23
+ </script>
24
+
25
+
26
+ <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
27
+
28
+ <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
29
+
30
+ <script type="text/javascript" charset="utf-8" src="../../js/cucumber.js"></script>
31
+
32
+
33
+ </head>
34
+ <body>
35
+ <div id="header">
36
+ <div id="menu">
37
+
38
+ <a href="../../_index.html">Index (h)</a> &raquo;
39
+ <span class='title'><span class='object_link'><a href="../../requirements.html" title="requirements (requirements)">requirements</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../tags.html" title="requirements::tags (featuretags)">tags</a></span></span>
40
+ &raquo;
41
+ <span class="title">headers</span>
42
+
43
+
44
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
45
+ </div>
46
+
47
+ <div id="search">
48
+
49
+ <a class="full_list_link" id="feature_list_link"
50
+ href="../../feature_list.html">
51
+ Features
52
+ </a>
53
+
54
+ <a class="full_list_link" id="featuredirectories_list_link"
55
+ href="../../featuredirectories_list.html">
56
+ Features by Directory
57
+ </a>
58
+
59
+ <a class="full_list_link" id="tag_list_link"
60
+ href="../../tag_list.html">
61
+ Tags
62
+ </a>
63
+
64
+ <a class="full_list_link" id="step_list_link"
65
+ href="../../step_list.html">
66
+ Steps
67
+ </a>
68
+
69
+ <a class="full_list_link" id="stepdefinition_list_link"
70
+ href="../../stepdefinition_list.html">
71
+ Step Defs
72
+ </a>
73
+
74
+ <a class="full_list_link" id="class_list_link"
75
+ href="../../class_list.html">
76
+ Class List
77
+ </a>
78
+
79
+ <a class="full_list_link" id="method_list_link"
80
+ href="../../method_list.html">
81
+ Method List
82
+ </a>
83
+
84
+ <a class="full_list_link" id="file_list_link"
85
+ href="../../file_list.html">
86
+ File List
87
+ </a>
88
+
89
+ </div>
90
+ <div class="clear"></div>
91
+ </div>
92
+
93
+ <iframe id="search_frame"></iframe>
94
+
95
+ <div id="content"><div class="tag">
96
+ <div class="title">
97
+ <span class="pre">Tag:</span>
98
+ <span class="name">@headers</span>
99
+
100
+ </div>
101
+
102
+ <div class="meta">
103
+ <div class="file">
104
+
105
+
106
+ 2 scenarios
107
+ </div>
108
+ </div>
109
+
110
+ <div style="margin-top: 20px;">&nbsp;</div>
111
+
112
+
113
+
114
+
115
+ <div id="features" style="margin-left: 40px;">
116
+ <div class="title"><span class="name">Scenarios</span></div>
117
+ </div>
118
+
119
+
120
+ <table style="margin-left: 10px; width: 100%;">
121
+ <tr>
122
+ <td valign='top' width="50%">
123
+
124
+
125
+ <ul id="alpha_C" class="alpha">
126
+ <li class="letter">C</li>
127
+ <ul>
128
+
129
+ <li>
130
+
131
+ <a href="../features/headers/header_options.html#scenario_1">
132
+ client uses an Accept header for a GET
133
+ </a>
134
+
135
+ <small>(features/headers/header_options.feature)</small>
136
+ </li>
137
+
138
+ <li>
139
+
140
+ <a href="../features/headers/header_options.html#scenario_2">
141
+ client uses an Accept and a Content-Type header for a POST
142
+ </a>
143
+
144
+ <small>(features/headers/header_options.feature)</small>
145
+ </li>
146
+
147
+ </ul>
148
+ </ul>
149
+
150
+ </td>
151
+ </tr>
152
+ </table>
153
+
154
+
155
+
156
+
157
+
158
+
159
+ </div>
160
+ </div>
161
+
162
+ <div id="footer">
163
+ Generated on Tue Aug 6 23:42:43 2013 by
164
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
165
+ 0.8.7 (ruby-2.0.0).
166
+ </div>
167
+
168
+ </body>
169
+ </html>