cfhighlander 0.11.1 → 0.11.2.alpha.1586487761
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cfhighlander.helper.rb +6 -1
- data/lib/cfhighlander.version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8d8803e02c163131dbdb2d316488a1753095b3275139036fb219803ae7bc2c2
|
4
|
+
data.tar.gz: 3b8e62de09c04d8d016e7ab42970c69e6cad75ba3985bdd99e4d8d729959ec52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c8f3e2eccf6391e2dd6d4d91e49a9ab193354d7c39a22feec9b52f03840178e25f7a2d35c85473ceb4617affa3859b9501749377729ff9fcbbd8f78649492c8
|
7
|
+
data.tar.gz: 96b9ec67d16d08174935092417a3bfeafe6572cc6abfe9fde96dc555ae6ddc91d78bf07ed8ba0dab849b9e1718ec930db6d68378069aab0d8cebc378ea3b602b
|
data/lib/cfhighlander.helper.rb
CHANGED
@@ -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
|
data/lib/cfhighlander.version.rb
CHANGED
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.
|
4
|
+
version: 0.11.2.alpha.1586487761
|
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-
|
13
|
+
date: 2020-04-10 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: highline
|
@@ -277,9 +277,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
277
277
|
version: '0'
|
278
278
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
279
279
|
requirements:
|
280
|
-
- - "
|
280
|
+
- - ">"
|
281
281
|
- !ruby/object:Gem::Version
|
282
|
-
version:
|
282
|
+
version: 1.3.1
|
283
283
|
requirements: []
|
284
284
|
rubyforge_project:
|
285
285
|
rubygems_version: 2.7.7
|