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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8d600f3895e5048db0b914aa5252b480486bf0c45591a3eb73e4ddcef410b5d8
4
- data.tar.gz: '088830420d03127e46e1d5d9e23dc8e6e9ab9bf9caad6ad88f9906ad8928fabe'
3
+ metadata.gz: 48a86946adc9a44a1bc9d986416ef411991303edb21e9504c65298780133b57d
4
+ data.tar.gz: da5b71064ada3a7d49ce014c30432aed83a0d04543ef581b2952279522bda033
5
5
  SHA512:
6
- metadata.gz: ac41a0326ac73bff9b2fb89f8ead181e0cc308195d64d0b29ad76315e8c8687dfd570eb546572212fb8ab2f6fd08d6c559a0a1069982b18cadd4eb4c45c56384
7
- data.tar.gz: 8fea64d8a5079e1f7e6e4e592f4517499c5026281ae9c62806f91e4e8aa2fdaf6fce26bfd739dabbe6d003f10ab7df30873f63698f9e1f4a86d6d1f9ad0a3f73
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
@@ -1,5 +1,5 @@
1
1
  module XML
2
2
  module Mixup
3
- VERSION = "0.1.8"
3
+ VERSION = "0.1.9"
4
4
  end
5
5
  end
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.8
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-04-10 00:00:00.000000000 Z
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