jekyll-inline-svg 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e0ada0612efece173e985d4373295e78ebb0e720
4
- data.tar.gz: 777909724f28044b8fa78aec87b5621e3b17aa32
2
+ SHA256:
3
+ metadata.gz: 4a3c39ac9f30abe77514d69eb546193b93455330a29a8ff2bc23654ce4e61614
4
+ data.tar.gz: 4440daa2bbafdd7bf4ce49dd0f793554f8efffa021eb6c3ddd42907178aca917
5
5
  SHA512:
6
- metadata.gz: 4d838d2e5e39e2ad3839c76b6722c6933ccb0e0f2bb16cf0e0ca752479e3e9b6ee9fd75fd2782dad38df2bd21c9a8a2e827155f7e99907a170463464cb0493a4
7
- data.tar.gz: f4e53501986ff1eda6a8ee81c9df6077913a10528221a860a78f736bfbdc7994e83f1e15eae91ae71bbb74edab3e55714e35496b17b4dd69127b0c4ea9a22d0d
6
+ metadata.gz: 6e9aaae43f8183b47c08bd178b2f0a3e1d88c75e39c12793ce2b0067fbb85f950291f5d926d1ae231a5345c4254428488b39f14c53d3310c164ea2bcf7fa4c20
7
+ data.tar.gz: ee36e40b08ced7b981c57d327ad1a6e4cfdd7b8020daea490ff769cbed66542fa56dd98e375cda0e30d502d8f81667de2d04d73bd844b64685dceecb037f2406
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
7
7
  A Liquid tag to inline and optimize SVG images in your HTML
8
8
  Supports custom DOM Attributes parameters and variables interpretation.
9
9
  EOF
10
- spec.version = "1.1.1"
10
+ spec.version = "1.1.2"
11
11
  spec.authors = ["Sebastien DUMETZ"]
12
12
  spec.email = "s.dumetz@holusion.com"
13
13
  spec.homepage = "https://github.com/sdumetz/jekyll-inline-svg"
@@ -130,7 +130,7 @@ module Jekyll
130
130
  else
131
131
  xml = Nokogiri::XML(file)
132
132
  params.each {|key,val| xml.root.set_attribute(key,val)}
133
- xml = xml.to_xml
133
+ xml = xml.root.to_xml
134
134
  end
135
135
  return xml
136
136
  end
@@ -66,6 +66,7 @@ describe(Jekyll::Tags::JekyllInlineSvg) do
66
66
  before(:context) do
67
67
  site = Jekyll::Site.new(config)
68
68
  site.process
69
+ @text = read('index.html')
69
70
  @data = parse("index.html")
70
71
  @base = @data.css("#base").css("svg").first
71
72
  end
@@ -124,6 +125,9 @@ describe(Jekyll::Tags::JekyllInlineSvg) do
124
125
  expect(data.first.get_attribute("data-foo")).to is_opt ? be_falsy : eql("")
125
126
  expect(data.xpath("//comment()").first).to is_opt ? be_falsy : be_truthy
126
127
  end
128
+ it "don't add <?xml> junk" do
129
+ expect(@text).not_to include("<?xml")
130
+ end
127
131
  end
128
132
  end
129
133
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-inline-svg
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastien DUMETZ
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-13 00:00:00.000000000 Z
11
+ date: 2019-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  version: '0'
125
125
  requirements: []
126
126
  rubyforge_project:
127
- rubygems_version: 2.6.14
127
+ rubygems_version: 2.7.8
128
128
  signing_key:
129
129
  specification_version: 4
130
130
  summary: A SVG Inliner for Jekyll