rest_baby 1.3 → 1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +6 -0
- data/ChangeLog +8 -0
- data/Gemfile +17 -7
- data/README.md +2 -2
- data/Rakefile +14 -11
- data/doc/MockRestService.html +1 -6
- data/doc/RestBaby.html +2 -7
- data/doc/RestBaby/Client.html +1 -6
- data/doc/_index.html +1 -6
- data/doc/class_list.html +0 -4
- data/doc/feature_list.html +2 -6
- data/doc/file.README.html +20 -27
- data/doc/file_list.html +0 -4
- data/doc/index.html +20 -27
- data/doc/method_list.html +0 -4
- data/doc/requirements.html +1 -6
- data/doc/requirements/features.html +1 -6
- data/doc/requirements/features/header_options.html +3 -16
- data/doc/requirements/features/print_response.html +1 -6
- data/doc/requirements/features/rest_client.html +1 -6
- data/doc/requirements/features/url_parameter.html +1 -6
- data/doc/requirements/step_transformers.html +17 -22
- data/doc/requirements/tags.html +1 -6
- data/doc/requirements/tags/authentication.html +1 -6
- data/doc/requirements/tags/core.html +1 -6
- data/doc/requirements/tags/delete.html +1 -6
- data/doc/requirements/tags/extended.html +1 -6
- data/doc/requirements/tags/get.html +1 -6
- data/doc/requirements/tags/header.S1.html +1 -6
- data/doc/requirements/tags/header.S2.html +1 -6
- data/doc/requirements/tags/header.S3.html +1 -6
- data/doc/requirements/tags/header.S4.html +1 -6
- data/doc/requirements/tags/header.html +1 -6
- data/doc/requirements/tags/headers.html +1 -6
- data/doc/requirements/tags/parameter.S1.html +1 -6
- data/doc/requirements/tags/parameter.html +1 -6
- data/doc/requirements/tags/post.html +1 -6
- data/doc/requirements/tags/print.S1.html +1 -6
- data/doc/requirements/tags/print.S2.html +1 -6
- data/doc/requirements/tags/print.S3.html +1 -6
- data/doc/requirements/tags/print.S4.html +1 -6
- data/doc/requirements/tags/print.html +1 -6
- data/doc/requirements/tags/put.html +1 -6
- data/doc/requirements/tags/rest.S1.html +1 -6
- data/doc/requirements/tags/rest.S2.html +1 -6
- data/doc/requirements/tags/rest.S3.html +1 -6
- data/doc/requirements/tags/rest.S4.html +1 -6
- data/doc/step_list.html +0 -4
- data/doc/stepdefinition_list.html +0 -4
- data/doc/tag_list.html +0 -4
- data/doc/top-level-namespace.html +1 -6
- data/features/header_options.feature +2 -3
- data/lib/rest_baby.rb +2 -1
- data/lib/rest_baby/version.rb +1 -1
- data/rest_baby.gemspec +5 -1
- metadata +69 -9
- data/doc/requirements/features/headers.html +0 -157
- data/doc/requirements/features/headers/header_options.html +0 -1020
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e4434fba088d6a097f2be5d36e96e90227dff78
|
4
|
+
data.tar.gz: e8cf38ebd5ff70ef6a94b0661db322b0f8d8b031
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0b4fd87625544ca1a47861a1323bf36a20c311753053c843da69fe1e164c86f4af032081ba6d054d988391c542c103044d6846ab9e7829689474f9fda973d40
|
7
|
+
data.tar.gz: 72ae4238bc08f17d051f361c470cd9fff142731be56ccb9cbe462d4a40f0155b3349ae8a79beb960b813a7199d7f6323a4fe3efee5b19a027a2dac4293f6ef8c
|
data/.travis.yml
ADDED
data/ChangeLog
CHANGED
@@ -39,3 +39,11 @@
|
|
39
39
|
* added yard and yard-cucumber to automate documenation
|
40
40
|
=== Version 1.0 / 2015-07-17
|
41
41
|
=== Version 1.1 / 2015-07-17
|
42
|
+
=== Version 1.2 / 2015-07-17
|
43
|
+
=== Version 1.3 / 2015-07-17
|
44
|
+
=== Version 1.4 / 2015-12-12
|
45
|
+
* Remove double output of Body=
|
46
|
+
* Switch should to expect in cukes.
|
47
|
+
* Revise gem list to support yardoc in dev mode
|
48
|
+
* cleaned up rake file, added support for cleaning yardocs
|
49
|
+
* Add support for travis-ci
|
data/Gemfile
CHANGED
@@ -1,11 +1,21 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
gem 'cucumber'
|
4
|
-
gem 'fig_newton'
|
5
3
|
gem 'json'
|
6
4
|
gem 'nokogiri'
|
7
|
-
|
8
|
-
|
9
|
-
gem '
|
10
|
-
gem '
|
11
|
-
gem '
|
5
|
+
|
6
|
+
group :development do
|
7
|
+
gem 'bundler'
|
8
|
+
gem 'rake'
|
9
|
+
gem 'cucumber'
|
10
|
+
gem 'fig_newton'
|
11
|
+
gem 'rspec'
|
12
|
+
gem 'webmock'
|
13
|
+
gem 'rubocop'
|
14
|
+
if ENV["JRUBY"] || RUBY_PLATFORM == "java"
|
15
|
+
# Skip the yard gems for jruby
|
16
|
+
else
|
17
|
+
gem 'yard'
|
18
|
+
gem 'yard-cucumber'
|
19
|
+
gem 'redcarpet'
|
20
|
+
end
|
21
|
+
end
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# rest_baby
|
2
2
|
|
3
|
-
Small rest client
|
3
|
+
Small rest client, supports ruby-2.0.0, ruby-2.1.0, ruby-2.2.0, jruby (based 1.9). You can only updated docs in ruby, not jruby.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -22,4 +22,4 @@ Or install it yourself as:
|
|
22
22
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
23
23
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
24
24
|
4. Push to the branch (`git push origin my-new-feature`)
|
25
|
-
5. Create new Pull Request
|
25
|
+
5. Create new Pull Request
|
data/Rakefile
CHANGED
@@ -2,8 +2,16 @@ require 'bundler/gem_tasks'
|
|
2
2
|
require 'rubygems'
|
3
3
|
require 'cucumber'
|
4
4
|
require 'cucumber/rake/task'
|
5
|
-
|
6
|
-
|
5
|
+
if ENV["JRUBY"] || RUBY_PLATFORM == "java"
|
6
|
+
# Skip the yard gems for jruby
|
7
|
+
else
|
8
|
+
require 'yard'
|
9
|
+
# rake yard
|
10
|
+
YARD::Rake::YardocTask.new do |t|
|
11
|
+
t.files = ['lib/**/*.rb', 'features/**/*.feature', 'features/**/*.rb']
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
7
15
|
|
8
16
|
Cucumber::Rake::Task.new(:features) do |t|
|
9
17
|
t.profile = 'default'
|
@@ -11,13 +19,8 @@ end
|
|
11
19
|
|
12
20
|
task default: :features
|
13
21
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
Rake::Task["release"].enhance do
|
19
|
-
spec = Gem::Specification::load(Dir.glob("*.gemspec").first)
|
20
|
-
# # sh "gem inabox pkg/#{spec.name}-#{spec.version}.gem"
|
21
|
-
# # sh "gem build pkg/#{spec.name}-#{spec.version}.gem"
|
22
|
-
# sh "gem push pkg/#{spec.name}-#{spec.version}.gem"
|
22
|
+
task :clean do
|
23
|
+
`rm -rf doc`
|
24
|
+
`rm -rf .yardoc`
|
25
|
+
`git checkout doc`
|
23
26
|
end
|
data/doc/MockRestService.html
CHANGED
@@ -51,11 +51,6 @@
|
|
51
51
|
Features
|
52
52
|
</a>
|
53
53
|
|
54
|
-
<a class="full_list_link" id="featuredirectories_list_link"
|
55
|
-
href="featuredirectories_list.html">
|
56
|
-
Features by Directory
|
57
|
-
</a>
|
58
|
-
|
59
54
|
<a class="full_list_link" id="tag_list_link"
|
60
55
|
href="tag_list.html">
|
61
56
|
Tags
|
@@ -515,7 +510,7 @@
|
|
515
510
|
</div>
|
516
511
|
|
517
512
|
<div id="footer">
|
518
|
-
Generated on
|
513
|
+
Generated on Sat Dec 12 12:35:49 2015 by
|
519
514
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
520
515
|
0.8.7.6 (ruby-2.0.0).
|
521
516
|
</div>
|
data/doc/RestBaby.html
CHANGED
@@ -51,11 +51,6 @@
|
|
51
51
|
Features
|
52
52
|
</a>
|
53
53
|
|
54
|
-
<a class="full_list_link" id="featuredirectories_list_link"
|
55
|
-
href="featuredirectories_list.html">
|
56
|
-
Features by Directory
|
57
|
-
</a>
|
58
|
-
|
59
54
|
<a class="full_list_link" id="tag_list_link"
|
60
55
|
href="tag_list.html">
|
61
56
|
Tags
|
@@ -144,7 +139,7 @@
|
|
144
139
|
<dt id="VERSION-constant" class="">VERSION =
|
145
140
|
|
146
141
|
</dt>
|
147
|
-
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>1.
|
142
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>1.4</span><span class='tstring_end'>'</span></span></pre></dd>
|
148
143
|
|
149
144
|
</dl>
|
150
145
|
|
@@ -160,7 +155,7 @@
|
|
160
155
|
</div>
|
161
156
|
|
162
157
|
<div id="footer">
|
163
|
-
Generated on
|
158
|
+
Generated on Sat Dec 12 12:35:49 2015 by
|
164
159
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
165
160
|
0.8.7.6 (ruby-2.0.0).
|
166
161
|
</div>
|
data/doc/RestBaby/Client.html
CHANGED
@@ -51,11 +51,6 @@
|
|
51
51
|
Features
|
52
52
|
</a>
|
53
53
|
|
54
|
-
<a class="full_list_link" id="featuredirectories_list_link"
|
55
|
-
href="../featuredirectories_list.html">
|
56
|
-
Features by Directory
|
57
|
-
</a>
|
58
|
-
|
59
54
|
<a class="full_list_link" id="tag_list_link"
|
60
55
|
href="../tag_list.html">
|
61
56
|
Tags
|
@@ -1367,7 +1362,7 @@ Can be multiple headers separated by commas inside the brackets.</p>
|
|
1367
1362
|
</div>
|
1368
1363
|
|
1369
1364
|
<div id="footer">
|
1370
|
-
Generated on
|
1365
|
+
Generated on Sat Dec 12 12:35:49 2015 by
|
1371
1366
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1372
1367
|
0.8.7.6 (ruby-2.0.0).
|
1373
1368
|
</div>
|
data/doc/_index.html
CHANGED
@@ -44,11 +44,6 @@
|
|
44
44
|
Features
|
45
45
|
</a>
|
46
46
|
|
47
|
-
<a class="full_list_link" id="featuredirectories_list_link"
|
48
|
-
href="featuredirectories_list.html">
|
49
|
-
Features by Directory
|
50
|
-
</a>
|
51
|
-
|
52
47
|
<a class="full_list_link" id="tag_list_link"
|
53
48
|
href="tag_list.html">
|
54
49
|
Tags
|
@@ -160,7 +155,7 @@
|
|
160
155
|
</div>
|
161
156
|
|
162
157
|
<div id="footer">
|
163
|
-
Generated on
|
158
|
+
Generated on Sat Dec 12 12:35:49 2015 by
|
164
159
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
165
160
|
0.8.7.6 (ruby-2.0.0).
|
166
161
|
</div>
|
data/doc/class_list.html
CHANGED
data/doc/feature_list.html
CHANGED
@@ -37,10 +37,6 @@
|
|
37
37
|
Features
|
38
38
|
</a></span>
|
39
39
|
|
40
|
-
<span><a target="_self" href="featuredirectories_list.html">
|
41
|
-
Features by Directory
|
42
|
-
</a></span>
|
43
|
-
|
44
40
|
<span><a target="_self" href="tag_list.html">
|
45
41
|
Tags
|
46
42
|
</a></span>
|
@@ -248,7 +244,7 @@
|
|
248
244
|
client uses basic authentication
|
249
245
|
</a>
|
250
246
|
</span>
|
251
|
-
<small>features/header_options.feature:
|
247
|
+
<small>features/header_options.feature:35</small>
|
252
248
|
</li>
|
253
249
|
|
254
250
|
|
@@ -259,7 +255,7 @@
|
|
259
255
|
client uses a secure web server
|
260
256
|
</a>
|
261
257
|
</span>
|
262
|
-
<small>features/header_options.feature:
|
258
|
+
<small>features/header_options.feature:45</small>
|
263
259
|
</li>
|
264
260
|
|
265
261
|
|
data/doc/file.README.html
CHANGED
@@ -49,11 +49,6 @@
|
|
49
49
|
Features
|
50
50
|
</a>
|
51
51
|
|
52
|
-
<a class="full_list_link" id="featuredirectories_list_link"
|
53
|
-
href="featuredirectories_list.html">
|
54
|
-
Features by Directory
|
55
|
-
</a>
|
56
|
-
|
57
52
|
<a class="full_list_link" id="tag_list_link"
|
58
53
|
href="tag_list.html">
|
59
54
|
Tags
|
@@ -90,42 +85,40 @@
|
|
90
85
|
|
91
86
|
<iframe id="search_frame"></iframe>
|
92
87
|
|
93
|
-
<div id="content"><div id='filecontents'>
|
94
|
-
<h1 id="label-rest_baby">rest_baby</h1>
|
88
|
+
<div id="content"><div id='filecontents'><h1>rest_baby</h1>
|
95
89
|
|
96
|
-
<p>Small rest client
|
90
|
+
<p>Small rest client, supports ruby-2.0.0, ruby-2.1.0, ruby-2.2.0, jruby (based 1.9). You can only updated docs in ruby, not jruby.</p>
|
97
91
|
|
98
|
-
<h2
|
92
|
+
<h2>Installation</h2>
|
99
93
|
|
100
94
|
<p>Add this line to your application's Gemfile:</p>
|
101
95
|
|
102
|
-
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_gem'>gem</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>rest_baby</span><span class='tstring_end'>'</span></span
|
96
|
+
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_gem'>gem</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>rest_baby</span><span class='tstring_end'>'</span></span>
|
97
|
+
</code></pre>
|
103
98
|
|
104
99
|
<p>And then execute:</p>
|
105
100
|
|
106
|
-
<pre class="code ruby"><code class="ruby">$ bundle
|
101
|
+
<pre class="code ruby"><code class="ruby">$ bundle
|
102
|
+
</code></pre>
|
107
103
|
|
108
104
|
<p>Or install it yourself as:</p>
|
109
105
|
|
110
|
-
<pre class="code ruby"><code class="ruby">$ gem install rest_baby
|
111
|
-
|
112
|
-
|
113
|
-
<
|
114
|
-
|
115
|
-
|
116
|
-
<
|
117
|
-
</li
|
118
|
-
<
|
119
|
-
feature
|
120
|
-
</li
|
121
|
-
|
122
|
-
</li><li>
|
123
|
-
<p>Create new Pull Request</p>
|
124
|
-
</li></ol>
|
106
|
+
<pre class="code ruby"><code class="ruby">$ gem install rest_baby
|
107
|
+
</code></pre>
|
108
|
+
|
109
|
+
<h2>Contributing</h2>
|
110
|
+
|
111
|
+
<ol>
|
112
|
+
<li>Fork it</li>
|
113
|
+
<li>Create your feature branch (<code>git checkout -b my-new-feature</code>)</li>
|
114
|
+
<li>Commit your changes (<code>git commit -am 'Add some feature'</code>)</li>
|
115
|
+
<li>Push to the branch (<code>git push origin my-new-feature</code>)</li>
|
116
|
+
<li>Create new Pull Request</li>
|
117
|
+
</ol>
|
125
118
|
</div></div>
|
126
119
|
|
127
120
|
<div id="footer">
|
128
|
-
Generated on
|
121
|
+
Generated on Sat Dec 12 12:35:49 2015 by
|
129
122
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
130
123
|
0.8.7.6 (ruby-2.0.0).
|
131
124
|
</div>
|
data/doc/file_list.html
CHANGED
data/doc/index.html
CHANGED
@@ -49,11 +49,6 @@
|
|
49
49
|
Features
|
50
50
|
</a>
|
51
51
|
|
52
|
-
<a class="full_list_link" id="featuredirectories_list_link"
|
53
|
-
href="featuredirectories_list.html">
|
54
|
-
Features by Directory
|
55
|
-
</a>
|
56
|
-
|
57
52
|
<a class="full_list_link" id="tag_list_link"
|
58
53
|
href="tag_list.html">
|
59
54
|
Tags
|
@@ -90,42 +85,40 @@
|
|
90
85
|
|
91
86
|
<iframe id="search_frame"></iframe>
|
92
87
|
|
93
|
-
<div id="content"><div id='filecontents'>
|
94
|
-
<h1 id="label-rest_baby">rest_baby</h1>
|
88
|
+
<div id="content"><div id='filecontents'><h1>rest_baby</h1>
|
95
89
|
|
96
|
-
<p>Small rest client
|
90
|
+
<p>Small rest client, supports ruby-2.0.0, ruby-2.1.0, ruby-2.2.0, jruby (based 1.9). You can only updated docs in ruby, not jruby.</p>
|
97
91
|
|
98
|
-
<h2
|
92
|
+
<h2>Installation</h2>
|
99
93
|
|
100
94
|
<p>Add this line to your application's Gemfile:</p>
|
101
95
|
|
102
|
-
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_gem'>gem</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>rest_baby</span><span class='tstring_end'>'</span></span
|
96
|
+
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_gem'>gem</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>rest_baby</span><span class='tstring_end'>'</span></span>
|
97
|
+
</code></pre>
|
103
98
|
|
104
99
|
<p>And then execute:</p>
|
105
100
|
|
106
|
-
<pre class="code ruby"><code class="ruby">$ bundle
|
101
|
+
<pre class="code ruby"><code class="ruby">$ bundle
|
102
|
+
</code></pre>
|
107
103
|
|
108
104
|
<p>Or install it yourself as:</p>
|
109
105
|
|
110
|
-
<pre class="code ruby"><code class="ruby">$ gem install rest_baby
|
111
|
-
|
112
|
-
|
113
|
-
<
|
114
|
-
|
115
|
-
|
116
|
-
<
|
117
|
-
</li
|
118
|
-
<
|
119
|
-
feature
|
120
|
-
</li
|
121
|
-
|
122
|
-
</li><li>
|
123
|
-
<p>Create new Pull Request</p>
|
124
|
-
</li></ol>
|
106
|
+
<pre class="code ruby"><code class="ruby">$ gem install rest_baby
|
107
|
+
</code></pre>
|
108
|
+
|
109
|
+
<h2>Contributing</h2>
|
110
|
+
|
111
|
+
<ol>
|
112
|
+
<li>Fork it</li>
|
113
|
+
<li>Create your feature branch (<code>git checkout -b my-new-feature</code>)</li>
|
114
|
+
<li>Commit your changes (<code>git commit -am 'Add some feature'</code>)</li>
|
115
|
+
<li>Push to the branch (<code>git push origin my-new-feature</code>)</li>
|
116
|
+
<li>Create new Pull Request</li>
|
117
|
+
</ol>
|
125
118
|
</div></div>
|
126
119
|
|
127
120
|
<div id="footer">
|
128
|
-
Generated on
|
121
|
+
Generated on Sat Dec 12 12:35:49 2015 by
|
129
122
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
130
123
|
0.8.7.6 (ruby-2.0.0).
|
131
124
|
</div>
|
data/doc/method_list.html
CHANGED
data/doc/requirements.html
CHANGED
@@ -51,11 +51,6 @@
|
|
51
51
|
Features
|
52
52
|
</a>
|
53
53
|
|
54
|
-
<a class="full_list_link" id="featuredirectories_list_link"
|
55
|
-
href="featuredirectories_list.html">
|
56
|
-
Features by Directory
|
57
|
-
</a>
|
58
|
-
|
59
54
|
<a class="full_list_link" id="tag_list_link"
|
60
55
|
href="tag_list.html">
|
61
56
|
Tags
|
@@ -209,7 +204,7 @@
|
|
209
204
|
</div>
|
210
205
|
|
211
206
|
<div id="footer">
|
212
|
-
Generated on
|
207
|
+
Generated on Sat Dec 12 12:35:49 2015 by
|
213
208
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
214
209
|
0.8.7.6 (ruby-2.0.0).
|
215
210
|
</div>
|