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: 0dd67df92ccb7a288e59652138818e202d3d9ffb
4
- data.tar.gz: 6b44a39bb45d207a47b6ae1818cf491c53c8738e
3
+ metadata.gz: 62a163cfa90536c92651a5e577b720769add3c66
4
+ data.tar.gz: 1c8b3d64853163c7cf7f662c638e4e85c91715c7
5
5
  SHA512:
6
- metadata.gz: 709eb3948d503fd859359122c14140e4c8c63b094c63436e5e28b06b82bad25d477807132f8af5c7e109634c46bd3b56455ae04df8c3cd0c01549df26888110d
7
- data.tar.gz: 43a36ec67e410f6d389f8f9618fbefc6da99b1740ae4e9e15717c878da8ce90dbc42ea57336d9a365f9b440e00e33e8ec6e96ef3e6ecc9a1e7151b2675f556e7
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 = 'xlink:href'
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
@@ -1,3 +1,3 @@
1
1
  module SvgInlineFileExtractor
2
- VERSION = "0.2.5.1"
2
+ VERSION = "0.2.5.2"
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.1
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-01 00:00:00.000000000 Z
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.4.8
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.