opulent 1.6.3 → 1.6.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/opulent +0 -0
- data/lib/opulent/compiler/define.rb +1 -1
- data/lib/opulent/engine.rb +1 -1
- data/lib/opulent/parser/node.rb +12 -4
- 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: 757e6f7f89de04fb7289c260d40433dea0285b77
|
4
|
+
data.tar.gz: ebea7a80a01aa78fe4c677b1f7a8f91df824c2b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2995a418ea66cbf6246045085df69983dbe0402f48613c4426acae9b4f3f5c28da3f62b09bf37ea24ed8d5c3673e90b4d441387afe9a7df2785d4e17d6f03b23
|
7
|
+
data.tar.gz: 5e6f0f2e9ad09e052ed93ecec48882b7595751b5002647fc86fb790323479dac92da435beee7daf5d9141835e91896a0308d3e7bf1e3ccd48483d6b6b555ebc8
|
data/bin/opulent
CHANGED
File without changes
|
@@ -51,7 +51,7 @@ module Opulent
|
|
51
51
|
|
52
52
|
# Call arguments set to true, in correct order
|
53
53
|
arguments = []
|
54
|
-
@definitions[call_node[@value]][@options][:parameters].keys.each do
|
54
|
+
@definitions[call_node[@value]][@options][:parameters].keys.each do |k|
|
55
55
|
arguments << 'true'
|
56
56
|
end
|
57
57
|
arguments << '{}'
|
data/lib/opulent/engine.rb
CHANGED
data/lib/opulent/parser/node.rb
CHANGED
@@ -96,15 +96,23 @@ module Opulent
|
|
96
96
|
# @param call_context [Node] Initial node call with its attributes
|
97
97
|
#
|
98
98
|
def process_definition(node_name, call_context)
|
99
|
-
model =
|
99
|
+
model = [
|
100
|
+
:def,
|
101
|
+
node_name,
|
102
|
+
{},
|
103
|
+
[],
|
104
|
+
call_context[@indent]
|
105
|
+
]
|
100
106
|
model[@options] = {}.merge model[@options]
|
101
107
|
model[@options][:call] = call_context
|
102
108
|
|
109
|
+
# Deprecated @version 1.6.4
|
110
|
+
#
|
103
111
|
# Recursively map each child nodes to their definitions
|
104
112
|
# for the initial call node children and for the model
|
105
113
|
# children
|
106
|
-
process_definition_child model[@options][:call]
|
107
|
-
process_definition_child model
|
114
|
+
# process_definition_child model[@options][:call]
|
115
|
+
# process_definition_child model
|
108
116
|
|
109
117
|
model
|
110
118
|
end
|
@@ -117,7 +125,7 @@ module Opulent
|
|
117
125
|
node[@children].map! do |child|
|
118
126
|
if child[@type] == :node
|
119
127
|
if !@definition_stack.include?(child[@value]) &&
|
120
|
-
@definitions.
|
128
|
+
@definitions.key?(child[@value])
|
121
129
|
process_definition child[@value], child
|
122
130
|
else
|
123
131
|
process_definition_child child if child[@children]
|
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.6.
|
4
|
+
version: 1.6.5
|
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-12-
|
11
|
+
date: 2015-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|