rexle-builder 0.3.8 → 0.3.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
  SHA1:
3
- metadata.gz: d034f43549a4fc1fb7dd77652d9fd422365a8640
4
- data.tar.gz: 7ebdd419ef0c02edd86ab4804a05c925806a5f5a
3
+ metadata.gz: 673f3ba4e4ce4c2767ff25cf4294964fc1e501e2
4
+ data.tar.gz: 14b646bed8bb32adc9efd125d1c31eaef169a85d
5
5
  SHA512:
6
- metadata.gz: 7153dd1c1eada836ec1686dad883d30a85e8812a8c4ab2df9f30e026035de6fe64ec9cabefa4dc31f210758d0cbddc7be473ac46d2d65db65e99da02828fa535
7
- data.tar.gz: e530c16bf8a12fd02f6f3dd384ef71691be5800706603f0fe0170ac380b219c8ea5d159711c8318c88eea1e4b36f0b32a8f1b34e56187c5c7f78c0f934566412
6
+ metadata.gz: 6f8a0b23dfbd19a186da2bef7641f14ad155d55013644e50a506ae9a24a235666f23faa8492cf3b02aaf8d247797b41db278ebd0951bf2b4d5d5b51421918578
7
+ data.tar.gz: 3827c74972c7d0f6cde461753cfaaecc4b63654fada7077dea91bd18c7412d63847cf271f3c83508eb3fbe379dcf677d6cf218bfb9769cd4962b0050c05a0435
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -28,10 +28,11 @@ class RexleBuilder
28
28
 
29
29
  if obj.is_a? Hash then
30
30
 
31
- if obj.length > 1 then
31
+ key = obj.keys.first
32
+
33
+ if obj.length > 1 or obj[key].is_a? Array then
32
34
  self.root { buildx obj}
33
35
  else
34
- key = obj.keys.first
35
36
  self.send(key.to_sym) {buildx obj[key]}
36
37
  end
37
38
 
@@ -83,7 +84,7 @@ class RexleBuilder
83
84
  # build from a Hash object
84
85
  #
85
86
  def buildx( h)
86
-
87
+ puts 'h: ' + h.inspect
87
88
  h.each_pair do |key, value|
88
89
 
89
90
  if value.is_a? Hash then
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: 0.3.8
4
+ version: 0.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -30,7 +30,7 @@ cert_chain:
30
30
  aDX7i2H14HeFyGsVMNhU+xjp3bGnz2yvPVaW63pg8rJ2PXlFPy+fWzvYsNftG+Pk
31
31
  1/E=
32
32
  -----END CERTIFICATE-----
33
- date: 2018-03-29 00:00:00.000000000 Z
33
+ date: 2018-03-30 00:00:00.000000000 Z
34
34
  dependencies: []
35
35
  description:
36
36
  email: james@jamesrobertson.eu
metadata.gz.sig CHANGED
Binary file