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 +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/jdoc/link.rb +5 -5
- data/lib/jdoc/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb5a3ecf6efe4159359cb3af033ee6868e3c0cca
|
4
|
+
data.tar.gz: 8c97de826e81bac0954ab8b0408f04d88e139659
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cee439881c04f9ff975c75a1a4ea7240c8b4e9a6c07b256eb8433fb86286cbe3ffc43321d9c379d30ccb8f7c5fa981f512d9fdadb9950fb01b5e0a92084041df
|
7
|
+
data.tar.gz: b1cf5714cd6046acc0e77aaa08ff0c4d77ee1ec09cec5c6baf9dca78bb065da899f449ba9d5a406018fbb707d4a4fdab62749d3ac487c1ed91e64f122150bcc7
|
data/CHANGELOG.md
CHANGED
data/lib/jdoc/link.rb
CHANGED
@@ -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
|
166
|
-
when "POST"
|
165
|
+
case
|
166
|
+
when method == "POST"
|
167
167
|
201
|
168
|
-
when
|
169
|
-
204
|
170
|
-
else
|
168
|
+
when has_response_body?
|
171
169
|
200
|
170
|
+
else
|
171
|
+
204
|
172
172
|
end
|
173
173
|
end
|
174
174
|
|
data/lib/jdoc/version.rb
CHANGED