jdoc 0.4.0 → 0.4.1

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: e950936defc2da7ee729e828e7e467b27d781a52
4
- data.tar.gz: 43aa7f0f3f305263b14c344aafecad81de927ccf
3
+ metadata.gz: fb5a3ecf6efe4159359cb3af033ee6868e3c0cca
4
+ data.tar.gz: 8c97de826e81bac0954ab8b0408f04d88e139659
5
5
  SHA512:
6
- metadata.gz: 4def7a29cc508189d503d47842e6cb7212b7cbca2a8d4d7c39bc83624a994d5fbdd23798d8a7eef61298fdfd957bf1eaaac87648099b37a7c7e5e36e25c94910
7
- data.tar.gz: 84c369f04f0b30eea3f00b21fb13214715a52a39f29dcfec4d131946b9400f1f55b0fd177565ab594d75844b920520539e8f9b845a1dc7ae99c66c9282c38542
6
+ metadata.gz: cee439881c04f9ff975c75a1a4ea7240c8b4e9a6c07b256eb8433fb86286cbe3ffc43321d9c379d30ccb8f7c5fa981f512d9fdadb9950fb01b5e0a92084041df
7
+ data.tar.gz: b1cf5714cd6046acc0e77aaa08ff0c4d77ee1ec09cec5c6baf9dca78bb065da899f449ba9d5a406018fbb707d4a4fdab62749d3ac487c1ed91e64f122150bcc7
@@ -1,3 +1,6 @@
1
+ ## 0.4.1
2
+ * Use 204 for `mediaType: "null"`
3
+
1
4
  ## 0.4.0
2
5
  * Recognize `mediaType: 'null'` as "No response body"
3
6
 
@@ -162,13 +162,13 @@ module Jdoc
162
162
 
163
163
  # @return [Fixnum] Preferred respone status code for this endpoint
164
164
  def response_status
165
- case method
166
- when "POST"
165
+ case
166
+ when method == "POST"
167
167
  201
168
- when "PUT", "DELETE"
169
- 204
170
- else
168
+ when has_response_body?
171
169
  200
170
+ else
171
+ 204
172
172
  end
173
173
  end
174
174
 
@@ -1,3 +1,3 @@
1
1
  module Jdoc
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jdoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura