rexle-builder 1.0.1 → 1.0.2

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: eda1c60846fb9f76df929bf427ce589c969482ad8e7fefb5fb3f2ece28acd54a
4
- data.tar.gz: 337188bbc932c1824c70a753da66c5fa00216e6500c7d673adf4796371273c5d
3
+ metadata.gz: 173cd08ae892bc695eba952bfbe63fc021ef7a3fd0241b399e36cff7a8c1b5c8
4
+ data.tar.gz: 2e31849b636155a8251e1a2a06620f33b1b868a7fc1d90cca981619a76041f9b
5
5
  SHA512:
6
- metadata.gz: 6cf481ebbddf24c43907ace9c67892029f4f392e5404108c54c38ea363e079ba0ae94db52f38d714b3ee426121dee83aa59487ea307433110cb0e0a3199131bd
7
- data.tar.gz: 3cfd8fbf699b75baa0e379519101205b4cf43496469a9c12cb84d111cf1c66974f59721aa6431734d674d078e8d59d78965a5374db1a5f6b61646262f7ef714b
6
+ metadata.gz: b16a7f83b82355b14e61f320a4f032ffa29697fe6850b386490754da64a1cf19eced22b92c49deba892ed1bcd616978065ce0f27e0c342b2e4f0f10bc468152f
7
+ data.tar.gz: 75ea0138a555d42c640f94fe7600f8e0970e2e0ba58760a36af1cdcf17479fb33108decbee4a6fae604541a674755dace8c0493c711e794bc0cff507ed1841c4
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -53,11 +53,11 @@ class RexleBuilder
53
53
 
54
54
  puts 'args: ' + args.inspect if @debug
55
55
 
56
- value = args.shift if args.first.is_a? String
56
+ value = args.find {|x| x.is_a? String} || ''
57
+ attributes, obj = args.select {|x| x.is_a? Hash}
57
58
 
58
59
  # The obj is an optional Hash object used to build nested XML
59
60
  # after the current element
60
- attributes, obj = args
61
61
 
62
62
  if value =~ /^<.*>$/ then
63
63
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rexle-builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file