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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4b919879515c1a4aaed4c4e2b8da9fd233177ac3
4
- data.tar.gz: 0e9bb586b31646c3d7ff06e72ba50934a04aeafa
3
+ metadata.gz: 757e6f7f89de04fb7289c260d40433dea0285b77
4
+ data.tar.gz: ebea7a80a01aa78fe4c677b1f7a8f91df824c2b6
5
5
  SHA512:
6
- metadata.gz: 87afc4f4ded52a120b96da282f7c79887c9a19c691778084371366d361b7ba0fdddec03e1bf87278e16abf20d1db9de33132f811f54d366c82eefeb58b72d89e
7
- data.tar.gz: e0b026abc6790794ba505b50d08676626fe70edee29041173f9544b38c789fc418dcbb0f4bfbee5357fcffafa482f14b35c535d4dec23a33f37ab44f7c5cce4e
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 << '{}'
@@ -2,7 +2,7 @@
2
2
  module Opulent
3
3
  # Debug enable
4
4
  #
5
- DEBUG = false
5
+ DEBUG = true
6
6
 
7
7
  # Module method wrapper for creating a new engine instance
8
8
  #
@@ -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 = @definitions[node_name].clone
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.keys.include?(child[@value])
128
+ @definitions.key?(child[@value])
121
129
  process_definition child[@value], child
122
130
  else
123
131
  process_definition_child child if child[@children]
@@ -1,4 +1,4 @@
1
1
  # @Opulent
2
2
  module Opulent
3
- VERSION = '1.6.3'
3
+ VERSION = '1.6.5'
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.6.3
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-10 00:00:00.000000000 Z
11
+ date: 2015-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler