ruby-sfn-local 0.1.27 → 0.1.28
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sfn/state_machine.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1ded192dbca449ce9c35a0fdac5a33cff11a5d6e7c60bf2780de51e93463896
|
4
|
+
data.tar.gz: 0d3ccddbbded015d1bae65ca6459f68e19581121063d3d9a93e4c31d5402fbba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e18a67928a60e687dbe05e0ee1947feedfa16c4ecad21f45f2c483bd5efbf2391785b010031d16592ba8b2e7043b8f9a41621d99473721cfb0ef23404c0c70a8
|
7
|
+
data.tar.gz: 60e1b4cfdfb3497e767dfc1a2ac6afdfad190df3c97141c538500085170858a863f10166a63ec451b04f1387b637b4fe9c4dc90195a05abcc48bda1c6a18d701
|
data/lib/sfn/state_machine.rb
CHANGED
@@ -83,7 +83,7 @@ module Sfn
|
|
83
83
|
local_definition = local_definition.gsub(/,[\s\n]+\}/, "\n}")
|
84
84
|
local_definition = local_definition.gsub(/(\${[a-z_]+})/) do |variable|
|
85
85
|
key = variable.gsub(/[${}]/, '')
|
86
|
-
variables[key]
|
86
|
+
variables[key].to_s || variable
|
87
87
|
end
|
88
88
|
File.open(local_definition_path, 'w') { |file| file.puts local_definition }
|
89
89
|
"file://#{local_definition_path}"
|