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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 82cbf36efa46ec017fd60d1ac8efafe06623ea3f
4
- data.tar.gz: 0ecdd281d8fa06e63a28e61bb8153b6b2e5efaa8
3
+ metadata.gz: 05d310bfbdbf90ef6c0fab56f07cd3f270b625be
4
+ data.tar.gz: 070eba90f7f4ec83d427642268b1e1138c0ca7df
5
5
  SHA512:
6
- metadata.gz: 4c97f86d85c1d93271af048cd9feaf9019676a051d86fe4d64d6b3c0aeae18cf002fbe7cecd42121f473e48fd04ecce947de14781a82af07002200047bb95464
7
- data.tar.gz: 55058b47c8c54b0944cefa2ce063c47c282e442e5e98be67be2b073a538f18a9388074aaad3bb48ed266787729e98abda671c18c955fda85ee8042fee70b1465
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 = true
27
+ @inside_definition = name
28
28
  root(definition, indent)
29
- @inside_definition = false
29
+ @inside_definition = nil
30
30
 
31
31
  # Add to parent
32
32
  @definitions[name] = definition
@@ -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 !@inside_definition && @definitions.keys.include?(node_name)
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
@@ -1,4 +1,4 @@
1
1
  # @Opulent
2
2
  module Opulent
3
- VERSION = "1.4.5"
3
+ VERSION = "1.4.6"
4
4
  end
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.5
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-13 00:00:00.000000000 Z
11
+ date: 2015-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler