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 +4 -4
- data/lib/sapluuna/context.rb +3 -2
- data/sapluuna.gemspec +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: 08c183c5c9228c8cd0b92d35d4431dc83afb39d6
|
4
|
+
data.tar.gz: b782533aac78700e6196d33ea251a04558b346cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc69d28c81e1303fc27aeabfae1eb1c0315aabc646e17e3df7e5fdd389ebdb10182efab47e149b6850276c9404596a1f37adbb22c9df548bc5ce1d9450f0513f
|
7
|
+
data.tar.gz: 189bd23af3893e47cefe1851ad088e1addf9261819bb7ef15ac1346fe61e02b3efc1f7e889b171bbbaecea163419ec349aeb0dc7fb6c02a161995d225cbdcf0a
|
data/lib/sapluuna/context.rb
CHANGED
@@ -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]
|
77
|
+
@variables[method] ||= value
|
77
78
|
when :are
|
78
|
-
@variables[method]
|
79
|
+
@variables[method] ||= value.to_s.strip.split(/\s+/)
|
79
80
|
end
|
80
81
|
""
|
81
82
|
elsif @variables[method]
|
data/sapluuna.gemspec
CHANGED
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.
|
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-
|
11
|
+
date: 2015-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: slop
|