summaryrefslogtreecommitdiff
path: root/subversion/bindings/swig/ruby/svn/core.rb
diff options
context:
space:
mode:
Diffstat (limited to 'subversion/bindings/swig/ruby/svn/core.rb')
-rw-r--r--subversion/bindings/swig/ruby/svn/core.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/subversion/bindings/swig/ruby/svn/core.rb b/subversion/bindings/swig/ruby/svn/core.rb
index 15ebe13..26e5e84 100644
--- a/subversion/bindings/swig/ruby/svn/core.rb
+++ b/subversion/bindings/swig/ruby/svn/core.rb
@@ -249,31 +249,31 @@ module Svn
end
end
- def add_simple_prompt_provider(retry_limit, prompt=Proc.new)
+ def add_simple_prompt_provider(retry_limit, &prompt)
args = [retry_limit]
klass = AuthCredSimple
add_prompt_provider("simple", args, prompt, klass)
end
- def add_username_prompt_provider(retry_limit, prompt=Proc.new)
+ def add_username_prompt_provider(retry_limit, &prompt)
args = [retry_limit]
klass = AuthCredUsername
add_prompt_provider("username", args, prompt, klass)
end
- def add_ssl_server_trust_prompt_provider(prompt=Proc.new)
+ def add_ssl_server_trust_prompt_provider(&prompt)
args = []
klass = AuthCredSSLServerTrust
add_prompt_provider("ssl_server_trust", args, prompt, klass)
end
- def add_ssl_client_cert_prompt_provider(retry_limit, prompt=Proc.new)
+ def add_ssl_client_cert_prompt_provider(retry_limit, &prompt)
args = [retry_limit]
klass = AuthCredSSLClientCert
add_prompt_provider("ssl_client_cert", args, prompt, klass)
end
- def add_ssl_client_cert_pw_prompt_provider(retry_limit, prompt=Proc.new)
+ def add_ssl_client_cert_pw_prompt_provider(retry_limit, &prompt)
args = [retry_limit]
klass = AuthCredSSLClientCertPw
add_prompt_provider("ssl_client_cert_pw", args, prompt, klass)