awspec 1.17.3 → 1.17.4

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: c29ac2a1c8d141e957c22d76e9a96afd9ae5aa85
4
- data.tar.gz: 4689ba69992d75c2e02fffa56f4b78cf29a53c8f
3
+ metadata.gz: 24a77e8385426709aab7708405c31a6c44f80043
4
+ data.tar.gz: bc25733590d646e87cf24930f3fe9494b8d0fc49
5
5
  SHA512:
6
- metadata.gz: 869f8b542a3c28c0091895bc869b859e07b440ac88734c36ffa316dd0fa4ecbb61beff3a620867d22be951a9ffdc547c537dcf5c92f76fba9e834311b825f2ad
7
- data.tar.gz: d35ad91ab1051b5a52bb2f8645b923d1ad9fe90311b593811713483d91d2948c3d66dc3ddbb60bb98d9208cc3e9d5f31a7821b3ab3dfbc9f6ecdf9dfd376e88e
6
+ metadata.gz: 98c3884402e67f7856551ad7945597fe50cb906a39ee00a7b347843127561443a159f24829ec865682b2f11807dbbe85eb06c0ceaaaa1ce54f7a64381d902c64
7
+ data.tar.gz: 620fbf415995935dadb197ba200808ed0f8987de02fd2ac7b8be59d1decb2c96f2564b4593198bd1dba718664452c770985f940de2832698adc47261075e2680
@@ -1291,7 +1291,7 @@ describe eks('my-eks') do
1291
1291
  end
1292
1292
  ```
1293
1293
 
1294
- ### its(:name), its(:arn), its(:created_at), its(:version), its(:endpoint), its(:role_arn), its(:status), its(:client_request_token), its(:platform_version)
1294
+ ### its(:name), its(:arn), its(:created_at), its(:version), its(:endpoint), its(:role_arn), its(:logging), its(:status), its(:client_request_token), its(:platform_version)
1295
1295
  ## <a name="elasticache">elasticache</a>
1296
1296
 
1297
1297
  Elasticache resource type.
@@ -3331,7 +3331,7 @@ end
3331
3331
  ```
3332
3332
 
3333
3333
 
3334
- ### its(:name), its(:type), its(:key_id), its(:last_modified_date), its(:last_modified_user), its(:description), its(:allowed_pattern), its(:version)
3334
+ ### its(:name), its(:type), its(:key_id), its(:last_modified_date), its(:last_modified_user), its(:description), its(:allowed_pattern), its(:version), its(:tier), its(:policies)
3335
3335
  ### :unlock: Advanced use
3336
3336
 
3337
3337
  ```ruby
@@ -15,7 +15,14 @@ module Awspec::Type
15
15
  actions = [actions] if actions.is_a?(Hash)
16
16
  next false if !rule_id.nil? && rule.rule_arn != rule_id
17
17
  next false if !priority.nil? && rule.priority != priority
18
- next false if !conditions.nil? && rule.conditions.map(&:to_h).sort_by(&:to_s) != conditions.sort_by(&:to_s)
18
+ unless conditions.nil?
19
+ next false unless conditions.map do |condition|
20
+ rule_conds = rule.conditions.select { |rule_cond| rule_cond[:field] == condition[:field] }
21
+ next if rule_conds.empty?
22
+ next unless rule_conds.reject { |rule_cond| condition[:values] == rule_cond[:values] }.empty?
23
+ condition
24
+ end.compact.size == conditions.size
25
+ end
19
26
  unless actions.nil?
20
27
  actions = actions.map do |action|
21
28
  if action.key?(:target_group_name)
@@ -15,7 +15,14 @@ module Awspec::Type
15
15
  actions = [actions] if actions.is_a?(Hash)
16
16
  next false if !rule_id.nil? && rule.rule_arn != rule_id
17
17
  next false if !priority.nil? && rule.priority != priority
18
- next false if !conditions.nil? && rule.conditions.map(&:to_h).sort_by(&:to_s) != conditions.sort_by(&:to_s)
18
+ unless conditions.nil?
19
+ next false unless conditions.map do |condition|
20
+ rule_conds = rule.conditions.select { |rule_cond| rule_cond[:field] == condition[:field] }
21
+ next if rule_conds.empty?
22
+ next unless rule_conds.reject { |rule_cond| condition[:values] == rule_cond[:values] }.empty?
23
+ condition
24
+ end.compact.size == conditions.size
25
+ end
19
26
  unless actions.nil?
20
27
  actions = actions.map do |action|
21
28
  if action.key?(:target_group_name)
@@ -1,3 +1,3 @@
1
1
  module Awspec
2
- VERSION = '1.17.3'
2
+ VERSION = '1.17.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.17.3
4
+ version: 1.17.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - k1LoW
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-03-26 00:00:00.000000000 Z
11
+ date: 2019-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk