From: "Juanse Pérez herrero" Date: 2007-10-28T20:55:36+09:00 Subject: Re: Subversion Ruby Bindings access to URL I am trying to authenticate to remote svn using the ruby bindings. I create my provider as follows provider = Proc.new do |cred, args | cred = Svn::Ext::Core::Svn_auth_cred_simple_t.new cred.username = username cred.password = password cred end These are snippets from Client.rb I have been playing around with rdebug to find out that my auth information gets lost (see comments). def add_simple_prompt_provider(retry_limit, prompt=Proc.new) args = [retry_limit] klass = Core::AuthCredSimple add_prompt_provider("simple", args, prompt, klass) end def add_prompt_provider(name, args, prompt, cred_class) # the prompt parameter arrives ok # prompt.call().username is my username real_prompt = Proc.new do |*prompt_args| cred = cred_class.new prompt.call(cred, *prompt_args) cred end # here real_prompt.call().username returns nil (!!!!) method_name = "swig_rb_auth_get_#{name}_prompt_provider" baton, pro = Core.__send__(method_name, real_prompt, *args) [...] Am I doing something wrong? Any help is appreciated -- Posted via http://www.ruby-forum.com/.