sapluuna 0.1.6 → 0.1.7

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: 2cb8e3635b3e9624f1ebda8cd9c8c6e7657f7646
4
- data.tar.gz: cf400ac802aaf563271f77c2b0bcf1fe440a73a2
3
+ metadata.gz: 08c183c5c9228c8cd0b92d35d4431dc83afb39d6
4
+ data.tar.gz: b782533aac78700e6196d33ea251a04558b346cc
5
5
  SHA512:
6
- metadata.gz: 8e75994266e42742c92a9026b0fc91f02b944b94a21002d79d8b9c4e4d5691b9abaac0e98f136b9b0610a8b094fdd32892689d0f89a472753e13d792059de310
7
- data.tar.gz: de1b68215966d8a292652948d0e2b33100224af1cd0ac675410f0e7f08521ae830ac8b7cbcada19949b285ce1bf1f45d4d1b52366507016519fefdb1e685cdfb
6
+ metadata.gz: dc69d28c81e1303fc27aeabfae1eb1c0315aabc646e17e3df7e5fdd389ebdb10182efab47e149b6850276c9404596a1f37adbb22c9df548bc5ce1d9450f0513f
7
+ data.tar.gz: 189bd23af3893e47cefe1851ad088e1addf9261819bb7ef15ac1346fe61e02b3efc1f7e889b171bbbaecea163419ec349aeb0dc7fb6c02a161995d225cbdcf0a
@@ -45,6 +45,7 @@ class Sapluuna
45
45
  template = File.read resolve_file(file)
46
46
  @opts[:variables] = @variables
47
47
  @opts[:root_directory] = @root_directory.dup
48
+ @opts[:discover_variables] = @discover_variables
48
49
  Log.debug "importing #{file}"
49
50
  sapl = Sapluuna.new @opts
50
51
  output = sapl.parse template
@@ -73,9 +74,9 @@ class Sapluuna
73
74
  value = args.first.last
74
75
  case args.first.first
75
76
  when :is
76
- @variables[method] = value unless @variables[method]
77
+ @variables[method] ||= value
77
78
  when :are
78
- @variables[method] = value.to_s.strip.split(/\s+/) unless @variables[method]
79
+ @variables[method] ||= value.to_s.strip.split(/\s+/)
79
80
  end
80
81
  ""
81
82
  elsif @variables[method]
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'sapluuna'
3
- s.version = '0.1.6'
3
+ s.version = '0.1.7'
4
4
  s.licenses = %w( Apache-2.0 )
5
5
  s.platform = Gem::Platform::RUBY
6
6
  s.authors = [ 'Saku Ytti' ]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sapluuna
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Saku Ytti
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-29 00:00:00.000000000 Z
11
+ date: 2015-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: slop