lib/vault-tools/web.rb in vault-tools-2.0.2 vs lib/vault-tools/web.rb in vault-tools-2.1.0

- old
+ new

@@ -51,10 +51,10 @@ # Create :method:_unprotected methods for instances where default # protect! is used %w{get put post delete head options path link unlink}.each do |meth| define_method "#{meth}_unprotected".to_sym do |path, opts = {}, &block| - pattern = compile!(meth.upcase, path, block, opts).first + pattern = compile!(meth.upcase, path, block, **opts).first set :unprotected_paths, settings.unprotected_paths + [pattern] if meth.downcase == 'get' conditions = @conditions.dup route 'GET', path, opts, &block