svg-inline-file-extractor 0.2.5.1 → 0.2.5.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62a163cfa90536c92651a5e577b720769add3c66
|
4
|
+
data.tar.gz: 1c8b3d64853163c7cf7f662c638e4e85c91715c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d32e20b8ce7ab9a8516b9793eeeb2025de95bbd0b5f2e9ead8f5c804c4d279607afa89bd9460e17bade1703477e79f93bb2379bbb9a4463c77990e421250ef88
|
7
|
+
data.tar.gz: fe56c31b78c8faef9a4c461275b923bc81e7a2e8c43b9c6907ecff4672a39521b6b2bae208836533635089e8c8b31a28141da37c056de562c247388a67e92622
|
@@ -73,7 +73,7 @@ module SvgInlineFileExtractor
|
|
73
73
|
SvgInlineFileExtractor.with_temp_image(nokogiri_element.value) do |temp_image|
|
74
74
|
format = SvgInlineFileExtractor.identify_image(temp_image).to_s.downcase
|
75
75
|
nokogiri_element.value = "data:image/#{format};base64,#{encode(temp_image)}"
|
76
|
-
nokogiri_element.name = '
|
76
|
+
nokogiri_element.name = 'href'
|
77
77
|
end
|
78
78
|
true
|
79
79
|
end
|
@@ -31,7 +31,7 @@ module SvgInlineFileExtractor
|
|
31
31
|
# @return [ Nokogiri::XML ] a nokogiri XML document wrapper
|
32
32
|
def nokogiri_document
|
33
33
|
@nokogiri_document ||= begin
|
34
|
-
doc = Nokogiri::XML(xml_string)
|
34
|
+
doc = Nokogiri::XML(xml_string, nil, nil, Nokogiri::XML::ParseOptions::HUGE)
|
35
35
|
doc.remove_namespaces!
|
36
36
|
doc
|
37
37
|
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.
|
4
|
+
version: 0.2.5.2
|
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-
|
11
|
+
date: 2016-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -135,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
135
135
|
version: '0'
|
136
136
|
requirements: []
|
137
137
|
rubyforge_project:
|
138
|
-
rubygems_version: 2.
|
138
|
+
rubygems_version: 2.5.1
|
139
139
|
signing_key:
|
140
140
|
specification_version: 4
|
141
141
|
summary: Extract inline SVG base64 encoded images, and other inline files.
|