kameleon-builder 2.7.0 → 2.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.bumpversion.cfg CHANGED
@@ -1,7 +1,7 @@
1
1
  [bumpversion]
2
2
  commit = True
3
3
  tag = True
4
- current_version = 2.7.0
4
+ current_version = 2.7.1
5
5
  parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.(?P<release>[a-z]+))?
6
6
  serialize =
7
7
  {major}.{minor}.{patch}.{release}
data/CHANGES CHANGED
@@ -1,6 +1,11 @@
1
1
  Kameleon CHANGELOG
2
2
  ==================
3
3
 
4
+ Version 2.7.1
5
+ -------------
6
+
7
+ - Non-strictly template variable resolution (Fixed #67)
8
+
4
9
  Version 2.7.0
5
10
  -------------
6
11
 
data/lib/kameleon/cli.rb CHANGED
@@ -145,7 +145,7 @@ module Kameleon
145
145
 
146
146
  begin
147
147
  tpl = Kameleon::RecipeTemplate.new(template_path)
148
- tpl.resolve!
148
+ tpl.resolve! :strict => false
149
149
  rescue
150
150
  raise TemplateNotFound, "Template '#{template_name}' not found. " \
151
151
  "To see all templates, run the command "\
@@ -509,14 +509,14 @@ module Kameleon
509
509
  fail RecipeError, "Cannot found data '#{partial_path}' unsed in '#{step_path}'"
510
510
  end
511
511
 
512
- def resolve!
512
+ def resolve!(kwargs = {})
513
513
  unless @global.keys.include? "kameleon_uuid"
514
514
  kameleon_id = SecureRandom.uuid
515
515
  @global["kameleon_uuid"] = kameleon_id
516
516
  @global["kameleon_short_uuid"] = kameleon_id.split("-").last
517
517
  end
518
518
  # Resolve dynamically-defined variables !!
519
- resolved_global = Utils.resolve_vars(@global.to_yaml, @path, @global, self)
519
+ resolved_global = Utils.resolve_vars(@global.to_yaml, @path, @global, self, kwargs)
520
520
  @global.merge! YAML.load(resolved_global)
521
521
 
522
522
  consistency_check
data/version.txt CHANGED
@@ -1 +1 @@
1
- 2.7.0
1
+ 2.7.1
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kameleon-builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.0
4
+ version: 2.7.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2015-12-09 00:00:00.000000000 Z
16
+ date: 2016-01-22 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: childprocess