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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/rexle-builder.rb +9 -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: eec3c5bd51d556baa88d4ba54c51405f02e7a6aacfdeadc927a8b662380eb19b
|
4
|
+
data.tar.gz: 023afa3c56cfd449f86db01ec1e3200231fd33faa202429dea943dc266350a54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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?
|
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
|
-
|
166
|
+
row << x
|
164
167
|
end
|
165
168
|
|
166
169
|
end
|
167
170
|
|
168
|
-
|
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.
|
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-
|
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
|