rest_baby 1.3 → 1.4

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 (59) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +6 -0
  3. data/ChangeLog +8 -0
  4. data/Gemfile +17 -7
  5. data/README.md +2 -2
  6. data/Rakefile +14 -11
  7. data/doc/MockRestService.html +1 -6
  8. data/doc/RestBaby.html +2 -7
  9. data/doc/RestBaby/Client.html +1 -6
  10. data/doc/_index.html +1 -6
  11. data/doc/class_list.html +0 -4
  12. data/doc/feature_list.html +2 -6
  13. data/doc/file.README.html +20 -27
  14. data/doc/file_list.html +0 -4
  15. data/doc/index.html +20 -27
  16. data/doc/method_list.html +0 -4
  17. data/doc/requirements.html +1 -6
  18. data/doc/requirements/features.html +1 -6
  19. data/doc/requirements/features/header_options.html +3 -16
  20. data/doc/requirements/features/print_response.html +1 -6
  21. data/doc/requirements/features/rest_client.html +1 -6
  22. data/doc/requirements/features/url_parameter.html +1 -6
  23. data/doc/requirements/step_transformers.html +17 -22
  24. data/doc/requirements/tags.html +1 -6
  25. data/doc/requirements/tags/authentication.html +1 -6
  26. data/doc/requirements/tags/core.html +1 -6
  27. data/doc/requirements/tags/delete.html +1 -6
  28. data/doc/requirements/tags/extended.html +1 -6
  29. data/doc/requirements/tags/get.html +1 -6
  30. data/doc/requirements/tags/header.S1.html +1 -6
  31. data/doc/requirements/tags/header.S2.html +1 -6
  32. data/doc/requirements/tags/header.S3.html +1 -6
  33. data/doc/requirements/tags/header.S4.html +1 -6
  34. data/doc/requirements/tags/header.html +1 -6
  35. data/doc/requirements/tags/headers.html +1 -6
  36. data/doc/requirements/tags/parameter.S1.html +1 -6
  37. data/doc/requirements/tags/parameter.html +1 -6
  38. data/doc/requirements/tags/post.html +1 -6
  39. data/doc/requirements/tags/print.S1.html +1 -6
  40. data/doc/requirements/tags/print.S2.html +1 -6
  41. data/doc/requirements/tags/print.S3.html +1 -6
  42. data/doc/requirements/tags/print.S4.html +1 -6
  43. data/doc/requirements/tags/print.html +1 -6
  44. data/doc/requirements/tags/put.html +1 -6
  45. data/doc/requirements/tags/rest.S1.html +1 -6
  46. data/doc/requirements/tags/rest.S2.html +1 -6
  47. data/doc/requirements/tags/rest.S3.html +1 -6
  48. data/doc/requirements/tags/rest.S4.html +1 -6
  49. data/doc/step_list.html +0 -4
  50. data/doc/stepdefinition_list.html +0 -4
  51. data/doc/tag_list.html +0 -4
  52. data/doc/top-level-namespace.html +1 -6
  53. data/features/header_options.feature +2 -3
  54. data/lib/rest_baby.rb +2 -1
  55. data/lib/rest_baby/version.rb +1 -1
  56. data/rest_baby.gemspec +5 -1
  57. metadata +69 -9
  58. data/doc/requirements/features/headers.html +0 -157
  59. 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: b474ba673e5596d838572aa1a6bfcee38e5fbf58
4
- data.tar.gz: 723576366b0c03c0e8058d2226ffb8e64c48143a
3
+ metadata.gz: 6e4434fba088d6a097f2be5d36e96e90227dff78
4
+ data.tar.gz: e8cf38ebd5ff70ef6a94b0661db322b0f8d8b031
5
5
  SHA512:
6
- metadata.gz: 2288952b641aa2182dbbba2f5e9cd01b6018dadfded0087b4776895c7414007a4024132fb86c02a56721164b82f85d7f52383017b803f9eb320a7375010f3033
7
- data.tar.gz: 20336cc529e658f99cc565f1de2f178c8f40dca55dc3ac9d428d35d5a21b7de45179c214d75242dc256c9642e6ab2db39d0e2777a2ee08a69d53b83e918d2cf8
6
+ metadata.gz: d0b4fd87625544ca1a47861a1323bf36a20c311753053c843da69fe1e164c86f4af032081ba6d054d988391c542c103044d6846ab9e7829689474f9fda973d40
7
+ data.tar.gz: 72ae4238bc08f17d051f361c470cd9fff142731be56ccb9cbe462d4a40f0155b3349ae8a79beb960b813a7199d7f6323a4fe3efee5b19a027a2dac4293f6ef8c
data/.travis.yml ADDED
@@ -0,0 +1,6 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.0.0
4
+ - 2.1.0
5
+ - 2.2.0
6
+ - jruby-19mode # JRuby in 1.9 mode
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
- gem 'rspec'
8
- gem 'webmock'
9
- gem 'rubocop'
10
- gem 'yard'
11
- gem 'yard-cucumber'
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
- require 'yard'
6
- require 'yard/rake/yardoc_task'
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
- YARD::Rake::YardocTask.new do |t|
15
- t.files = ['features/**/*.feature', 'features/**/*.rb']
16
- end
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
@@ -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 Fri Jul 17 23:52:38 2015 by
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'>&#39;</span><span class='tstring_content'>1.0</span><span class='tstring_end'>&#39;</span></span></pre></dd>
142
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>1.4</span><span class='tstring_end'>&#39;</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 Fri Jul 17 23:52:38 2015 by
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>
@@ -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 Fri Jul 17 23:52:38 2015 by
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 Fri Jul 17 23:52:38 2015 by
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
@@ -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>
@@ -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:36</small>
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:46</small>
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</p>
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 id="label-Installation">Installation</h2>
92
+ <h2>Installation</h2>
99
93
 
100
94
  <p>Add this line to your application&#39;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'>&#39;</span><span class='tstring_content'>rest_baby</span><span class='tstring_end'>&#39;</span></span></code></pre>
96
+ <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>
97
+ </code></pre>
103
98
 
104
99
  <p>And then execute:</p>
105
100
 
106
- <pre class="code ruby"><code class="ruby">$ bundle</code></pre>
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</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>
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 &#39;Add some feature&#39;</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 Fri Jul 17 23:52:38 2015 by
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
@@ -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>
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</p>
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 id="label-Installation">Installation</h2>
92
+ <h2>Installation</h2>
99
93
 
100
94
  <p>Add this line to your application&#39;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'>&#39;</span><span class='tstring_content'>rest_baby</span><span class='tstring_end'>&#39;</span></span></code></pre>
96
+ <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>
97
+ </code></pre>
103
98
 
104
99
  <p>And then execute:</p>
105
100
 
106
- <pre class="code ruby"><code class="ruby">$ bundle</code></pre>
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</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>
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 &#39;Add some feature&#39;</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 Fri Jul 17 23:52:38 2015 by
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
@@ -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>
@@ -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 Fri Jul 17 23:52:38 2015 by
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>