prick 0.24.0 → 0.25.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/builder/node_pool.rb +7 -1
- data/lib/prick/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c76b0bc51fa4b3303cadc824bb4ff0d1b9c2c76fd1d013bad4aa006737b7311e
|
4
|
+
data.tar.gz: 0a4b305df2d73da8a57c0d6f87494d796099fe7b1bdbb3970c372a41a92b36b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77fe61ee4e5d5583bed6dc63f85cafdeb5fb84fac7cc4fb1c8afb1854d9315d9d77d7b8a4607049581c81608617edfe73a986df7b2518d4acaa6be64c69241e8
|
7
|
+
data.tar.gz: c198b0391e2484951ec34e158f358dc5ac29537b247d72505abb9a9b1b80414c49b89b6c8790b03e4ccdefe76b1180aa0158ec4d34d1115682b7d53d79aad752
|
data/lib/builder/node_pool.rb
CHANGED
@@ -47,12 +47,18 @@ module Prick
|
|
47
47
|
|
48
48
|
def add(*nodes)
|
49
49
|
nodes = Array(nodes).flatten
|
50
|
+
term_nodes = [] # Ugly hack to do recursive init/term but preserve order within a term block
|
50
51
|
@nodes.concat(nodes)
|
51
52
|
@all_nodes.concat(nodes)
|
52
53
|
nodes.each { |node|
|
53
54
|
@schemas[node.schema] += 1
|
54
|
-
|
55
|
+
if node.phase == :term
|
56
|
+
term_nodes << node
|
57
|
+
else
|
58
|
+
@kind_nodes[node.phase]&.append(node)
|
59
|
+
end
|
55
60
|
}
|
61
|
+
term_nodes.reverse.each { |node| @kind_nodes[:term]&.append node }
|
56
62
|
self
|
57
63
|
end
|
58
64
|
|
data/lib/prick/version.rb
CHANGED