Ruby Subversion bindings with SWIG

From WhyNotWiki

Jump to: navigation, search

Extending Subversion with Ruby  edit   (Category  edit)


Contents

[edit] according to pjhyett.com

http://www.pjhyett.com/posts/159-installing-ruby-svn-bindings Installing Ruby SVN bindings

[edit] I tried and failed

[Problems compiling things (category)]

g++ -DHAVE_CONFIG_H     -I../Source/Include -I../Source/CParse -I../Source/Include -I../Source/DOH -I../Source/CParse -I../Source/Preprocessor -I../Source/Swig -I../Source/Modules   -c -o Modules/allegrocl.o Modules/allegrocl.cxx
Modules/swigmod.h:29: error: redeclaration of C++ built-in type âboolâ
make[2]: *** [Modules/allegrocl.o] Error 1
make[2]: Leaving directory `/home/tyler/swip/swig-1.3.25/Source'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/tyler/swip/swig-1.3.25/Source'
make: *** [source] Error 2

[edit] Installing SWIG/bindings

http://redhanded.hobix.com/inspect/svnBindingsForRuby.html RedHanded » SVN Bindings for Ruby

http://collaboa.org/docs/svnbindings/install Installing the Subversion Ruby bindings


[edit] Using the bindings once you get them installed (if ever)

http://blog.wolfman.com/articles/2006/09/04/using-ruby-svn-bindings-to-get-file-status

I had to "Use the source Luke". However given the bindings are actually mostly automatically generated by SWIG, and the actual details are hidden in a goo of swig generated c code, even that was a challenge.

http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/139383

Svn::Core::Pool.new do |pool|
  # do stuff, like opening it:
  @repos = Svn::Repos.open(repos_path, pool)
end
Personal tools