jdoc 0.3.3 → 0.3.4

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: 03c85d7d5b7ddfd547d2b5deef9f91f5e457d3c8
4
- data.tar.gz: 926980a491b7297f7801ff18162b1d39b1c0f326
3
+ metadata.gz: 0fb60bad31d711fac30670a1abc396babad23ed7
4
+ data.tar.gz: 3793edbd95fe76197afade10daf4a230d803dc39
5
5
  SHA512:
6
- metadata.gz: e8381b0a59d51279cd3faea09f0d20178dfbb426518d7eabeb74ee0e40d4c0344f1d401b77cab916f6e8aa2330affbf02cb663042e2a3bc7b5190b121a546ca9
7
- data.tar.gz: 9edb70fc6e87f18d31d49e6329fbc0fd765a0832d3d9375582d5a468dcb81f59d03f92e92afb477a6db2f1c548678eb4bdffc5244815ad09e53b8166f6bb94da
6
+ metadata.gz: d22492be74ac1ed58c6e821112b80529878e842a9a6b234ad28fb6b0ec531f742061987d33d52dc7faa038e4a283aec6b77f747c287c1237e772fb3ae252f493
7
+ data.tar.gz: 26c9ae1ff166276c295383a0697f302232be4e3840076522f3f670de8d52b041325f3bcd7e514cc31ac3e6ddbc5aff326fac2d8c7aa9cfdc40faac04d88949e9
@@ -1,3 +1,6 @@
1
+ ## 0.3.4
2
+ * Treat empty request parameters as no request body
3
+
1
4
  ## 0.3.3
2
5
  * Improve pattern format in properties section
3
6
 
@@ -145,7 +145,7 @@ module Jdoc
145
145
 
146
146
  # @return [true, false] True if this endpoint must have request body
147
147
  def has_request_body?
148
- ["PATCH", "POST", "PUT"].include?(method)
148
+ ["PATCH", "POST", "PUT"].include?(method) && !request_parameters.empty?
149
149
  end
150
150
 
151
151
  # We have a policy that we should not return response body to PUT and DELETE requests.
@@ -1,3 +1,3 @@
1
1
  module Jdoc
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  end
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.3
4
+ version: 0.3.4
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-05 00:00:00.000000000 Z
11
+ date: 2014-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport