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 +4 -4
- data/asset_cloud.gemspec +2 -1
- data/lib/asset_cloud.rb +1 -0
- data/lib/asset_cloud/base.rb +1 -3
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a71b62c2f478fc40fdb09ab52eccfe6ca023710082b69c656a7be5e5e73b78a2
|
4
|
+
data.tar.gz: 813c07e4b4e89d17fde3488d2f8d127d843cdeea5ae9f3d4310b3eae52bd32fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
data/lib/asset_cloud/base.rb
CHANGED
@@ -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.
|
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.
|
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-
|
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
|