rest_baby 1.3 → 1.4

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -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
@@ -151,7 +146,7 @@
151
146
  </div>
152
147
 
153
148
  <div id="footer">
154
- Generated on Fri Jul 17 23:52:38 2015 by
149
+ Generated on Sat Dec 12 12:35:49 2015 by
155
150
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
156
151
  0.8.7.6 (ruby-2.0.0).
157
152
  </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
@@ -151,7 +146,7 @@
151
146
  </div>
152
147
 
153
148
  <div id="footer">
154
- Generated on Fri Jul 17 23:52:38 2015 by
149
+ Generated on Sat Dec 12 12:35:49 2015 by
155
150
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
156
151
  0.8.7.6 (ruby-2.0.0).
157
152
  </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
@@ -151,7 +146,7 @@
151
146
  </div>
152
147
 
153
148
  <div id="footer">
154
- Generated on Fri Jul 17 23:52:38 2015 by
149
+ Generated on Sat Dec 12 12:35:49 2015 by
155
150
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
156
151
  0.8.7.6 (ruby-2.0.0).
157
152
  </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
@@ -151,7 +146,7 @@
151
146
  </div>
152
147
 
153
148
  <div id="footer">
154
- Generated on Fri Jul 17 23:52:38 2015 by
149
+ Generated on Sat Dec 12 12:35:49 2015 by
155
150
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
156
151
  0.8.7.6 (ruby-2.0.0).
157
152
  </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
@@ -151,7 +146,7 @@
151
146
  </div>
152
147
 
153
148
  <div id="footer">
154
- Generated on Fri Jul 17 23:52:38 2015 by
149
+ Generated on Sat Dec 12 12:35:49 2015 by
155
150
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
156
151
  0.8.7.6 (ruby-2.0.0).
157
152
  </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
@@ -187,7 +182,7 @@
187
182
  </div>
188
183
 
189
184
  <div id="footer">
190
- Generated on Fri Jul 17 23:52:38 2015 by
185
+ Generated on Sat Dec 12 12:35:49 2015 by
191
186
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
192
187
  0.8.7.6 (ruby-2.0.0).
193
188
  </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
@@ -151,7 +146,7 @@
151
146
  </div>
152
147
 
153
148
  <div id="footer">
154
- Generated on Fri Jul 17 23:52:38 2015 by
149
+ Generated on Sat Dec 12 12:35:49 2015 by
155
150
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
156
151
  0.8.7.6 (ruby-2.0.0).
157
152
  </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
@@ -151,7 +146,7 @@
151
146
  </div>
152
147
 
153
148
  <div id="footer">
154
- Generated on Fri Jul 17 23:52:38 2015 by
149
+ Generated on Sat Dec 12 12:35:49 2015 by
155
150
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
156
151
  0.8.7.6 (ruby-2.0.0).
157
152
  </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
@@ -151,7 +146,7 @@
151
146
  </div>
152
147
 
153
148
  <div id="footer">
154
- Generated on Fri Jul 17 23:52:38 2015 by
149
+ Generated on Sat Dec 12 12:35:49 2015 by
155
150
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
156
151
  0.8.7.6 (ruby-2.0.0).
157
152
  </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
@@ -151,7 +146,7 @@
151
146
  </div>
152
147
 
153
148
  <div id="footer">
154
- Generated on Fri Jul 17 23:52:38 2015 by
149
+ Generated on Sat Dec 12 12:35:49 2015 by
155
150
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
156
151
  0.8.7.6 (ruby-2.0.0).
157
152
  </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
@@ -178,7 +173,7 @@
178
173
  </div>
179
174
 
180
175
  <div id="footer">
181
- Generated on Fri Jul 17 23:52:38 2015 by
176
+ Generated on Sat Dec 12 12:35:49 2015 by
182
177
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
183
178
  0.8.7.6 (ruby-2.0.0).
184
179
  </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
@@ -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
@@ -151,7 +146,7 @@
151
146
  </div>
152
147
 
153
148
  <div id="footer">
154
- Generated on Fri Jul 17 23:52:38 2015 by
149
+ Generated on Sat Dec 12 12:35:49 2015 by
155
150
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
156
151
  0.8.7.6 (ruby-2.0.0).
157
152
  </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
@@ -151,7 +146,7 @@
151
146
  </div>
152
147
 
153
148
  <div id="footer">
154
- Generated on Fri Jul 17 23:52:38 2015 by
149
+ Generated on Sat Dec 12 12:35:49 2015 by
155
150
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
156
151
  0.8.7.6 (ruby-2.0.0).
157
152
  </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
@@ -151,7 +146,7 @@
151
146
  </div>
152
147
 
153
148
  <div id="footer">
154
- Generated on Fri Jul 17 23:52:38 2015 by
149
+ Generated on Sat Dec 12 12:35:49 2015 by
155
150
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
156
151
  0.8.7.6 (ruby-2.0.0).
157
152
  </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
@@ -151,7 +146,7 @@
151
146
  </div>
152
147
 
153
148
  <div id="footer">
154
- Generated on Fri Jul 17 23:52:38 2015 by
149
+ Generated on Sat Dec 12 12:35:49 2015 by
155
150
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
156
151
  0.8.7.6 (ruby-2.0.0).
157
152
  </div>
data/doc/step_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>
data/doc/tag_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
@@ -301,7 +296,7 @@
301
296
  </div>
302
297
 
303
298
  <div id="footer">
304
- Generated on Fri Jul 17 23:52:38 2015 by
299
+ Generated on Sat Dec 12 12:35:49 2015 by
305
300
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
306
301
  0.8.7.6 (ruby-2.0.0).
307
302
  </div>
@@ -7,7 +7,7 @@ Scenario: client uses an Accept header for a GET
7
7
  And I have "GET" service for "/test" with the following headers
8
8
  | Accept | application/json |
9
9
  And I am a rest client
10
- When I have the following header
10
+ When I have the following header
11
11
  | Accept | application/json |
12
12
  And I "GET" from the web service
13
13
  Then I receive the expected message
@@ -19,10 +19,9 @@ Scenario: client uses an Accept and a Content-Type header for a POST
19
19
  And I have "POST" service for "/test" with the following headers
20
20
  | Content-Type | application/json |
21
21
  | Accept | application/json |
22
- | Accept-Encoding | gzip;q=1.0,deflate;q=0.6,identity;q=0.3 |
23
22
  | User-Agent | Ruby |
24
23
  And I am a rest client
25
- When I have the following header
24
+ When I have the following header
26
25
  | Content-Type | application/json |
27
26
  | Accept | application/json |
28
27
  And I "POST" to the web service with the following
data/lib/rest_baby.rb CHANGED
@@ -146,7 +146,8 @@ module RestBaby
146
146
  "< CODE = #{response.code}\n"\
147
147
  "< MESSAGE = #{response.message}\n"\
148
148
  "#{header_text(response, ' <')}\n"\
149
- "< BODY =\n#{body_text(response['Content-Type'], response.body)}"
149
+ "< BODY =\n"\
150
+ "#{body_text(response['Content-Type'], response.body)}"
150
151
  end
151
152
 
152
153
  def header_text(message, pointer)
@@ -1,4 +1,4 @@
1
1
  # Identify the version
2
2
  module RestBaby
3
- VERSION = '1.3'
3
+ VERSION = '1.4'
4
4
  end
data/rest_baby.gemspec CHANGED
@@ -11,6 +11,7 @@ Gem::Specification.new do |spec|
11
11
  spec.description = 'Rest client'
12
12
  spec.summary = 'Small rest client developed to testing rest services.'
13
13
  spec.homepage = 'https://github.com/dmcnulla/rest_baby'
14
+ spec.metadata = { 'ci' => 'https://travis-ci.org/dmcnulla/rest_baby' }
14
15
  spec.license = 'MIT'
15
16
 
16
17
  spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
@@ -22,8 +23,11 @@ Gem::Specification.new do |spec|
22
23
  spec.add_dependency 'json', '~> 1.8', '>= 1.8.0'
23
24
  spec.add_development_dependency 'bundler', '~> 1.3'
24
25
  spec.add_development_dependency 'rake', '~> 0'
25
- spec.add_development_dependency 'cucumber', '~> 1.3', '>= 1.3.5'
26
+ spec.add_development_dependency 'cucumber', '~> 2.1', '>= 2.1.0'
26
27
  spec.add_development_dependency 'fig_newton', '~> 0.9'
27
28
  spec.add_development_dependency 'rspec', '~> 2.14', '>= 2.14.1'
28
29
  spec.add_development_dependency 'webmock', '~> 1.13', '>= 1.13.0'
30
+ spec.add_development_dependency 'yard', '~> 0.8', '>= 0.8.7.6'
31
+ spec.add_development_dependency 'yard-cucumber', '~> 2.3', '>= 2.3.2'
32
+ spec.add_development_dependency 'redcarpet', '~> 3.3', '>= 3.3.0'
29
33
  end