credentials 2.4.1 → 2.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/credentials.gemspec +1 -1
- data/lib/credentials/rule.rb +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.4.
|
1
|
+
2.4.2
|
data/credentials.gemspec
CHANGED
data/lib/credentials/rule.rb
CHANGED
@@ -55,7 +55,7 @@ module Credentials
|
|
55
55
|
case expected
|
56
56
|
when :self then return false unless actual == args.first
|
57
57
|
when Array then return false unless expected.any? { |item| (item === actual) || (item == :self && actual == args.first) }
|
58
|
-
else return false unless expected == actual || expected === actual
|
58
|
+
else return false unless expected == actual || expected === actual || (expected.is_a?(Class) && actual.is_a?(Class) && actual.ancestors.include?(expected))
|
59
59
|
end
|
60
60
|
end
|
61
61
|
|