cloud_former 0.7.6 → 0.7.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: 261e85fc183e077b9f8db8a44e8f627c4524127a
4
- data.tar.gz: a9b2e2c1c7569e5be4794022a8825791ab6ffef8
3
+ metadata.gz: e66d4728fe7e5e2501f858fc528f8849e9e95d1a
4
+ data.tar.gz: 09adbaffceb256bd691646f743d03557e2a4c6f8
5
5
  SHA512:
6
- metadata.gz: 5c50531eec0a4e47b49be7733907709b2d7b379d35519dffad5447e6512dcbc8eeaf957fe1ca47165070d043ef673c0aa51fc35fc43f71340807e2fff652f141
7
- data.tar.gz: 640d2b692a259f804b2d6ef306665af43836303851a1d9b0aa7a1e45db077e0ad19575121e00bdee5f4a7b9bc7ead2c4919598c54658aba6ed2b555adc3f2ad7
6
+ metadata.gz: 90254cac0d3a64cd67896c183d5147aca083975e89e12065be6196f1737eb766464b43de255ea075797fba3a044035f6b15d702d72a189fffc920329c0755daf
7
+ data.tar.gz: 489c45cddcc49d5454e4d028d5ab908f5199c3625b6fa458f364a73bbe2b00684990e79d877ec57c83427fe7fe6b5d113aab2a5bd3e21031a3e42fcd69098d27
@@ -11,12 +11,16 @@ module CloudFormer
11
11
  def dump_json
12
12
  if @true_value.respond_to?(:get_name)
13
13
  tv = { 'Ref' => @value1.get_name }
14
+ elsif @true_value.is_a?(Function)
15
+ tv = @true_value.dump_json
14
16
  elsif @true_value.respond_to?(:to_s)
15
17
  tv = @true_value.to_s
16
18
  end
17
19
 
18
20
  if @false_value.respond_to?(:get_name)
19
21
  fv = { 'Ref' => @false_value.get_name }
22
+ elsif @false_value.is_a?(Function)
23
+ fv = @false_value.dump_json
20
24
  elsif @false_value.respond_to?(:to_s)
21
25
  fv = @false_value.to_s
22
26
  end
@@ -1,3 +1,3 @@
1
1
  module CloudFormer
2
- VERSION = '0.7.6'
2
+ VERSION = '0.7.7'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloud_former
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.6
4
+ version: 0.7.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aubrey Holland