sprockets-svg 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sprockets/svg/png.rb +3 -3
- data/lib/sprockets/svg/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6439f1114a133c9ab14bce3aeafeaf425f03c45
|
4
|
+
data.tar.gz: 86459530a23b8970ea2292ecace29f4c94928c40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 743b111d91adc82fba689c4f19fa774d0c7af2ec2b67750f5c7a66d0ad038a7c140714113bd1e6abebe9fa0d7d3bcd13f6c9a8da0b2a9e4932b1186da49d4dce
|
7
|
+
data.tar.gz: 4bffed0633a484b1ea3e3350e39b6170ea6a1a243d8a23ab49ed592c281701281fc241ca2a4e09c9162f332836248465a62af4538f0281e378c394e90b1b05b2
|
data/lib/sprockets/svg/png.rb
CHANGED
@@ -17,10 +17,10 @@ module Sprockets
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def png_path(svg_path)
|
20
|
-
if svg_path =~ /^(.*)\-([0-9a-f]
|
21
|
-
"#{$1}.svg-#{$2}.png"
|
20
|
+
if svg_path =~ /^(.*)\-([0-9a-f]{40})\.svg$/
|
21
|
+
p "#{$1}.svg-#{$2}.png"
|
22
22
|
else
|
23
|
-
"#{svg_path}.png"
|
23
|
+
p "#{svg_path}.png"
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|