autodoc 0.4.3 → 0.4.4
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/autodoc/document.rb +4 -1
- data/lib/autodoc/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f59c966b1fe9e04c3a508a2412564e0a493300e9
|
4
|
+
data.tar.gz: ea4a272d427ed8bbe2328b98b813f4103508f3de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 815076890bf4c0d4e812cfe562f7f975a7ab6f60353a519efb60b970cad26a4c8b00e2b32ab10ae2c787da3f60b5c7e78cfc523bb1ff63d95c68dabe3b0dcefa
|
7
|
+
data.tar.gz: 667bf9024701906ac4910718f519433a8878b25c04fea3192b0791617e15ccb512e591b8ba6fc1b7467913f2853e87c6fd98480651d8ca6cf6f3456de91b0ea0
|
data/CHANGELOG.md
CHANGED
data/lib/autodoc/document.rb
CHANGED
@@ -151,7 +151,10 @@ module Autodoc
|
|
151
151
|
@response_body
|
152
152
|
else
|
153
153
|
@response_body = begin
|
154
|
-
|
154
|
+
case
|
155
|
+
when response.header["Content-Type"].try(:include?, "image/")
|
156
|
+
response.header["Content-Type"]
|
157
|
+
when response.header["Content-Type"].try(:include?, "application/json")
|
155
158
|
response_body_parsed_as_json
|
156
159
|
else
|
157
160
|
response.body
|
data/lib/autodoc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: autodoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.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: 2015-
|
11
|
+
date: 2015-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|