xml-mixup 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xml/mixup.rb +2 -1
- data/lib/xml/mixup/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48a86946adc9a44a1bc9d986416ef411991303edb21e9504c65298780133b57d
|
4
|
+
data.tar.gz: da5b71064ada3a7d49ce014c30432aed83a0d04543ef581b2952279522bda033
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b841ff188b208a3986ccc97b8a44df1c29b0371bef01d113cf03358c8757ed728e906e8585ec1233acccdf16d2676a78052fbeb50eb75e972d073785b28ad1f
|
7
|
+
data.tar.gz: 6c83a42f76ba918526bf2bc192de5e101fea497593983e8c5d8415a66eefabe5c786302f58bbb488f01954ba6a45dbdab133f6598c8d129794f4fb34a73d05d5
|
data/lib/xml/mixup.rb
CHANGED
@@ -139,6 +139,7 @@ module XML::Mixup
|
|
139
139
|
|
140
140
|
# dispatch based on spec type
|
141
141
|
if spec and not (spec.respond_to? :empty? and spec.empty?)
|
142
|
+
spec = spec.to_a if spec.is_a? Nokogiri::XML::NodeSet
|
142
143
|
if spec.is_a? Array
|
143
144
|
par = adj == :parent ? nodes[:parent] : doc.fragment
|
144
145
|
out = spec.map do |x|
|
@@ -346,7 +347,7 @@ module XML::Mixup
|
|
346
347
|
else
|
347
348
|
if spec.is_a? Nokogiri::XML::Node
|
348
349
|
# existing node
|
349
|
-
node = spec.dup
|
350
|
+
node = spec.dup 1
|
350
351
|
else
|
351
352
|
# text node
|
352
353
|
node = doc.create_text_node spec.to_s
|
data/lib/xml/mixup/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xml-mixup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dorian Taylor
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -105,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
105
|
version: '0'
|
106
106
|
requirements: []
|
107
107
|
rubyforge_project:
|
108
|
-
rubygems_version: 2.7.6
|
108
|
+
rubygems_version: 2.7.6.2
|
109
109
|
signing_key:
|
110
110
|
specification_version: 4
|
111
111
|
summary: A mixin for (XML) markup
|