aml 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/aml/compile.rb +2 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d4b570522d90f38a6a78c9f4d36370e1480a9c6b
4
- data.tar.gz: 09b2e484133f8582394a8a3b70d5c8c3d6404ec3
3
+ metadata.gz: 5ef62531f3a8d1ffdab780f12c1da037b17dc65c
4
+ data.tar.gz: 705a2d167d9afca4bc42f3867b69023688501b4e
5
5
  SHA512:
6
- metadata.gz: 8eb4411d411dc530e534b21f3de8c5533d3db16e3844b60bfe58e53a82d420ade1a25a8c9d135418afec5313c535a408e2479e1dd959e926c920de364343193b
7
- data.tar.gz: 950f51998431245bb29040cdcaba48745b9cc1725c8cfc906900c0246e8c3925c941865227936a0b730a2bb02e501be7ad3adcc5c54038fcad84016aa2a4cea5
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.6
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: 2013-12-11 00:00:00.000000000 Z
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.