prick 0.25.0 → 0.25.1

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: 44a5c61834f4d74cadac1d13ceecd0de91a01ebe3b10f456cb1c79b8f4e26503
4
- data.tar.gz: d6841d97964a6c1e7bf8d91d70463893d9d1c7a763ee7e1b3d8ddcfc02db272b
3
+ metadata.gz: c76b0bc51fa4b3303cadc824bb4ff0d1b9c2c76fd1d013bad4aa006737b7311e
4
+ data.tar.gz: 0a4b305df2d73da8a57c0d6f87494d796099fe7b1bdbb3970c372a41a92b36b5
5
5
  SHA512:
6
- metadata.gz: 4a9264bd04ef820b04c838d50520d92f294bc5171e80292345297f0278d11a51d71f65e3138e52de4e559e9dfe9fb843ae29dc4bf8265205514f1459476d28d4
7
- data.tar.gz: 0f518d3c71e7acdbe905351d8a91da488bcfe07010cce4d2bd39144e1fd51d517176564ccfe5d9ac5992b35eb76b60fca2df4849503ea6fc4a3764904dd697a1
6
+ metadata.gz: 77fe61ee4e5d5583bed6dc63f85cafdeb5fb84fac7cc4fb1c8afb1854d9315d9d77d7b8a4607049581c81608617edfe73a986df7b2518d4acaa6be64c69241e8
7
+ data.tar.gz: c198b0391e2484951ec34e158f358dc5ac29537b247d72505abb9a9b1b80414c49b89b6c8790b03e4ccdefe76b1180aa0158ec4d34d1115682b7d53d79aad752
@@ -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
- @kind_nodes[node.phase]&.append(node)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Prick
4
- VERSION = "0.25.0"
4
+ VERSION = "0.25.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prick
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.25.0
4
+ version: 0.25.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claus Rasmussen