[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Accessing SVN through Ruby

Bob Aman

4/7/2005 4:00:00 PM

I want to code up a CMS of sorts in Ruby that uses Subversion as the
backend. However, the only simple interface to Subversion I seem to
have available to me is to call out to the Subversion command line
client, which is rather less than optimal. I saw the Subversion SWIG
bindings in the Subversion repository at
http://svn.collab.net/repos/svn/trunk/subversion/bindings/...
but when I tried to work with them, I couldn't figure out how to set
them up properly.

I kept getting "No such file to load -- svn/ext/core (LoadError)" when
trying to run run-test.rb

Has anyone out there had better luck with the ruby svn bindings or
does anyone know of a nicer ruby interface to SVN, preferably one
that's more "ruby-like"? There also seems to be disclaimers about the
functionality of the ruby bindings in the Subversion documentation,
but not a lot of information about what doesn't quite work. Just that
there might be some stuff. Anyone know what's missing or not working?
--
Bob Aman


28 Answers

Tanner Burson

4/7/2005 4:16:00 PM

0

> Has anyone out there had better luck with the ruby svn bindings or
> does anyone know of a nicer ruby interface to SVN, preferably one
> that's more "ruby-like"? There also seems to be disclaimers about the
> functionality of the ruby bindings in the Subversion documentation,
> but not a lot of information about what doesn't quite work. Just that
> there might be some stuff. Anyone know what's missing or not working?

I also would be interested. I was looking for this very thing not a
week ago, and wasn't able to find anything substantial.


Bob Aman

4/8/2005 3:58:00 PM

0

> > Has anyone out there had better luck with the ruby svn bindings or
> > does anyone know of a nicer ruby interface to SVN, preferably one
> > that's more "ruby-like"? There also seems to be disclaimers about the
> > functionality of the ruby bindings in the Subversion documentation,
> > but not a lot of information about what doesn't quite work. Just that
> > there might be some stuff. Anyone know what's missing or not working?
>
> I also would be interested. I was looking for this very thing not a
> week ago, and wasn't able to find anything substantial.

Ok, so I guess I should create something then. I'd just assume wrap
the ruby SWIG bindings with something more elegant, but I'm still
having trouble getting them to run as expected. I'm not sure how to
get the external parts of the bindings to work. The thing errors out
looking for the svn/ext/core stuff (mainly because it's not there).
But I can't figure out where it is or how to create it. From little
snippets in the changelists, it seems like the ext directory should
have the .so files (or probably .dll files in Windows) but those
aren't in the Subversion respository and it's not really obvious how
to build them. If anyone could give me pointers for how to get
started, that would be much appreciated. I'm doing the development on
both FreeBSD and Windows, so explanations for both environments would
be really helpful.

--
Bob Aman


Dick Davies

4/8/2005 4:27:00 PM

0

* Bob Aman <vacindak@gmail.com> [0458 16:58]:
> > > Has anyone out there had better luck with the ruby svn bindings or
> > > does anyone know of a nicer ruby interface to SVN, preferably one
> > > that's more "ruby-like"? There also seems to be disclaimers about the
> > > functionality of the ruby bindings in the Subversion documentation,
> > > but not a lot of information about what doesn't quite work. Just that
> > > there might be some stuff. Anyone know what's missing or not working?
> >
> > I also would be interested. I was looking for this very thing not a
> > week ago, and wasn't able to find anything substantial.
>
> Ok, so I guess I should create something then. I'd just assume wrap

Isn't there a bounty for this?

--
'Everybody I know who is right always agrees with ME.'
-- Rev Lady Mal
Rasputin :: Jack of All Trades - Master of Nuns


Bob Aman

4/8/2005 4:33:00 PM

0

> Isn't there a bounty for this?

Bounty?
--
Bob Aman


Dick Davies

4/8/2005 9:01:00 PM

0

* Bob Aman <vacindak@gmail.com> [0433 17:33]:
> > Isn't there a bounty for this?
>
> Bounty?

As in Jango Fett - not the chocolate bar.

On closer reading, that's not quite it, but see:

http://www.chadfowler.com/index.cgi/Computing/Programming/Ruby/FreeMo...


--
'This must be Thursday. I never could get the hang of Thursdays.'
-- Arthur
Rasputin :: Jack of All Trades - Master of Nuns


Kouhei Sutou

4/9/2005 1:51:00 AM

0

Bob Aman

4/9/2005 1:59:00 AM

0

> Try the following sequence:
>
> % svn co http://svn.collab.net/repos... svn
> % cd svn
> % ./autogen.sh
> # or
> # % env AUTOCONF=autoconf259 > # AUTOHEADER=autoheader259 > # LIBTOOL_M4=/usr/local/share/aclocal/libtool15.m4 > # ./autogen.sh
> # (If you are working on FreeBSD.)
> % ./configure
> # or
> # % ./configure > # --with-apr=/usr/local/lib/apache2 > # --with-apr-util=/usr/local/lib/apache2
> # (If you are working on FreeBSD.)
> % make check-swig-rb
> % sudo make install-swig-rb # if you pass all test.

I'm on Windows at home, and I don't think TextDrive (only FreedBSD
machine I have access to) would be keen on me doing this. I don't
suppose I could get info on how to do this for Windows?

--
Bob Aman


Garrett Rooney

4/9/2005 2:09:00 AM

0

Bob Aman wrote:

> I'm on Windows at home, and I don't think TextDrive (only FreedBSD
> machine I have access to) would be keen on me doing this. I don't
> suppose I could get info on how to do this for Windows?

I don't think anyone has done the leg work to make the ruby bindings for
svn work on windows yet.

-garrett


Kouhei Sutou

4/9/2005 2:12:00 AM

0

Bob Aman

4/9/2005 2:22:00 AM

0

> Please try the sequence on Windows and show me the output of
> it.

Heh, ok.
(I already had svn checked out, so I'm skipping that bit.)

"Windows cannot open this file: autogen.sh"
Windows doesn't do the whole scripting thing very well.
--
Bob Aman