jdoc 0.3.4 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0fb60bad31d711fac30670a1abc396babad23ed7
4
- data.tar.gz: 3793edbd95fe76197afade10daf4a230d803dc39
3
+ metadata.gz: e950936defc2da7ee729e828e7e467b27d781a52
4
+ data.tar.gz: 43aa7f0f3f305263b14c344aafecad81de927ccf
5
5
  SHA512:
6
- metadata.gz: d22492be74ac1ed58c6e821112b80529878e842a9a6b234ad28fb6b0ec531f742061987d33d52dc7faa038e4a283aec6b77f747c287c1237e772fb3ae252f493
7
- data.tar.gz: 26c9ae1ff166276c295383a0697f302232be4e3840076522f3f670de8d52b041325f3bcd7e514cc31ac3e6ddbc5aff326fac2d8c7aa9cfdc40faac04d88949e9
6
+ metadata.gz: 4def7a29cc508189d503d47842e6cb7212b7cbca2a8d4d7c39bc83624a994d5fbdd23798d8a7eef61298fdfd957bf1eaaac87648099b37a7c7e5e36e25c94910
7
+ data.tar.gz: 84c369f04f0b30eea3f00b21fb13214715a52a39f29dcfec4d131946b9400f1f55b0fd177565ab594d75844b920520539e8f9b845a1dc7ae99c66c9282c38542
@@ -1,3 +1,6 @@
1
+ ## 0.4.0
2
+ * Recognize `mediaType: 'null'` as "No response body"
3
+
1
4
  ## 0.3.4
2
5
  * Treat empty request parameters as no request body
3
6
 
@@ -151,7 +151,7 @@ module Jdoc
151
151
  # We have a policy that we should not return response body to PUT and DELETE requests.
152
152
  # @return [true, false] True if this endpoint must have response body
153
153
  def has_response_body?
154
- !["PUT", "DELETE"].include?(method)
154
+ @raw_link.media_type != "null"
155
155
  end
156
156
 
157
157
  # @return [String] JSON response body generated from example properties
@@ -1,3 +1,3 @@
1
1
  module Jdoc
2
- VERSION = "0.3.4"
2
+ VERSION = "0.4.0"
3
3
  end
@@ -62,6 +62,7 @@ definitions:
62
62
  method: DELETE
63
63
  rel: destroy
64
64
  title: Delete
65
+ mediaType: 'null'
65
66
  - description: Info for existing app.
66
67
  href: "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fid)}"
67
68
  method: GET
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jdoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-20 00:00:00.000000000 Z
11
+ date: 2014-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport