spriteful 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/spriteful/template.rb +1 -1
- data/lib/spriteful/version.rb +1 -1
- data/spec/spriteful/template_spec.rb +1 -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: 9c1aa41c8b2a446d25aa1d251bf3848553db43ca
|
4
|
+
data.tar.gz: c07aa71d59df2608e602c8f8a7c59f7d4fba6409
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ea689d47e152592a313dad0e5f9676fe869cbe807fbc306aa8b04e7b98c28e018199f24b7887f00c7d3cbdcedccb76fc5611b34014261654e4440721ec576a3
|
7
|
+
data.tar.gz: 5ae5a1564f437fbc6ee1421b8a0a2d641e2e4ef7b74b7601b376e1666109d0e208d253d29106576c940295a0552023513b766ea862cf196b032d41a251ab243f
|
data/lib/spriteful/template.rb
CHANGED
@@ -96,7 +96,7 @@ module Spriteful
|
|
96
96
|
# Returns a String.
|
97
97
|
def data_uri(image)
|
98
98
|
if image.svg?
|
99
|
-
"data:image/svg+xml;base64,#{Base64.encode64(image.blob).gsub(/\r?\n/, '')}"
|
99
|
+
"'data:image/svg+xml;base64,#{Base64.encode64(image.blob).gsub(/\r?\n/, '')}'"
|
100
100
|
end
|
101
101
|
end
|
102
102
|
|
data/lib/spriteful/version.rb
CHANGED
@@ -74,7 +74,7 @@ describe Spriteful::Template do
|
|
74
74
|
describe '#data_uri' do
|
75
75
|
it 'returns a Base64 encoded String for the SVG image' do
|
76
76
|
image = double(svg?: true, blob: '<svg />')
|
77
|
-
expect(template.data_uri(image)).to eq('data:image/svg+xml;base64,PHN2ZyAvPg==')
|
77
|
+
expect(template.data_uri(image)).to eq("'data:image/svg+xml;base64,PHN2ZyAvPg=='")
|
78
78
|
end
|
79
79
|
end
|
80
80
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spriteful
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lucas Mazza
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|