xml-smart 0.5.1 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/example/xpath_visual +1 -1
- data/lib/xml/smart_domnamespaceset.rb +8 -1
- data/test/EXAMPLE.xml +1 -1
- data/test/concurrent.xml +1 -7
- data/test/tc_create.rb +1 -1
- data/xml-smart.gemspec +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: 1aa0c1eb175a7fffab97dfffca54c2f477e52319eff70e5e7a9ee520db5285c2
|
4
|
+
data.tar.gz: 4458cd907d7d63ec5ec95e398f39d657a167c22c22cbd804315108613aa59cd7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c043a8f1727d6f6f8c2f812700da29d1768e72a26563bdf65c106c582ad717b7421fa3e06238657982968e2a59628e776d9b858ffe6c471a342437ce356e1010
|
7
|
+
data.tar.gz: 98c7b47d441903da0a2d5f6d26f80720986a30d4f69849656efe31719271ab8e9197899b06090c144e30ae8aa8aa5052b4009afd03aed08205ba65e6d26501de
|
data/example/xpath_visual
CHANGED
@@ -30,7 +30,14 @@ module XML
|
|
30
30
|
self.add(name,value)
|
31
31
|
end
|
32
32
|
|
33
|
-
def add(
|
33
|
+
def add(a,b=nil)
|
34
|
+
if b.nil?
|
35
|
+
name = nil
|
36
|
+
value = a
|
37
|
+
else
|
38
|
+
name = a
|
39
|
+
value = b
|
40
|
+
end
|
34
41
|
if (name.respond_to?(:to_s) || name.nil?) && value.respond_to?(:to_s)
|
35
42
|
nnod = Nokogiri::XML::Node.new(@node.name,@node.document)
|
36
43
|
nnew = Element.new(nnod)
|
data/test/EXAMPLE.xml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
<test xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xml:lang="de">
|
2
2
|
<names>
|
3
|
-
<name team="0" a="3">
|
3
|
+
<name team="0" a="3">2023-06-11 19:39:57 +0200</name>
|
4
4
|
<name team="1">Jürgen</name>
|
5
5
|
<name team="1">Michel</name>
|
6
6
|
<name team="1">Raphi</name>
|
data/test/concurrent.xml
CHANGED
@@ -1,7 +1 @@
|
|
1
|
-
<solutions>
|
2
|
-
<solution matnr="9906264" name="mangler" secid="1" when="2021-11-03T02:24:55+01:00" assessment="16">
|
3
|
-
<question block="1" question="2"/>
|
4
|
-
<question block="2" question="4"/>
|
5
|
-
<question block="3" question="6"/>
|
6
|
-
</solution>
|
7
|
-
</solutions>
|
1
|
+
<solutions><solution matnr="9906264" name="mangler" secid="1" assessment="16"><question block="1" question="2"/><question block="2" question="4"/><question block="3" question="6"/></solution></solutions>
|
data/test/tc_create.rb
CHANGED
@@ -6,7 +6,7 @@ class TestCreate < Minitest::Test
|
|
6
6
|
# When a string as second paramter is provided, then a empty
|
7
7
|
# xml file is created if it not exists. A block has to be supplied
|
8
8
|
#
|
9
|
-
# XML::Smart.modify(FILE,STRING) {} ... create file if !
|
9
|
+
# XML::Smart.modify(FILE,STRING) {} ... create file if !exist?
|
10
10
|
# XML::Smart.modify(FILE) {} ... just open file change and write back (LOCKTIMEOUT defaults to 7)
|
11
11
|
|
12
12
|
File.unlink ::File.dirname(__FILE__) + "/EXAMPLE.tmp.xml" rescue nil
|
data/xml-smart.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xml-smart
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juergen eTM Mangler
|
8
8
|
autorequire:
|
9
9
|
bindir: example
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -164,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
164
|
- !ruby/object:Gem::Version
|
165
165
|
version: '0'
|
166
166
|
requirements: []
|
167
|
-
rubygems_version: 3.
|
167
|
+
rubygems_version: 3.5.22
|
168
168
|
signing_key:
|
169
169
|
specification_version: 4
|
170
170
|
summary: An xml library that doesn't suck (for me) - since 2004.
|