kinetic_sdk 5.0.14 → 5.0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kinetic_sdk/utils/kinetic-http.rb +2 -4
- data/lib/kinetic_sdk/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf633e2491365a415c239efb877c74ca26bbfd15d8fdbea77b886d87d36a3bee
|
4
|
+
data.tar.gz: cb78af5a9f26eaa6e27c477b3d2c0b50d2f8795e095e699afdc2d075f298f2d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '082158070f224eeb89c75177005c49c85fea33a9728c5de37bb2f65040aa919891fac0e2d4e8db453c5e98faa938454e01a065d3018558de96003aee40234837'
|
7
|
+
data.tar.gz: 4cf4ba986bd68dc6db42e913bb1bc524d4a3f9229a46d90d5ba43570e670cde779eff0990af71ead8f3e059c0110a86819bda2ceeb47687470232c85ae7c1a00
|
@@ -424,13 +424,11 @@ module KineticSdk
|
|
424
424
|
# prepare the payload
|
425
425
|
payload = data.inject({}) do |h,(k,v)|
|
426
426
|
if v.class == File
|
427
|
-
h[k] = UploadIO.new(v, mimetype(v), File.basename(v))
|
427
|
+
h[k] = UploadIO.new(v, mimetype(v).first, File.basename(v))
|
428
428
|
elsif v.class == Array
|
429
|
-
# f = v.first
|
430
|
-
# h[k] = UploadIO.new(f, mimetype(f), File.basename(f)) unless f.nil?
|
431
429
|
h[k] = v.inject([]) do |files, part|
|
432
430
|
if part.class == File
|
433
|
-
files << UploadIO.new(part, mimetype(part), File.basename(part))
|
431
|
+
files << UploadIO.new(part, mimetype(part).first, File.basename(part))
|
434
432
|
end
|
435
433
|
end
|
436
434
|
else
|
data/lib/kinetic_sdk/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kinetic_sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kinetic Data
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-01-
|
11
|
+
date: 2021-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|