swift-storage 0.0.16 → 0.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 07d3d130ca97b74bc12b9976b8f7c2e79ccc3ffd
4
- data.tar.gz: 924eaadbcdd6710d323ed33019c6d00e2f0d735d
3
+ metadata.gz: 542a00c5d345663e087ab43cc70da8b3350c6b40
4
+ data.tar.gz: 11676bdeea064ce8f784880f05548772fe57df1d
5
5
  SHA512:
6
- metadata.gz: 763a569994c1e698e78801a7f45b2b80f48e7cb9ec2f0b0a42acbf691289ff3c8c7c28b1912a710778f5bbf7a2d799635403a14168ed5f0af07d6e7e36908af4
7
- data.tar.gz: 2157970a98acc0e5cb4d8de0a15d960e5d148fb63dca931153e078812ab002b47b06dc6914c6d011f085569da1ec69c2398fa853e15b2dd2390dd2c5941288a4
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
@@ -1,3 +1,3 @@
1
1
  module SwiftStorage
2
- VERSION = "0.0.16"
2
+ VERSION = "0.0.18"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swift-storage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolas Goy