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,179 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html>
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+
7
+ <link rel="stylesheet" href="css/full_list.css" type="text/css" media="screen" charset="utf-8" />
8
+
9
+ <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
10
+
11
+
12
+
13
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
14
+
15
+ <script type="text/javascript" charset="utf-8" src="js/full_list.js"></script>
16
+
17
+
18
+ <title>Features by Directory</title>
19
+ <base id="base_target" target="_parent" />
20
+ </head>
21
+ <body>
22
+ <script type="text/javascript" charset="utf-8">
23
+ if (window.top.frames.main) {
24
+ document.getElementById('base_target').target = 'main';
25
+ document.body.className = 'frames';
26
+ }
27
+ </script>
28
+ <div id="content">
29
+ <h1 id="full_list_header">Features by Directory</h1>
30
+ <div id="nav">
31
+
32
+ <span><a target="_self" href="feature_list.html">
33
+ Features
34
+ </a></span>
35
+
36
+ <span><a target="_self" href="featuredirectories_list.html">
37
+ Features by Directory
38
+ </a></span>
39
+
40
+ <span><a target="_self" href="tag_list.html">
41
+ Tags
42
+ </a></span>
43
+
44
+ <span><a target="_self" href="step_list.html">
45
+ Steps
46
+ </a></span>
47
+
48
+ <span><a target="_self" href="stepdefinition_list.html">
49
+ Step Definitions
50
+ </a></span>
51
+
52
+ <span><a target="_self" href="class_list.html">
53
+ Classes
54
+ </a></span>
55
+
56
+ <span><a target="_self" href="method_list.html">
57
+ Methods
58
+ </a></span>
59
+
60
+ <span><a target="_self" href="file_list.html">
61
+ Files
62
+ </a></span>
63
+
64
+ </div>
65
+ <div id="search">Search: <input type="text" /></div>
66
+
67
+ <ul id="full_list" class="class">
68
+
69
+
70
+
71
+ <li class="r2">
72
+ <a class='toggle'></a>
73
+ <span class='object_link'><a href="requirements/features.html" title="requirements::features (featuredirectory)">features</a></span>
74
+ <small>features</small>
75
+ </li>
76
+
77
+
78
+
79
+
80
+
81
+ <ul>
82
+
83
+
84
+ <li class="r1">
85
+ <span class='object_link'><a href="requirements/features/rest_client.html" title="requirements::features::rest_client (feature)">Create a basic rest client that can get, put, post, and delete</a></span>
86
+ <!--
87
+ <span class='object_link'>
88
+ <a href="requirements/features/rest_client.html#scenario_0"
89
+ title="Create a basic rest client that can get, put, post, and delete">
90
+ Create a basic rest client that can get, put, post, and delete
91
+ </a>
92
+ </span>
93
+ -->
94
+ <small>features/rest_client.feature:1</small>
95
+ </li>
96
+
97
+
98
+
99
+
100
+
101
+ <li class="r2">
102
+ <span class='object_link'><a href="requirements/features/print_response.html" title="requirements::features::print_response (feature)">Create a basic rest client that can get, put, post, and delete</a></span>
103
+ <!--
104
+ <span class='object_link'>
105
+ <a href="requirements/features/print_response.html#scenario_1"
106
+ title="Create a basic rest client that can get, put, post, and delete">
107
+ Create a basic rest client that can get, put, post, and delete
108
+ </a>
109
+ </span>
110
+ -->
111
+ <small>features/print_response.feature:1</small>
112
+ </li>
113
+
114
+
115
+
116
+
117
+
118
+
119
+ <li class="r1">
120
+ <a class='toggle'></a>
121
+ <span class='object_link'><a href="requirements/features/headers.html" title="requirements::features::headers (featuredirectory)">Headers</a></span>
122
+ <small>headers</small>
123
+ </li>
124
+
125
+
126
+
127
+
128
+ <ul>
129
+
130
+
131
+ <li class="r1">
132
+ <span class='object_link'><a href="requirements/features/headers/header_options.html" title="requirements::features::headers::header_options (feature)">Create a basic rest client that can get, put, post, and delete</a></span>
133
+ <!--
134
+ <span class='object_link'>
135
+ <a href="requirements/features/headers/header_options.html#scenario_0"
136
+ title="Create a basic rest client that can get, put, post, and delete">
137
+ Create a basic rest client that can get, put, post, and delete
138
+ </a>
139
+ </span>
140
+ -->
141
+ <small>features/headers/header_options.feature:1</small>
142
+ </li>
143
+
144
+
145
+
146
+
147
+ </ul>
148
+
149
+
150
+ <!-- YARD::CodeObjects::Cucumber::FeatureDirectory -->
151
+
152
+ <!--
153
+
154
+ <ul>
155
+
156
+ </ul>
157
+
158
+ -->
159
+
160
+
161
+
162
+ </ul>
163
+
164
+
165
+ <!-- YARD::CodeObjects::Cucumber::FeatureDirectory -->
166
+
167
+ <!--
168
+
169
+ <ul>
170
+
171
+ </ul>
172
+
173
+ -->
174
+
175
+
176
+ </ul>
177
+ </div>
178
+ </body>
179
+ </html>
@@ -0,0 +1,134 @@
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
+ File: README
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</a> &raquo;
39
+ <span class="title">File: README</span>
40
+
41
+
42
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
43
+ </div>
44
+
45
+ <div id="search">
46
+
47
+ <a class="full_list_link" id="feature_list_link"
48
+ href="feature_list.html">
49
+ Features
50
+ </a>
51
+
52
+ <a class="full_list_link" id="featuredirectories_list_link"
53
+ href="featuredirectories_list.html">
54
+ Features by Directory
55
+ </a>
56
+
57
+ <a class="full_list_link" id="tag_list_link"
58
+ href="tag_list.html">
59
+ Tags
60
+ </a>
61
+
62
+ <a class="full_list_link" id="step_list_link"
63
+ href="step_list.html">
64
+ Steps
65
+ </a>
66
+
67
+ <a class="full_list_link" id="stepdefinition_list_link"
68
+ href="stepdefinition_list.html">
69
+ Step Defs
70
+ </a>
71
+
72
+ <a class="full_list_link" id="class_list_link"
73
+ href="class_list.html">
74
+ Class List
75
+ </a>
76
+
77
+ <a class="full_list_link" id="method_list_link"
78
+ href="method_list.html">
79
+ Method List
80
+ </a>
81
+
82
+ <a class="full_list_link" id="file_list_link"
83
+ href="file_list.html">
84
+ File List
85
+ </a>
86
+
87
+ </div>
88
+ <div class="clear"></div>
89
+ </div>
90
+
91
+ <iframe id="search_frame"></iframe>
92
+
93
+ <div id="content"><div id='filecontents'>
94
+ <h1 id="label-rest_baby">rest_baby</h1>
95
+
96
+ <p>Small rest client</p>
97
+
98
+ <h2 id="label-Installation">Installation</h2>
99
+
100
+ <p>Add this line to your application&#39;s Gemfile:</p>
101
+
102
+ <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_gem'>gem</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>rest_baby</span><span class='tstring_end'>&#39;</span></span></code></pre>
103
+
104
+ <p>And then execute:</p>
105
+
106
+ <pre class="code ruby"><code class="ruby"></code></pre>
107
+
108
+ <p>Or install it yourself as:</p>
109
+
110
+ <pre class="code ruby"><code class="ruby"></code></pre>
111
+
112
+ <h2 id="label-Contributing">Contributing</h2>
113
+ <ol><li>
114
+ <p>Fork it</p>
115
+ </li><li>
116
+ <p>Create your feature branch (<code>git checkout -b my-new-feature</code>)</p>
117
+ </li><li>
118
+ <p>Commit your changes (<code>git commit -am &#39;Add some
119
+ feature&#39;</code>)</p>
120
+ </li><li>
121
+ <p>Push to the branch (<code>git push origin my-new-feature</code>)</p>
122
+ </li><li>
123
+ <p>Create new Pull Request</p>
124
+ </li></ol>
125
+ </div></div>
126
+
127
+ <div id="footer">
128
+ Generated on Tue Aug 6 23:42:42 2013 by
129
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
130
+ 0.8.7 (ruby-2.0.0).
131
+ </div>
132
+
133
+ </body>
134
+ </html>
@@ -0,0 +1,76 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html>
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+
7
+ <link rel="stylesheet" href="css/full_list.css" type="text/css" media="screen" charset="utf-8" />
8
+
9
+ <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
10
+
11
+
12
+
13
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
14
+
15
+ <script type="text/javascript" charset="utf-8" src="js/full_list.js"></script>
16
+
17
+
18
+ <title>File List</title>
19
+ <base id="base_target" target="_parent" />
20
+ </head>
21
+ <body>
22
+ <script type="text/javascript" charset="utf-8">
23
+ if (window.top.frames.main) {
24
+ document.getElementById('base_target').target = 'main';
25
+ document.body.className = 'frames';
26
+ }
27
+ </script>
28
+ <div id="content">
29
+ <h1 id="full_list_header">File List</h1>
30
+ <div id="nav">
31
+
32
+ <span><a target="_self" href="feature_list.html">
33
+ Features
34
+ </a></span>
35
+
36
+ <span><a target="_self" href="featuredirectories_list.html">
37
+ Features by Directory
38
+ </a></span>
39
+
40
+ <span><a target="_self" href="tag_list.html">
41
+ Tags
42
+ </a></span>
43
+
44
+ <span><a target="_self" href="step_list.html">
45
+ Steps
46
+ </a></span>
47
+
48
+ <span><a target="_self" href="stepdefinition_list.html">
49
+ Step Definitions
50
+ </a></span>
51
+
52
+ <span><a target="_self" href="class_list.html">
53
+ Classes
54
+ </a></span>
55
+
56
+ <span><a target="_self" href="method_list.html">
57
+ Methods
58
+ </a></span>
59
+
60
+ <span><a target="_self" href="file_list.html">
61
+ Files
62
+ </a></span>
63
+
64
+ </div>
65
+ <div id="search">Search: <input type="text" /></div>
66
+
67
+ <ul id="full_list" class="class">
68
+
69
+
70
+ <li class="r1"><span class="object_link"><a href="index.html" title="README">README</a></a></li>
71
+
72
+
73
+ </ul>
74
+ </div>
75
+ </body>
76
+ </html>
data/doc/frames.html ADDED
@@ -0,0 +1,28 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
3
+
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
7
+ <title>Documentation by YARD 0.8.7</title>
8
+ </head>
9
+ <script type="text/javascript" charset="utf-8">
10
+ window.onload = function() {
11
+ var match = window.location.hash.match(/^#!(.+)/);
12
+ var name = 'index.html';
13
+ if (match) {
14
+ name = unescape(match[1]);
15
+ }
16
+ document.writeln('<frameset cols="20%,*">' +
17
+ '<frame name="list" src="class_list.html" />' +
18
+ '<frame name="main" src="' + name + '" />' +
19
+ '</frameset>');
20
+ }
21
+ </script>
22
+ <noscript>
23
+ <frameset cols="20%,*">
24
+ <frame name="list" src="class_list.html" />
25
+ <frame name="main" src="index.html" />
26
+ </frameset>
27
+ </noscript>
28
+ </html>
data/doc/index.html ADDED
@@ -0,0 +1,134 @@
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
+ File: README
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</a> &raquo;
39
+ <span class="title">File: README</span>
40
+
41
+
42
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
43
+ </div>
44
+
45
+ <div id="search">
46
+
47
+ <a class="full_list_link" id="feature_list_link"
48
+ href="feature_list.html">
49
+ Features
50
+ </a>
51
+
52
+ <a class="full_list_link" id="featuredirectories_list_link"
53
+ href="featuredirectories_list.html">
54
+ Features by Directory
55
+ </a>
56
+
57
+ <a class="full_list_link" id="tag_list_link"
58
+ href="tag_list.html">
59
+ Tags
60
+ </a>
61
+
62
+ <a class="full_list_link" id="step_list_link"
63
+ href="step_list.html">
64
+ Steps
65
+ </a>
66
+
67
+ <a class="full_list_link" id="stepdefinition_list_link"
68
+ href="stepdefinition_list.html">
69
+ Step Defs
70
+ </a>
71
+
72
+ <a class="full_list_link" id="class_list_link"
73
+ href="class_list.html">
74
+ Class List
75
+ </a>
76
+
77
+ <a class="full_list_link" id="method_list_link"
78
+ href="method_list.html">
79
+ Method List
80
+ </a>
81
+
82
+ <a class="full_list_link" id="file_list_link"
83
+ href="file_list.html">
84
+ File List
85
+ </a>
86
+
87
+ </div>
88
+ <div class="clear"></div>
89
+ </div>
90
+
91
+ <iframe id="search_frame"></iframe>
92
+
93
+ <div id="content"><div id='filecontents'>
94
+ <h1 id="label-rest_baby">rest_baby</h1>
95
+
96
+ <p>Small rest client</p>
97
+
98
+ <h2 id="label-Installation">Installation</h2>
99
+
100
+ <p>Add this line to your application&#39;s Gemfile:</p>
101
+
102
+ <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_gem'>gem</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>rest_baby</span><span class='tstring_end'>&#39;</span></span></code></pre>
103
+
104
+ <p>And then execute:</p>
105
+
106
+ <pre class="code ruby"><code class="ruby"></code></pre>
107
+
108
+ <p>Or install it yourself as:</p>
109
+
110
+ <pre class="code ruby"><code class="ruby"></code></pre>
111
+
112
+ <h2 id="label-Contributing">Contributing</h2>
113
+ <ol><li>
114
+ <p>Fork it</p>
115
+ </li><li>
116
+ <p>Create your feature branch (<code>git checkout -b my-new-feature</code>)</p>
117
+ </li><li>
118
+ <p>Commit your changes (<code>git commit -am &#39;Add some
119
+ feature&#39;</code>)</p>
120
+ </li><li>
121
+ <p>Push to the branch (<code>git push origin my-new-feature</code>)</p>
122
+ </li><li>
123
+ <p>Create new Pull Request</p>
124
+ </li></ol>
125
+ </div></div>
126
+
127
+ <div id="footer">
128
+ Generated on Tue Aug 6 23:42:42 2013 by
129
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
130
+ 0.8.7 (ruby-2.0.0).
131
+ </div>
132
+
133
+ </body>
134
+ </html>