Subversion client for ruby?

Is there a proper ruby ​​client demolition that can be used to manage text files, images, and other documents from a subversion project? he should be able to check the project, update and combine the content (not automatically, but respond to diff or something in case of a problem), commit, etc.

please don’t ask me how we got there;) but our cms is really just a svn project (including text files containing html, images and other documents), and we would like to create some kind of ruby ​​interface where people can edit text files, upload new documents, etc.

therefore, we will need all these svn functions, and we would like them to be abstracted in some way, so we do not need to use the bash commands that interact with the installation of the svn client.

+4
source share
3 answers

There are subversion bindings for Ruby that you could use if you want to flip your own in Ruby. There is also Apache mod_dav_svn , which is an existing subversion management application (if you are using Apache).

+5
source

You probably found a working solution, but you thought that I would share it anyway, since I wrote a gem that can be useful.

http://rubygems.org/gems/svn_wc - svn_wc provides programmatic access to svn core functions using Subversion Ruby Bindings, simplifying their functionality
source: http://github.com/dvwright/svn_wc

http://rubygems.org/gems/svn_wc_tree - svn_wc_tree provides a graphical interface for the web application interface for a working copy of the remote SVN repository. (rude and in the process)

+9
source

There is a ruby ​​binding for subversion (article here: http://alistairisrael.wordpress.com/2007/09/19/using-the-subversion-ruby-bindings/ ), available from gems. What can be a useful exercise is to take an existing CMS gui and replace the datalayer with a ruby ​​one that maps commands to subversion commands.

+1
source

Source: https://habr.com/ru/post/1303342/


All Articles