rexle-builder 1.0.6 → 1.0.8

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: c98998f1d62f33c83da0eae198fac89ba2f16a3652a7170130359965a7956cea
4
- data.tar.gz: 15dcf04397f8e4fbd5aafe1c17cbca18ea2e6d7e094fbe50b4f9a66106cf4c53
3
+ metadata.gz: eec3c5bd51d556baa88d4ba54c51405f02e7a6aacfdeadc927a8b662380eb19b
4
+ data.tar.gz: 023afa3c56cfd449f86db01ec1e3200231fd33faa202429dea943dc266350a54
5
5
  SHA512:
6
- metadata.gz: 0b205afb74f88735a0f142ab84b943428a3dfbe50dc6ab6e288bdfbea2eba7b96fbeb82ed9402b92938296ee149d366c7b4bb70125208274bf0df7212e48b42f
7
- data.tar.gz: daf70043a5c2ba48688c0b9fcdf726e69a94313b17f58d271f9e7b7595486d4583f00a640b4b46697036b6b02890411bf748ceb49a7d43f0398313edb9d0bbcc
6
+ metadata.gz: ab74246fc84c45734485c84b2e98e00e246a06af3e9a9fd8c569c19882180019708012853c4d73731e0ef9709fe0ff0f177d8743489886d1361deb84c33a7d30
7
+ data.tar.gz: a0804c3f047a9bcbf93275124ede6e6aa8bc3e67fe931513fb48516c058740ff17f2cf1ba671bc4b8ff0569c8c752b39d5fe648a7c61fdc47f014afdddd743e3
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/rexle-builder.rb CHANGED
@@ -95,7 +95,7 @@ class RexleBuilder
95
95
  prev_a = @current_a
96
96
  @current_a = a
97
97
 
98
- r = yield()
98
+ r = yield(@current_a)
99
99
  @current_a = prev_a
100
100
 
101
101
  if @debug then
@@ -106,9 +106,11 @@ class RexleBuilder
106
106
  return r if r == @a.first
107
107
 
108
108
  if r.is_a? Array then
109
-
109
+
110
110
  # only concat if r contains raw Rexle elements.
111
- if r.all? {|field, attributes, value| attributes.is_a? Hash} then
111
+ if r.all? {|field, attributes, value| attributes.is_a?(Hash) and \
112
+ value} then
113
+ puts 'concatenating: ' + r.inspect if @debug
112
114
  @current_a.concat r
113
115
  end
114
116
 
@@ -116,6 +118,7 @@ class RexleBuilder
116
118
  puts '@current_a ' + @current_a.inspect if @debug
117
119
  #@current_a = prev_a
118
120
  return @a.first
121
+ #return @current_a
119
122
 
120
123
  end
121
124
 
@@ -149,7 +152,7 @@ class RexleBuilder
149
152
  puts 'buildx found Array' + value.inspect if @debug
150
153
  puts 'key:' + key.inspect if @debug
151
154
 
152
- self.send(key.to_sym) do
155
+ self.send(key.to_sym) do |row|
153
156
 
154
157
  r2= []
155
158
  value.each do |x|
@@ -160,12 +163,12 @@ class RexleBuilder
160
163
  nil
161
164
  else
162
165
  puts 'x2:' + x.inspect if @debug
163
- r2 << x
166
+ row << x
164
167
  end
165
168
 
166
169
  end
167
170
 
168
- r2
171
+ nil
169
172
  end
170
173
 
171
174
  else
data.tar.gz.sig CHANGED
Binary file
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.6
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -36,7 +36,7 @@ cert_chain:
36
36
  w7Z+7EzJFzhHpXYm4QBYR+qb81pB/ZX0LWtVs/2jjCWoCOOdIuH/jh+DzQk4Qhby
37
37
  R02xW5SGXEOiylE3Q9SDqGfvomcQ8ENDYts=
38
38
  -----END CERTIFICATE-----
39
- date: 2022-07-31 00:00:00.000000000 Z
39
+ date: 2022-09-28 00:00:00.000000000 Z
40
40
  dependencies: []
41
41
  description:
42
42
  email: digital.robertson@gmail.com
metadata.gz.sig CHANGED
Binary file