Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
RubyCLR anyone?
Roman Zawada
2/15/2009 11:59:00 AM
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.c...
) 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
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
RubyCLR anyone?
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password