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 +4 -4
- data/lib/awspec/resource_reader.rb +9 -1
- data/lib/awspec/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bdf7ef5edc5380398ffb838aa8150fd475b2d4ad
|
4
|
+
data.tar.gz: 1c9812943a4ba93eeb43883d744dcc56415fc7e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
data/lib/awspec/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|