asset_cloud 2.2.2 → 2.2.4
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 +1 -1
- data/lib/asset_cloud.rb +7 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c59ff21099481c73d18d20f5d12267538bfe5537
|
4
|
+
data.tar.gz: b0b9d91f667a39da9848609af1e44d2f087b71bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e468ea841dcfc001541a7b117335e435c9500c464cde5a7239d73bd0340c8400401906f442d8e3ac22aeaa50d3afd3120b3a30e8a09ceb4f4289445a1419a5d9
|
7
|
+
data.tar.gz: 41818a6fa8cbddfb504baf4c8e9a7866e320901487744c1d926f1bbedbedb4ec96b8ef8384293d048aa443da33b21c5c42f6b74079dc7c39ad5e199520436ea8
|
data/asset_cloud.gemspec
CHANGED
data/lib/asset_cloud.rb
CHANGED
@@ -42,12 +42,18 @@ AssetCloud::Asset.class_eval do
|
|
42
42
|
@extensions.each {|ext| ext.execute_callbacks(symbol, args)}
|
43
43
|
end
|
44
44
|
|
45
|
+
protected
|
46
|
+
|
47
|
+
def valid_key_path?(key)
|
48
|
+
key =~ AssetCloud::Base::VALID_PATHS
|
49
|
+
end
|
50
|
+
|
45
51
|
private
|
46
52
|
|
47
53
|
def valid_key
|
48
54
|
if key.blank?
|
49
55
|
add_error "key cannot be empty"
|
50
|
-
elsif key
|
56
|
+
elsif !valid_key_path?(key)
|
51
57
|
add_error "#{key.inspect} contains illegal characters"
|
52
58
|
end
|
53
59
|
end
|
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.2.
|
4
|
+
version: 2.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shopify
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|