swift-storage 0.0.16 → 0.0.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/swift_storage/service.rb +5 -2
- data/lib/swift_storage/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: 542a00c5d345663e087ab43cc70da8b3350c6b40
|
4
|
+
data.tar.gz: 11676bdeea064ce8f784880f05548772fe57df1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1fa8e7aaa0d9ffb7fdef716dd0b04bda780a1fb9cd2b477abf9903c5dcf76040fdff3cef119e20b929a0201cbd8cf201bd5a1732892a4053653a2e7cdb241757
|
7
|
+
data.tar.gz: 68b180339d0d5416138da177601cf1fc4874ecc1ca14ac45cf06ff0fca1988e8717e26bf5d0d9dede6b482084c753a02570ad3a58d51cbdb72c2c78b004edee8
|
@@ -162,6 +162,10 @@ class SwiftStorage::Service
|
|
162
162
|
raise ArgumentError, "Method #{method} not supported"
|
163
163
|
end
|
164
164
|
|
165
|
+
if json_data
|
166
|
+
req.body = JSON.generate(json_data)
|
167
|
+
end
|
168
|
+
|
165
169
|
if input_stream
|
166
170
|
if String === input_stream
|
167
171
|
input_stream = StringIO.new(input_stream)
|
@@ -178,8 +182,7 @@ class SwiftStorage::Service
|
|
178
182
|
end
|
179
183
|
end
|
180
184
|
|
181
|
-
response = Net::HTTP.start(uri.host, uri.port) do |http|
|
182
|
-
http.use_ssl = uri.scheme == 'https'
|
185
|
+
response = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == 'https') do |http|
|
183
186
|
http.verify_mode = OpenSSL::SSL::VERIFY_NONE unless ssl_verify
|
184
187
|
http.request(req, &output_proc)
|
185
188
|
end
|