awspec 0.52.1 → 0.52.2

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: 4c48d93853e11be5e0bc9e18838d2cd08e6e07c1
4
- data.tar.gz: 5085faefe0442b23f49ffea9c287701a5df5be4f
3
+ metadata.gz: bdf7ef5edc5380398ffb838aa8150fd475b2d4ad
4
+ data.tar.gz: 1c9812943a4ba93eeb43883d744dcc56415fc7e3
5
5
  SHA512:
6
- metadata.gz: 9bbcf4ba12cfff5d71a2d801b71e4c3ffacbf232fc6f1c941d3c3e2e9f93c43ae5dff355a4056da8aa6194bf9bf963052a89048607e692f2738dcdd4508fb687
7
- data.tar.gz: 7201e4c92b917e545a53a09d3fa0e37e9043917c5ac3b2774ea4202a73d271fc01dd538a1b7b0f01708dfb02c123a0dd731778dfff21147d66539c104545e135
6
+ metadata.gz: a6000f0e4b99603de2875ab7b18392e983a16f4216fbddb22d21d056e0d3c775b187617d5634dda5f55032ffe6bbb6ca0d7da9afa15e6d0cde0209710facc1fb
7
+ data.tar.gz: 4a5f1853d573cefa77c36b4a984fe0d6cea994c305da2b043c648ef07f620bcd6c552c521b999725bc5c31a6546b42c1468dfb0735a55f20c3eb7991c5009297
@@ -5,7 +5,9 @@ module Awspec
5
5
 
6
6
  def method_missing_via_black_list(name, delegate_to: nil)
7
7
  raise ArguementError, 'delegate_to: must be specified' unless delegate_to
8
- raise CalledMethodInBlackList, "Method call #{name.inspect} is black-listed" if match_black_list?(name)
8
+ if match_black_list?(name) && !match_white_list?(name)
9
+ raise CalledMethodInBlackList, "Method call #{name.inspect} is black-listed"
10
+ end
9
11
  attr = delegate_to.send(name)
10
12
  case attr
11
13
  when Aws::Resources::Resource
@@ -30,6 +32,12 @@ module Awspec
30
32
  def match_black_list?(name)
31
33
  BLACK_LIST_RE =~ name
32
34
  end
35
+
36
+ WHITE_LIST_RE = /password_reset_required/ix
37
+
38
+ def match_white_list?(name)
39
+ WHITE_LIST_RE =~ name
40
+ end
33
41
  end
34
42
 
35
43
  class ResourceReader
@@ -1,3 +1,3 @@
1
1
  module Awspec
2
- VERSION = '0.52.1'
2
+ VERSION = '0.52.2'
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: 0.52.1
4
+ version: 0.52.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - k1LoW
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-26 00:00:00.000000000 Z
11
+ date: 2016-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec