svg-inline-file-extractor 0.2.5.2 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/lib/svg_inline_file_extractor/svg_file.rb +1 -2
- data/lib/svg_inline_file_extractor/version.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: 9b5a0087b6f7743f3d919d2291b7bdcaee8a0fc2
|
4
|
+
data.tar.gz: 01004363233fe1fcdd336b6e12b4dc71039b8d62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 848bd45a8e86e1cfbf56e72c41983408531322124cd3774c16a06fcbceba29ea783c9ff08b56385fe8cd2c3219c42e4741ee1ad0165dfe6ff8f8f2173efe54bc
|
7
|
+
data.tar.gz: 229ebcf5881f367333d797a794c96678ee046dc55ae8ee27b9c7b5a21ea46168ece6654e3ac2e868c7647c0e8b5b0e1a4c345a90ced802f3c2b913c6c3e15065
|
data/Gemfile
CHANGED
@@ -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
|
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.
|
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:
|
11
|
+
date: 2017-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|