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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aae2b92c885f31dc1d49e0cef87e8a74b90c6fd5
4
- data.tar.gz: 7f4cc106fd14c24c05d046141d27541118323c62
3
+ metadata.gz: f59c966b1fe9e04c3a508a2412564e0a493300e9
4
+ data.tar.gz: ea4a272d427ed8bbe2328b98b813f4103508f3de
5
5
  SHA512:
6
- metadata.gz: 7ca3523a242b761e3d0e9df7f6df38fb5c89f22ae46817d579fa142d8a0b1bcefece2ce87fdc9eeba9b78ede9e4c9b3ed4ce2dc886e60c26ef0e3f9f413e9512
7
- data.tar.gz: 042785fbb3d787ec88b9d5c823c6d7ac905452384bd51d238944eba68deba1e6d492b9e7930d863f795f6c2ab35d88fb2984120689da113c816a27ed9ba61ef6
6
+ metadata.gz: 815076890bf4c0d4e812cfe562f7f975a7ab6f60353a519efb60b970cad26a4c8b00e2b32ab10ae2c787da3f60b5c7e78cfc523bb1ff63d95c68dabe3b0dcefa
7
+ data.tar.gz: 667bf9024701906ac4910718f519433a8878b25c04fea3192b0791617e15ccb512e591b8ba6fc1b7467913f2853e87c6fd98480651d8ca6cf6f3456de91b0ea0
@@ -1,3 +1,6 @@
1
+ ## 0.4.4
2
+ - Support image response (Thx @mzp)
3
+
1
4
  ## 0.4.3
2
5
  - Support nested parameters on weak_parameters (Thx @mzp)
3
6
 
@@ -151,7 +151,10 @@ module Autodoc
151
151
  @response_body
152
152
  else
153
153
  @response_body = begin
154
- if response.header["Content-Type"].try(:include?, "application/json")
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
@@ -1,3 +1,3 @@
1
1
  module Autodoc
2
- VERSION = "0.4.3"
2
+ VERSION = "0.4.4"
3
3
  end
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.3
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-02-28 00:00:00.000000000 Z
11
+ date: 2015-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport