[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

ruby module for subversion?

Steve Kelem

6/13/2005 5:52:00 PM

Is there a module for ruby that will give access to subversion functions?

I'd like to:

1. Find out if a file is administered under subversion.
2. Find out if a file under subversion has a given property, e.g.,
svn:executable.
3. Be able to add/delete subversion properties for a file.
4. Add a file to subversion, i.e., administer it and check it in.

Thanks for any help you can give,
Steve Kelem
5 Answers

Cameron McBride

6/13/2005 8:41:00 PM

0

> Is there a module for ruby that will give access to subversion functions?

this project may help:
http://rscm.ruby...

Cameron


Andre Nathan

6/13/2005 8:48:00 PM

0

On Tue, 14 Jun 2005, Steve Kelem wrote:

> Is there a module for ruby that will give access to subversion functions?

The latest subversion (1.2.0) comes with subversion bindings for ruby,
which probably can do what you need. I couldn't find docs for it though
:
HTH
Andre


Johan Sörensen

6/13/2005 10:02:00 PM

0

On 6/13/05, Andre Nathan <andre@digirati.com.br> wrote:
> On Tue, 14 Jun 2005, Steve Kelem wrote:
> > Is there a module for ruby that will give access to subversion functions?
>
> The latest subversion (1.2.0) comes with subversion bindings for ruby,
> which probably can do what you need. I couldn't find docs for it though :
The svn ruby bindings is still pretty new, but no, there doesn't seem
to be any (english) docs around, but having worked with the bindings a
bit for a sparetime project of mine they're fairly easy to use once
you get the initial grasp on them and get over the initial headaches
with pools and such..

Looking at the unit tests (the bindings are in the
SVN_SRC/subversion/bindings/swig/ruby dir) and perhaps even take a
peek at my stabs[1] on working with them to get the general idea.

[1]: http://collaboa.cocoa.se/trac/browser/trunk/lib/actionsubve...


--
http://johanso...
http://thee...


Kyle Heon

6/14/2005 12:18:00 AM

0

There's always the command line too, if that fits your needs.

Kyle Heon
kheon@comcast.net



Jim Morris

6/14/2005 5:41:00 AM

0

The Ruby bindings found in the SVN source dist do work, although a
little tricky
to build and install, and the coverage is not complete, eg
svn_client_status is not implemented.

I have posted the very bare start to a similar endevour using Ruby/DL,
so far it is more of
an example than useful, although it would be nice to see someone fill it
out a bit. It does however implement the status2 call.

See the ruby-talk thread with Subject "Accessing SVN through Ruby/DL"

Steve Kelem wrote:

> Is there a module for ruby that will give access to subversion functions?
>
> I'd like to:
>
> 1. Find out if a file is administered under subversion.
> 2. Find out if a file under subversion has a given property, e.g.,
> svn:executable.
> 3. Be able to add/delete subversion properties for a file.
> 4. Add a file to subversion, i.e., administer it and check it in.
>
> Thanks for any help you can give,
> Steve Kelem
>
>
>