opulent 1.4.5 → 1.4.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/opulent/parser/define.rb +2 -2
- data/lib/opulent/parser/node.rb +1 -1
- data/lib/opulent/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05d310bfbdbf90ef6c0fab56f07cd3f270b625be
|
4
|
+
data.tar.gz: 070eba90f7f4ec83d427642268b1e1138c0ca7df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1497de762406f57d97afec44f8cd3f02b80a20202fbfeba31a1ce32fa324751e5fb5687f0408d5920c32b971873c47b9035946f452d129520f3f97066e9c4aee
|
7
|
+
data.tar.gz: 959f0e1d74856caccbada40bdfdddedd2de2548dc5bbb34eb35a785eab1911fdf8634374c7bbbcccf6b69de7f8872b26d49dc436c9e4afc6e31f2deaae61e87f
|
@@ -24,9 +24,9 @@ module Opulent
|
|
24
24
|
# Set definition as root node and let the parser know that we're inside
|
25
25
|
# a definition. This is used because inside definitions we do not process
|
26
26
|
# nodes (we do not check if they are have a definition or not).
|
27
|
-
@inside_definition =
|
27
|
+
@inside_definition = name
|
28
28
|
root(definition, indent)
|
29
|
-
@inside_definition =
|
29
|
+
@inside_definition = nil
|
30
30
|
|
31
31
|
# Add to parent
|
32
32
|
@definitions[name] = definition
|
data/lib/opulent/parser/node.rb
CHANGED
@@ -80,7 +80,7 @@ module Opulent
|
|
80
80
|
|
81
81
|
# Create a clone of the definition model. Cloning the options is also
|
82
82
|
# necessary because it's a shallow copy
|
83
|
-
if
|
83
|
+
if @inside_definition != node_name && @definitions.keys.include?(node_name)
|
84
84
|
parent[@children] << process_definition(node_name, current_node)
|
85
85
|
else
|
86
86
|
parent[@children] << current_node
|
data/lib/opulent/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opulent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Grozav
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|