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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 48ea408cd8f4f97a44c2311a57452d1dd214c3cdfdb99089e86dc18502a195b1
4
- data.tar.gz: 1cc8dab58d673119e52ac787a9af567c0c9e4b124a8189dacedb65f864926efd
3
+ metadata.gz: 06e74464ef87db60b2652a0dcefe8f57ce6bdc00b9b0a3d048e0ee2e8b72353e
4
+ data.tar.gz: 78a2bbd49071fa15c27b084bd4840b648d29e7345188744f0a160278f89c8050
5
5
  SHA512:
6
- metadata.gz: 9589f7ae9191ed366708812033f2d978dc8f86e87710a3222d1ed641aeede8b7853727a654c76e4495d62835fd57ff0ed8e101935757f0b4dad93d96d2730e35
7
- data.tar.gz: 010404c33eb2d6fe702642f2c75c736f2b9f13eb828b2fa1c29f2b47318c527b0fa893585130e442d789330118c1580345e4960293cdf10d3c3807b43dbe291d
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 { |principal_iter| principal_iter =~ /\*/ }
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.21
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-04 00:00:00.000000000 Z
11
+ date: 2020-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop