aml 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aml/compile.rb +2 -2
- 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: 5ef62531f3a8d1ffdab780f12c1da037b17dc65c
|
4
|
+
data.tar.gz: 705a2d167d9afca4bc42f3867b69023688501b4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c125e8e7ef2937a39422b19b2179a0b7c97d38be8d396fa8294fb8222dc655bf5dd052f918b6b54218398fb658f0ec09cec02ff7643f3d84f791977f7f79832f
|
7
|
+
data.tar.gz: b4073acf76760b95276c020f6f93773b0732f9c1bc37ceb75f1ea0c3112609fe2b749c9551b058903bf97ce4e6de7774a017eef8f0f8cef0e587b5192e8370b6
|
data/lib/aml/compile.rb
CHANGED
@@ -31,14 +31,14 @@ class Compile
|
|
31
31
|
value = val.count > 1 ? val.to_a.last[1] : val[1]
|
32
32
|
value = line[:attributes][var.to_sym] if line[:attributes].has_key?(var.to_sym)
|
33
33
|
variable[var] = {1 => value} if value != nil
|
34
|
-
end
|
34
|
+
end if definition.variables[line[:bundle]] != nil
|
35
35
|
partial = Parse.new(File.join(directory),"#{line[:name]}.aml",true, line[:bundle])
|
36
36
|
partial.file[:line].each_with_index do |pline,pindex|
|
37
37
|
pline[:index] += line[:index]
|
38
38
|
pline[:number] = line[:number]
|
39
39
|
lines.insert(index+pindex,pline)
|
40
40
|
end
|
41
|
-
definition_partial[line[:bundle]] = definition_partial[line[:bundle]].merge(variable)
|
41
|
+
definition_partial[line[:bundle]] = definition_partial[line[:bundle]].merge(variable) if definition_partial[line[:bundle]] != nil
|
42
42
|
vars = DefinitionVariable.new(definition_partial)
|
43
43
|
prepare_line_variable(lines,vars)
|
44
44
|
break
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Esquivias
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Abstract Markup Language is a robust and feature rich markup language
|
14
14
|
designed to avoid repetition and promote clear, well-indented markup.
|