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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f2df96bc42484242b789c8b3eda29a9ad31c4e0f
4
- data.tar.gz: dc161c283a5de7ed42a7da9c223c717debc362e6
3
+ metadata.gz: 9c1aa41c8b2a446d25aa1d251bf3848553db43ca
4
+ data.tar.gz: c07aa71d59df2608e602c8f8a7c59f7d4fba6409
5
5
  SHA512:
6
- metadata.gz: beafe1f8b013fd689b579f74043bc06c7a50d7d63b108e2e2e3508876a21a4fa08dbe73e177b87aa9144630366f1f29027c2e125b0d843ed3e8ee64c364fb15b
7
- data.tar.gz: b44e880469757ba60b9873af176618254aa751c145b0449201c1b199e80600238c4bb78eb2b754fe8ecea7d60c4d47b6c25e18ab1473fcfc827e00aad83eb3bd
6
+ metadata.gz: 0ea689d47e152592a313dad0e5f9676fe869cbe807fbc306aa8b04e7b98c28e018199f24b7887f00c7d3cbdcedccb76fc5611b34014261654e4440721ec576a3
7
+ data.tar.gz: 5ae5a1564f437fbc6ee1421b8a0a2d641e2e4ef7b74b7601b376e1666109d0e208d253d29106576c940295a0552023513b766ea862cf196b032d41a251ab243f
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module Spriteful
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
@@ -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.0
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-06-26 00:00:00.000000000 Z
11
+ date: 2014-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor