abroad 4.2.0 → 4.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/abroad/extractors/xml/android_extractor.rb +3 -1
- data/lib/abroad/extractors/xml/xml_extractor.rb +2 -4
- data/lib/abroad/version.rb +1 -1
- data/lib/ext/htmlentities/android_xml_decoder.rb +1 -1
- data/lib/ext/htmlentities/android_xml_encoder.rb +1 -1
- data/spec/extractors/xml/fixtures.yml +5 -0
- data/spec/extractors/xml/fixtures/cdata.xml +5 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d961c2bc2ef6763471add263c02c5f0b6a76cef
|
4
|
+
data.tar.gz: dc3168e8415c94304b16afe1226b203272f9a1d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6dae02b1c7729bbaea9879244b48465a5ccdad73c93fd3395b5ca95651b920443ea9b70a7355b56a2c93bc3930274c51b21a74186314998ded7574f7f7b46579
|
7
|
+
data.tar.gz: 9e86c2f06209ea62132d3ca25f78a922b9c7461610198e8a191f2b62827954bd5014d43a75a64319fda2dfba18d67738e5a23904f55cc1f2b660826e9ea7c97e
|
@@ -56,7 +56,7 @@ module Abroad
|
|
56
56
|
# in double quotes
|
57
57
|
unescape(
|
58
58
|
strip_enclosing_quotes(
|
59
|
-
builder.doc.
|
59
|
+
builder.doc.children.first.children.map(&:to_xml).join.strip
|
60
60
|
)
|
61
61
|
)
|
62
62
|
end
|
@@ -64,6 +64,8 @@ module Abroad
|
|
64
64
|
def serialize(node, builder)
|
65
65
|
if node.text?
|
66
66
|
builder.text(unescape(node.text))
|
67
|
+
elsif node.cdata?
|
68
|
+
builder.cdata(node.text)
|
67
69
|
else
|
68
70
|
builder.send("#{node.name}_", node.attributes) do
|
69
71
|
node.children.each do |child|
|
@@ -16,10 +16,8 @@ module Abroad
|
|
16
16
|
private
|
17
17
|
|
18
18
|
def parse
|
19
|
-
Nokogiri::XML
|
20
|
-
|
21
|
-
config.options = Nokogiri::XML::ParseOptions::NONET
|
22
|
-
end
|
19
|
+
options = Nokogiri::XML::ParseOptions.new.default_xml.nonet
|
20
|
+
Nokogiri::XML(stream, nil, nil, options)
|
23
21
|
end
|
24
22
|
end
|
25
23
|
|
data/lib/abroad/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: abroad
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.2.
|
4
|
+
version: 4.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cameron Dutro
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: htmlentities
|
@@ -149,6 +149,7 @@ files:
|
|
149
149
|
- spec/extractors/xml/fixtures/basic_arrays.xml
|
150
150
|
- spec/extractors/xml/fixtures/basic_plurals.xml
|
151
151
|
- spec/extractors/xml/fixtures/basic_strings.xml
|
152
|
+
- spec/extractors/xml/fixtures/cdata.xml
|
152
153
|
- spec/extractors/xml/fixtures/entities.xml
|
153
154
|
- spec/extractors/xml/fixtures/markup.xml
|
154
155
|
- spec/extractors/xml/fixtures/newlines.xml
|