Forum: Ruby RubyCLR anyone?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
89f65881bbfb60f4bc40e673a8a63411?d=identicon&s=25 Roman Zawada (zwadar)
on 2009-02-15 13:00
Hi,
maybe I'll find someone who is using RubyCLR and can help me?
After first success with winforms usage from ruby I'm trying to use
SharpSVN (http://sharpsvn.open.collab.net/) library to access SVN from
ruby on win32 system. But because I know only very little about C# I'm
affraid I'm stuck now with rewriting this code from SharpSVN example to
ruby. (littlebit modyfied to don't write here everything)

    string targetPath = pathTextBox.Text;
    SvnTarget target;
    SvnTarget.TryParse(targetPath, out target)

    using (SvnClient client = new SvnClient())
       {
          try
           {
            client.Log(target,
                        delegate(object lSender, SvnLogEventArgs le)
                        {...});
           }
       }

Since SvnTarget don't respond to new method I can't write something like
that
   target = SvnTarget.new
and use target in TryParse method.
I've found a workaround
   target = SharpSvn::SvnTarget.FromString(path)
but I would like to know if it is possible to do it somehow in way
written in C# example.

And with usage of client.Log I'm completaly stuck :-) . I though that I
can write just block like
proc {|sender, args| ...}
in ruby instead of delegate, but probably I'm missing something.

Oh, and I'm on ruby 1.8.6. I'm not using IronRuby because I'm aiting to
it's first stable release..

Thanks for any help
This topic is locked and can not be replied to.