lib/credentials/rule.rb in credentials-2.3.1 vs lib/credentials/rule.rb in credentials-2.4.0

- old
+ new

@@ -79,10 +79,10 @@ memo = memo.send op, case condition when Symbol return false unless receiver.respond_to? condition !!receiver.send(condition, *args[0, receiver.method(condition).arity]) when Proc - raise ArgumentError, "wrong number of arguments to condition (#{args.size} to #{condition.arity})" unless args.size + 1 == condition.arity + raise ArgumentError, "wrong number of arguments to condition (#{args.size + 1} to #{condition.arity})" unless args.size + 1 == condition.arity !!condition.call(receiver, *args) else raise ArgumentError, "invalid :if or :unless option (expected Symbol or Proc, or array thereof; got #{condition.class})" end end \ No newline at end of file