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 +4 -4
- data/lib/imagekitio/sdk/version.rb +1 -1
- data/lib/imagekitio/utils/calculation.rb +2 -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: 28b5bcef0d4092db6f54d57054947ba418e52b13e83df318dfdc436a8f3fa3af
|
4
|
+
data.tar.gz: 6a2bcd1ceafc8f9e2ecb2279247ca3bfa4908b917b6c713d2f2eed84abd92374
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '048d37b016d2304d047cab75f310217f8983255feaa36dc103c10459bae699518625a6f6d62c764a0053f988f6b703bca672f33463606945c3abb9e70ad28e27'
|
7
|
+
data.tar.gz: 43effec22e6fee6ac8900533ad17f11ce0b971983e4ff1e161c7abec74fcfa2b20c062e4ab6dc7d5a5e49a9010e6735f0e04602958d913d99dd613a856732ec2
|
@@ -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
|
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.
|
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-
|
11
|
+
date: 2022-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: carrierwave
|