imagekitio 1.0.9 → 1.0.10

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: 8f4c1378d734792764be12a017096faf02b19b25ffd17e71967b83a11a4d9b43
4
- data.tar.gz: c2e57147a07ee8372fbbc9ef6f4a65d5d06cda3378a06fc3671902bec470e366
3
+ metadata.gz: 87a2428b4fd13858eb5789ebb281e06c9c26ee27b9d005f13eccde8766cae28a
4
+ data.tar.gz: ba2dff578f285e9fc847e4cdcb941a4a0764387280122ff7e391b7b66de38b97
5
5
  SHA512:
6
- metadata.gz: 75fbd6009d4875bf9e56ebad657898d69e96aa88835972649477cfc3c4aaff98c1dcb1ec41d9026ce5d2626ce7a83913e5e590fb30c504e6f741b65e974c463a
7
- data.tar.gz: 111fdba2d869e92b4e01bc58184b189b4120e2ecbec444b326157ed638e28e4078d0fd831fe5a5efb56cd4ecf403dd6c8c259556bdc58d627e94662905608c67
6
+ metadata.gz: b2b9203c579831c6c127a480100f16ee88b90aab79d5a6e2f0a50dbf2d5908fcbcabdbbeb8adff2d8f99aedf5ca0cdcbbee76c4989a81cb64d1b717827c5cfd9
7
+ data.tar.gz: 79641251a3cb02c69d999b8c3cc3237e59748abca67f3ba00807d8e2ef938fe52bc743e00bdec3191515b350d33f7e35bdc94bba593453f52a2448d3cf8fd64e
@@ -1,5 +1,5 @@
1
1
  module Imagekit
2
2
  module Sdk
3
- VERSION = '1.0.9'
3
+ VERSION = '1.0.10'
4
4
  end
5
5
  end
data/lib/imagekit/url.rb CHANGED
@@ -3,6 +3,7 @@
3
3
  # Url holds url generation method
4
4
 
5
5
  require "cgi"
6
+ require "addressable/uri"
6
7
  require "openssl"
7
8
  require_relative "./utils/formatter"
8
9
  require_relative "./constants/defaults"
@@ -46,16 +47,16 @@ class Url
46
47
  result_url_hash = {'host': "", 'path': "", 'query': ""}
47
48
  existing_query=nil
48
49
  if path != ""
49
- parsed_url = URI.parse(path)
50
+ parsed_url = Addressable::URI.parse(path)
50
51
  existing_query=parsed_url.query
51
- parsed_host = URI(url_endpoint)
52
+ parsed_host = Addressable::URI.parse(url_endpoint)
52
53
  result_url_hash[:scheme] = parsed_host.scheme
53
54
 
54
55
  # making sure single '/' at end
55
56
  result_url_hash[:host] = parsed_host.host.to_s.chomp("/") + parsed_host.path.chomp("/") + "/"
56
57
  result_url_hash[:path] = trim_slash(parsed_url.path)
57
58
  else
58
- parsed_url = URI.parse(src)
59
+ parsed_url = Addressable::URI.parse(src)
59
60
  existing_query=parsed_url.query
60
61
  host = parsed_url.host
61
62
  result_url_hash[:userinfo] = parsed_url.userinfo if parsed_url.userinfo
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: 1.0.9
4
+ version: 1.0.10
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: 2021-01-09 00:00:00.000000000 Z
11
+ date: 2021-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: carrierwave
@@ -50,6 +50,20 @@ dependencies:
50
50
  - - ">="
51
51
  - !ruby/object:Gem::Version
52
52
  version: '2.1'
53
+ - !ruby/object:Gem::Dependency
54
+ name: addressable
55
+ requirement: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - "~>"
58
+ - !ruby/object:Gem::Version
59
+ version: '2.8'
60
+ type: :runtime
61
+ prerelease: false
62
+ version_requirements: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - "~>"
65
+ - !ruby/object:Gem::Version
66
+ version: '2.8'
53
67
  - !ruby/object:Gem::Dependency
54
68
  name: rails
55
69
  requirement: !ruby/object:Gem::Requirement
@@ -117,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
131
  - !ruby/object:Gem::Version
118
132
  version: '0'
119
133
  requirements: []
120
- rubygems_version: 3.1.4
134
+ rubygems_version: 3.2.22
121
135
  signing_key:
122
136
  specification_version: 4
123
137
  summary: Automate image optimization on rails platforms.