pebblebed 0.0.53 → 0.0.54
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/pebblebed/security/role_schema.rb +3 -2
- data/lib/pebblebed/version.rb +1 -1
- metadata +1 -1
@@ -52,8 +52,9 @@ module Pebblebed
|
|
52
52
|
if __send__("check_#{requirement}".to_sym)
|
53
53
|
collected_requirements << requirement
|
54
54
|
end
|
55
|
-
rescue NoMethodError
|
56
|
-
raise NoMethodError, "You must implement method named :check_#{requirement} that returns true or false"
|
55
|
+
rescue NoMethodError => e
|
56
|
+
raise NoMethodError, "You must implement method named :check_#{requirement} that returns true or false" if e.message.match("undefined method.*check_#{requirement}")
|
57
|
+
raise e
|
57
58
|
end
|
58
59
|
end
|
59
60
|
if (role[:requirements] & collected_requirements) == role[:requirements]
|
data/lib/pebblebed/version.rb
CHANGED