svg-inline-file-extractor 0.2.5.2 → 0.2.6

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
2
  SHA1:
3
- metadata.gz: 62a163cfa90536c92651a5e577b720769add3c66
4
- data.tar.gz: 1c8b3d64853163c7cf7f662c638e4e85c91715c7
3
+ metadata.gz: 9b5a0087b6f7743f3d919d2291b7bdcaee8a0fc2
4
+ data.tar.gz: 01004363233fe1fcdd336b6e12b4dc71039b8d62
5
5
  SHA512:
6
- metadata.gz: d32e20b8ce7ab9a8516b9793eeeb2025de95bbd0b5f2e9ead8f5c804c4d279607afa89bd9460e17bade1703477e79f93bb2379bbb9a4463c77990e421250ef88
7
- data.tar.gz: fe56c31b78c8faef9a4c461275b923bc81e7a2e8c43b9c6907ecff4672a39521b6b2bae208836533635089e8c8b31a28141da37c056de562c247388a67e92622
6
+ metadata.gz: 848bd45a8e86e1cfbf56e72c41983408531322124cd3774c16a06fcbceba29ea783c9ff08b56385fe8cd2c3219c42e4741ee1ad0165dfe6ff8f8f2173efe54bc
7
+ data.tar.gz: 229ebcf5881f367333d797a794c96678ee046dc55ae8ee27b9c7b5a21ea46168ece6654e3ac2e868c7647c0e8b5b0e1a4c345a90ced802f3c2b913c6c3e15065
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem "codeclimate-test-reporter", group: :test, require: nil
3
+ gem "codeclimate-test-reporter", '= 0.5.1', group: :test, require: nil
4
4
 
5
5
  # Specify your gem's dependencies in svg_inline_file_extractor.gemspec
6
6
  gemspec
@@ -32,7 +32,6 @@ module SvgInlineFileExtractor
32
32
  def nokogiri_document
33
33
  @nokogiri_document ||= begin
34
34
  doc = Nokogiri::XML(xml_string, nil, nil, Nokogiri::XML::ParseOptions::HUGE)
35
- doc.remove_namespaces!
36
35
  doc
37
36
  end
38
37
  end
@@ -59,7 +58,7 @@ module SvgInlineFileExtractor
59
58
  private
60
59
 
61
60
  def image_elements
62
- @image_elements ||= nokogiri_document.xpath("//image/@href")
61
+ @image_elements ||= nokogiri_document.xpath("//svg:image/@xlink:href", 'svg' => 'http://www.w3.org/2000/svg', 'xlink' => 'http://www.w3.org/1999/xlink')
63
62
  end
64
63
 
65
64
  end
@@ -1,3 +1,3 @@
1
1
  module SvgInlineFileExtractor
2
- VERSION = "0.2.5.2"
2
+ VERSION = "0.2.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: svg-inline-file-extractor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5.2
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nic Boie
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-11-04 00:00:00.000000000 Z
11
+ date: 2017-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri