asset_cloud 2.5.0 → 2.5.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: 10260022ec26ff28ffa08e6ce8c2b6842402f560f31388f2842f177b111baa9b
4
- data.tar.gz: 158eee048f865ca05cc55f9de8c4987eaed875a6c71d9b42c977bcf0006a7986
3
+ metadata.gz: a71b62c2f478fc40fdb09ab52eccfe6ca023710082b69c656a7be5e5e73b78a2
4
+ data.tar.gz: 813c07e4b4e89d17fde3488d2f8d127d843cdeea5ae9f3d4310b3eae52bd32fa
5
5
  SHA512:
6
- metadata.gz: 25e4ac0842873db1c15b809bd9fbdbc009331156c3ef171b94b4b557f98e23e600e3539d6643b0165ed758fa7abda6f3b6f3984980d131b9b0286f3036259c58
7
- data.tar.gz: 1c276c4b7dda4e5ab72f27860eedaf7d4219d36c493790c3e24efccee078b347c0ffea363072ee3778a2e28cab5c208c4e07fab3685b65edde8813c4ad6faab1
6
+ metadata.gz: 5665996149043348177e3f15f5d95d83ee98b074ca28f8650a20dd9a5fa5a8a3102465602620f2289a72202128c7cdd53fe2c91c5cf9bcfbf1095a4dadedfca2
7
+ data.tar.gz: d5f61fa661547b5851e99ce6db394aa3930640d94e83bd59b13edc436f06394f97dffd75ccf5c67306624132f3b8a33730987febf66d5f61e55c36c075bbd94c
data/asset_cloud.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{asset_cloud}
5
- s.version = "2.5.0"
5
+ s.version = "2.5.1"
6
6
 
7
7
  s.authors = %w(Shopify)
8
8
  s.summary = %q{An abstraction layer around arbitrary and diverse asset stores.}
@@ -18,6 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
19
19
 
20
20
  s.add_dependency 'activesupport'
21
+ s.add_dependency 'addressable'
21
22
 
22
23
  s.metadata['allowed_push_host'] = "https://rubygems.org"
23
24
 
data/lib/asset_cloud.rb CHANGED
@@ -1,3 +1,4 @@
1
+ require 'addressable'
1
2
  require 'active_support'
2
3
 
3
4
  # Core
@@ -1,5 +1,3 @@
1
- require 'uri'
2
-
3
1
  module AssetCloud
4
2
 
5
3
  class IllegalPath < StandardError
@@ -93,7 +91,7 @@ module AssetCloud
93
91
  end
94
92
 
95
93
  def url_for(key, options={})
96
- File.join(@url, URI.encode(key))
94
+ File.join(@url, Addressable::URI.encode_component(key, Addressable::URI::CharacterClasses::PATH))
97
95
  end
98
96
 
99
97
  def path_for(key)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asset_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.0
4
+ version: 2.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shopify
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-01 00:00:00.000000000 Z
11
+ date: 2020-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: addressable
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rspec
29
43
  requirement: !ruby/object:Gem::Requirement