cfhighlander 0.11.1.alpha.1583312876 → 0.11.1.alpha.1586487717

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cfhighlander.helper.rb +6 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 28bc554f5dbe5d89db3a0d12d0649903c2b59b976c63110530dd9e0ec754a314
4
- data.tar.gz: 1404f65182b6826821c9e227cce60002e6f7ec0d84f4a691c6af2e8862cb46db
3
+ metadata.gz: 2ae950ca4b107a0a330ac805e319ac91061ffde51ae6f5d059d8d1599d122cb5
4
+ data.tar.gz: 983c7ceb6af7c35bdef6b57b535c1b8dc4ea7b2b49be41bf4fae7fb4a48ec4c9
5
5
  SHA512:
6
- metadata.gz: 8fca227daacfa6a41fa7f177ebcfd81937c9a5a5b3effa21ab3d7be200cf1a8f052fde8ffedde07b80ca1ecab3856482f089adb429d2ff024070a6c3086a503e
7
- data.tar.gz: 19b1bd7103256a3c0a6530cc407a5d560dc12513b0a81efd0842eb052676c34ebb0f5a9cb7cc47c71c9a9c57115af8913b94d1852ba5c69f2eb474c4e0fe88ea
6
+ metadata.gz: 001d301dcef29c9f413a23a4922a75517f71931a98e7a097fc20d84ac085d8c56a6e733faa867cb4045580114edf77e95c2a800e7281e76fb650965fe7a1a987
7
+ data.tar.gz: 60a932d9f21e74e63ff7f1c011913fa906acee71eb33eb57cf8b3960d038ed9dd57cc37b28eac641bd3af1bebb5a016301704004bd0f19db70ec4ee3bd418caa
@@ -4,16 +4,21 @@ module Cfhighlander
4
4
  module Helper
5
5
 
6
6
 
7
- def self.parameter_cfndsl_value(value)
7
+ def self.parameter_cfndsl_value(value, nested = false)
8
8
 
9
9
  if value.class == String
10
10
  return "'#{value}'"
11
11
  end
12
12
 
13
13
  if value.class == Hash
14
+ return value if nested
14
15
  return value.to_json
15
16
  end
16
17
 
18
+ if value.class == Array
19
+ return value.collect { |it| self.parameter_cfndsl_value(it, nested = true) }
20
+ end
21
+
17
22
  return "'#{value}'"
18
23
 
19
24
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfhighlander
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.1.alpha.1583312876
4
+ version: 0.11.1.alpha.1586487717
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nikola Tosic
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2020-03-04 00:00:00.000000000 Z
13
+ date: 2020-04-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: highline