imagekitio 2.1.0 → 2.1.1

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: 0e277c2a9acd03cb3c09568a169a4634e7d67a6aa6e1950530f3c0c520912b2a
4
- data.tar.gz: 3b937a53d53b95dda07d35a8161e6fa46a2a0d66246183b1cbc40d92f73f948f
3
+ metadata.gz: c04894bf6eaea4759ee2ba7f6cee915f70a5608a37e8ded7537f6a1dcd7b06a3
4
+ data.tar.gz: bcfa613b654bfc45c9a04ef97565754dba6ab19f0c7654ecc508e79d9b7ab24f
5
5
  SHA512:
6
- metadata.gz: 7856a96dabd8e21f0ac68e519f2dbca74c20a9fbe9d6915b4ba74ba965609856bfe7ba6e15a96d6d92ab7692fa4002c2b9bd90794369e7436b54735358718cc9
7
- data.tar.gz: 8d221bbef283cdd2c9578dfd590a2e7f570b6de0c29643b5b8b6cf86e36001227dbfb4aa89e0c35e5da5e6e0821da484581305780087a44bfc09b2658a614431
6
+ metadata.gz: ed9fd632ab0ede984b852ec87320c851b4238aadd0a7c2fa7c00a89daa699923d9bea1a36e9c0960fa5d142a985b0d68a1ce8dbed4e70e100811ef242376090c
7
+ data.tar.gz: 83b14958b9c405f4e333e52ed9bb8f946c65649ae56c3209848b47d29af075f5f192bcd1b3145955710319592e8c4e75161df16168f04b1ea533208596faeb00
@@ -36,7 +36,7 @@ module ImageKitIo
36
36
  headers ||= create_headers
37
37
  response = {}
38
38
  begin
39
- if(method.downcase.to_sym == :post)
39
+ if(method.downcase.to_sym == :post && payload.is_a?(Hash) && payload[:multipart])
40
40
  uri = URI.parse(url)
41
41
  http = Net::HTTP.new(uri.host, uri.port)
42
42
  http.use_ssl = (uri.scheme == 'https')
@@ -1,5 +1,5 @@
1
1
  module ImageKitIo
2
2
  module Sdk
3
- VERSION = '2.1.0'
3
+ VERSION = '2.1.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imagekitio
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ImageKit.io team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-03 00:00:00.000000000 Z
11
+ date: 2022-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: carrierwave