sketchily 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,7 +22,7 @@ module SketchilyHelper
22
22
  end
23
23
  doc.at('g').before(bkgd_color_node)
24
24
  end
25
- print doc.to_xml
25
+
26
26
  uri = Base64.strict_encode64(doc.to_xml)
27
27
  end
28
28
 
@@ -5,7 +5,7 @@ module SketchilyHelper
5
5
  doc = Nokogiri::XML(Base64.decode64(uri)) {|xml| xml.noblanks}
6
6
 
7
7
  if options[:bkgd_file]
8
- data_uri = "data:image;base64,#{Base64.strict_encode64(open(options[:bkgd_file]).read)}"
8
+ data_uri = "data:image/svg+xml;base64,#{Base64.strict_encode64(open(options[:bkgd_file]).read)}"
9
9
  bkgd_file_node = Nokogiri::XML::Node.new 'g', doc
10
10
  Nokogiri::XML::Builder.with(bkgd_file_node) do |xml|
11
11
  xml.title 'Background Image Layer'
@@ -1,3 +1,3 @@
1
1
  module Sketchily
2
- VERSION = "1.4.0"
2
+ VERSION = "1.4.1"
3
3
  end
@@ -1,3 +1,3 @@
1
1
  module Sketchily
2
- VERSION = "1.3.0"
2
+ VERSION = "1.4.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sketchily
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: