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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 67e6967468589fa6bfdf4a523663d1675053a618882337a2d3b001265a525c19
4
- data.tar.gz: 32ffee19ba6489077e6102beea1c96a2bccbad93fcd1c5ee38291ecebc8aec9d
3
+ metadata.gz: bf633e2491365a415c239efb877c74ca26bbfd15d8fdbea77b886d87d36a3bee
4
+ data.tar.gz: cb78af5a9f26eaa6e27c477b3d2c0b50d2f8795e095e699afdc2d075f298f2d6
5
5
  SHA512:
6
- metadata.gz: 02d1a9fba8f13cb36dfe03848c6ffe81fe0c8be5b4298380ff8f18e39539dae0d9e17df66f17197b279a3f0022757e719d19c24827ad7d155f95db4b56e09239
7
- data.tar.gz: 492ecbe9146c29d23e11f3a36fcb3a3cb52c712a5a902d8f7dbbb22c94cdac6890a85d7623265a7901a22999ade8d4c026a2fb8a6e2671ac2c10d9fb62e31393
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
@@ -3,5 +3,5 @@ module KineticSdk
3
3
  # Version of Kinetic SDK
4
4
  #
5
5
  # @return [String] Version of the SDK
6
- VERSION = "5.0.14"
6
+ VERSION = "5.0.15"
7
7
  end
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.14
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-15 00:00:00.000000000 Z
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