asset_cloud 2.5.1 → 2.5.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: a71b62c2f478fc40fdb09ab52eccfe6ca023710082b69c656a7be5e5e73b78a2
4
- data.tar.gz: 813c07e4b4e89d17fde3488d2f8d127d843cdeea5ae9f3d4310b3eae52bd32fa
3
+ metadata.gz: eb6a0e8bfc4038f0590847c8136e423304c6e31bea6fafce40f5e91115d2ee40
4
+ data.tar.gz: 126afd1f0e1f031769df4197f353b6c973870c2bc50dbad433245e4fb81fb2d6
5
5
  SHA512:
6
- metadata.gz: 5665996149043348177e3f15f5d95d83ee98b074ca28f8650a20dd9a5fa5a8a3102465602620f2289a72202128c7cdd53fe2c91c5cf9bcfbf1095a4dadedfca2
7
- data.tar.gz: d5f61fa661547b5851e99ce6db394aa3930640d94e83bd59b13edc436f06394f97dffd75ccf5c67306624132f3b8a33730987febf66d5f61e55c36c075bbd94c
6
+ metadata.gz: 8d63f233568479fc2fb87b7f29861d918969fcfb8ab91bef665a0f52ce0c5bb16ea51b3493be57f5d9716919824e7a24ee4a427eb4ef8e71588b8a0f8b278458
7
+ data.tar.gz: bc4a9f2fb37c3e73587e299e1d164447a011a56765746b9145d5fb45f77f2a0b290794bb4b5ca8bcbc98bc7b480edcb5783be464cd6391288ee945fe9d18c362
@@ -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.1"
5
+ s.version = "2.5.2"
6
6
 
7
7
  s.authors = %w(Shopify)
8
8
  s.summary = %q{An abstraction layer around arbitrary and diverse asset stores.}
@@ -91,7 +91,7 @@ module AssetCloud
91
91
  end
92
92
 
93
93
  def url_for(key, options={})
94
- File.join(@url, Addressable::URI.encode_component(key, Addressable::URI::CharacterClasses::PATH))
94
+ File.join(@url, Addressable::URI.escape(key))
95
95
  end
96
96
 
97
97
  def path_for(key)
@@ -125,7 +125,7 @@ describe BasicCloud do
125
125
  end
126
126
 
127
127
  it "should compute complete urls to assets" do
128
- @fs.url_for('products/key with spaces.txt').should == 'http://assets/files/products/key%20with%20spaces.txt'
128
+ @fs.url_for('products/key with spaces.txt?foo=1&bar=2').should == 'http://assets/files/products/key%20with%20spaces.txt?foo=1&bar=2'
129
129
  end
130
130
 
131
131
  describe "#find" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asset_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.1
4
+ version: 2.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shopify