xml-smart 0.3.7.1 → 0.3.7.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -192,7 +192,7 @@ module XML
192
192
  end
193
193
  def parent?; !@element.parent.nil?; end
194
194
 
195
- def empty?; children?; end
195
+ def empty?; !children?; end
196
196
  def mixed?;
197
197
  @element.xpath_fast('*').length > 0 && @element.xpath_fast("string(text())") != '';
198
198
  end
data/test/EXAMPLE.tmp.xml CHANGED
@@ -1,3 +1,4 @@
1
1
  <elements>
2
+ <element>Thread 1</element>
2
3
  <element>Thread 2</element>
3
4
  </elements>
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">2013-08-30 00:29:20 +0200</name>
3
+ <name team="0" a="3">2013-08-30 01:18:22 +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 +1,7 @@
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>
1
+ <solutions>
2
+ <solution matnr="9906264" name="mangler" secid="1" when="2013-08-30T01:18:17+02: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>
data/xml-smart.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "xml-smart"
3
- s.version = "0.3.7.1"
3
+ s.version = "0.3.7.2"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3"
6
6
  s.summary = "An xml library that doesn't suck - since 2004."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xml-smart
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7.1
4
+ version: 0.3.7.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: