imagekitio 2.2.1 → 2.2.2

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: e2a267b33b83b04a41e8a1623d436eef82320f7ef6e18febaf1ed7f8837c3851
4
- data.tar.gz: b90444639b7197ad0fbade7c7092443877089f835e5b64108f25ec839125a21e
3
+ metadata.gz: 28b5bcef0d4092db6f54d57054947ba418e52b13e83df318dfdc436a8f3fa3af
4
+ data.tar.gz: 6a2bcd1ceafc8f9e2ecb2279247ca3bfa4908b917b6c713d2f2eed84abd92374
5
5
  SHA512:
6
- metadata.gz: 9d447d460af09493e4dacc37796a15b48f4f6e15a5ac03dc3df01f1f2729e0411fee78c4f5ec0cf97a7c496bc73c6e2aaa1805c001fdf30e9114d495f7e8cb38
7
- data.tar.gz: 53c26e7c92ebbdae23ab35faca95ba875a1b02a7fe63eb95bbd4e6a118adbd7c760498a9ec75bc4691bb4bcd6099551609d2ee1250d15a517d6952c85ed9630e
6
+ metadata.gz: '048d37b016d2304d047cab75f310217f8983255feaa36dc103c10459bae699518625a6f6d62c764a0053f988f6b703bca672f33463606945c3abb9e70ad28e27'
7
+ data.tar.gz: 43effec22e6fee6ac8900533ad17f11ce0b971983e4ff1e161c7abec74fcfa2b20c062e4ab6dc7d5a5e49a9010e6735f0e04602958d913d99dd613a856732ec2
@@ -1,5 +1,5 @@
1
1
  module ImageKitIo
2
2
  module Sdk
3
- VERSION = '2.2.1'
3
+ VERSION = '2.2.2'
4
4
  end
5
5
  end
@@ -27,6 +27,7 @@ module ImageKitIo
27
27
  # return authenticated param
28
28
  default_expire = DateTime.now.strftime("%s").to_i + DEFAULT_TIME_DIFF
29
29
  token ||= SecureRandom.uuid
30
+ expire ||= default_expire
30
31
 
31
32
  auth_params = {'token': token, 'expire': expire, 'signature': ""}
32
33
  unless private_key
@@ -35,7 +36,7 @@ module ImageKitIo
35
36
 
36
37
  signature = OpenSSL::HMAC.hexdigest("SHA1", private_key, token.to_s + expire.to_s)
37
38
  auth_params[:token] = token
38
- auth_params[:expire] = expire || default_expire
39
+ auth_params[:expire] = expire
39
40
  auth_params[:signature] = signature
40
41
  auth_params
41
42
  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.2.1
4
+ version: 2.2.2
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-07-14 00:00:00.000000000 Z
11
+ date: 2022-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: carrierwave