cfn-model 0.4.21 → 0.4.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cfn-model/model/principal.rb +7 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06e74464ef87db60b2652a0dcefe8f57ce6bdc00b9b0a3d048e0ee2e8b72353e
|
4
|
+
data.tar.gz: 78a2bbd49071fa15c27b084bd4840b648d29e7345188744f0a160278f89c8050
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27f8ed29ff48d8d5be8bb2d0b210863f1f55fc4c19fed24b94f52380c50dcbefdf7a2c9daaab24d9abd59b7571e30107f9d82f0bfb1d12a1e1ace88859d5db7e
|
7
|
+
data.tar.gz: d519c045bbd93a1f6eb931b3ae0a6e1dd85ff0bbd48f14a928d8ef99b7bab2ddb9f43e777e1797dd77533c3c94f7fb6473d762b816015030e05a50ede1d97faf
|
@@ -15,7 +15,13 @@ class Principal
|
|
15
15
|
if principal_value.is_a? String
|
16
16
|
has_wildcard ||= has_asterisk principal_value
|
17
17
|
elsif principal_value.is_a? Array
|
18
|
-
wildcard_principal = principal_value.find
|
18
|
+
wildcard_principal = principal_value.find do |principal_iter|
|
19
|
+
if principal_iter.is_a? String
|
20
|
+
principal_iter =~ /\*/
|
21
|
+
else # could be Hash Ref/GetAtt
|
22
|
+
false
|
23
|
+
end
|
24
|
+
end
|
19
25
|
has_wildcard ||= !wildcard_principal.nil?
|
20
26
|
end
|
21
27
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cfn-model
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Kascic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-03-
|
11
|
+
date: 2020-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|