xml-simple 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/xmlsimple.rb +4 -5
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d26beca8a145e0ff6fc948e689d4a7ee61e26e65
4
- data.tar.gz: c113039b7628e3f0b59b5bb89a0210a2dc6d81cc
3
+ metadata.gz: 068e3be25c5a9565cee2d420a9c396c851fb66e4
4
+ data.tar.gz: 21523e733014986f92569c8a2e0e32e0617945c1
5
5
  SHA512:
6
- metadata.gz: ee234b6954f51f35122c80ab7146911e1511e3a375800a258666fb8a94e4eaf8b4dd56c736efdc7c985e1dcb35ae5f5c5d81e89c80e59c3a4d41456875342ff8
7
- data.tar.gz: b227103d60e5400e1ea69ca19638639048aa7d0f465d7705b19995e7cb86dc65906d9f9053514daffee2bb2756aeb72f097d58ed646ba25bb88a31cc2244b5fc
6
+ metadata.gz: e4fd65ac9b33e3723968f59030366b0400ff14c61c290eecc6cd7d24e06a6768279a64ff514c3f4111c8cd89a06d8a5373e976c7e97fce2eba03d5631527d4bb
7
+ data.tar.gz: 9fede257f59b389c890003c9995762c1714f6e70d6c9e0067f200c4dfb7d90fe3a69f068f24229265c8f483d274393f123a89ff7fda9117cf41c824d0c86acb3
@@ -11,7 +11,7 @@ require 'stringio'
11
11
  class XmlSimple
12
12
  include REXML
13
13
 
14
- @@VERSION = '1.1.3'
14
+ @@VERSION = '1.1.4'
15
15
 
16
16
  # A simple cache for XML documents that were already transformed
17
17
  # by xml_in.
@@ -721,10 +721,9 @@ class XmlSimple
721
721
  # element::
722
722
  # Document element to be checked.
723
723
  def has_mixed_content?(element)
724
- if element.has_text? && element.has_elements?
725
- return true if element.texts.join('') !~ /^\s*$/
726
- end
727
- false
724
+ element.has_text? &&
725
+ element.has_elements? &&
726
+ !element.texts.join('').strip.empty?
728
727
  end
729
728
 
730
729
  # Called when a variable definition is encountered in the XML.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xml-simple
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maik Schmidt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-25 00:00:00.000000000 Z
11
+ date: 2014-07-02 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: contact@maik-schmidt.de