rexle-builder 1.0.4 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/rexle-builder.rb +16 -6
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 330ed47e2dbea9f32edf44ac2f8f24a51707bb36dc36a7ce2a363561145471c1
|
4
|
+
data.tar.gz: 856d76fd386f153f4b115a2029367e5ed5f4e9d1807b38998b747ff368d86ee6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0df19c5b5e472b4d11eaf91e8e44142de2bbe8ba5d856386bb788c355836cbebad8ea7155d4df495e49fa9a182f4ea42b6471336da2a7fcf08a31733228da0ae
|
7
|
+
data.tar.gz: ce199ba03c3a4282b809bd1a7a5e0bdfd2e35e16ffc6b1b0f130eaff1ec7b7e86e170907ef897d0228d671b7bcfe606598e9a15d020397ac5decac84da9433fe
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/rexle-builder.rb
CHANGED
@@ -95,7 +95,8 @@ class RexleBuilder
|
|
95
95
|
prev_a = @current_a
|
96
96
|
@current_a = a
|
97
97
|
|
98
|
-
r = yield()
|
98
|
+
r = yield(@current_a)
|
99
|
+
@current_a = prev_a
|
99
100
|
|
100
101
|
if @debug then
|
101
102
|
puts 'r: ' + r.inspect
|
@@ -103,10 +104,19 @@ class RexleBuilder
|
|
103
104
|
end
|
104
105
|
|
105
106
|
return r if r == @a.first
|
106
|
-
|
107
|
+
|
108
|
+
if r.is_a? Array then
|
109
|
+
|
110
|
+
# only concat if r contains raw Rexle elements.
|
111
|
+
if r.all? {|field, attributes, value| attributes.is_a? Hash} then
|
112
|
+
@current_a.concat r
|
113
|
+
end
|
114
|
+
|
115
|
+
end
|
107
116
|
puts '@current_a ' + @current_a.inspect if @debug
|
108
|
-
|
117
|
+
#@current_a = prev_a
|
109
118
|
return @a.first
|
119
|
+
#return @current_a
|
110
120
|
|
111
121
|
end
|
112
122
|
|
@@ -140,7 +150,7 @@ class RexleBuilder
|
|
140
150
|
puts 'buildx found Array' + value.inspect if @debug
|
141
151
|
puts 'key:' + key.inspect if @debug
|
142
152
|
|
143
|
-
self.send(key.to_sym) do
|
153
|
+
self.send(key.to_sym) do |row|
|
144
154
|
|
145
155
|
r2= []
|
146
156
|
value.each do |x|
|
@@ -151,12 +161,12 @@ class RexleBuilder
|
|
151
161
|
nil
|
152
162
|
else
|
153
163
|
puts 'x2:' + x.inspect if @debug
|
154
|
-
|
164
|
+
row << x
|
155
165
|
end
|
156
166
|
|
157
167
|
end
|
158
168
|
|
159
|
-
|
169
|
+
nil
|
160
170
|
end
|
161
171
|
|
162
172
|
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.
|
4
|
+
version: 1.0.7
|
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-
|
39
|
+
date: 2022-08-06 00:00:00.000000000 Z
|
40
40
|
dependencies: []
|
41
41
|
description:
|
42
42
|
email: digital.robertson@gmail.com
|
metadata.gz.sig
CHANGED
Binary file
|