ruby 的颠覆客户端?
ruby 是否有合适的 subversion 客户端,可用于管理 subversion 项目中的文本文件、图像和其他文档?它需要能够签出项目、更新和合并内容(不是自动的,而是在出现问题时以差异或其他方式响应)、提交等。
请不要问我我们是如何到达那里的;)但是我们的cms实际上只是一个svn项目(包括文本文件,其中包括html、图像和其他文档),我们想在ruby中构建某种前端,人们可以在其中编辑文本文件、上传新文档等,
所以我们会需要所有这些 svn 功能,并且我们希望以某种方式将它们抽象化,这样我们就不必使用 bash 命令与 svn 客户端安装进行交互。
is there are proper subversion client for ruby, that could be used to manage text files, images and other documents from a subversion project? it needs to be able to checkout the project, update and merge content (not automatically, but respond with a diff or something in case of a problem), commit, etc.
please don't ask me how we got there ;) but our cms is actually just an svn project (including text files which include html, images and other documents) and we'd like to build some kind of frontend in ruby where people can edit the text files, upload new documents, etc.
so we would need all these svn features and we would like to have them abstracted in some kind of way so we don't have to use bash commands interacting with the svn client installation.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您现在可能已经找到了一个可行的解决方案,但认为我无论如何都会分享这个解决方案,因为我写了一个可能有用的 gem。
http://rubygems.org/gems/svn_wc - svn_wc 提供对基本 svn 函数的编程访问,利用Subversion Ruby Bindings,以简化的方式公开其功能
来源: http://github.com/dvwright/svn_wc
http://rubygems.org/gems/svn_wc_tree - svn_wc_tree 为远程 SVN 存储库的工作副本提供 Web 应用程序前端 GUI。 (粗略且正在进行中)
You've probably found a working solution by now but thought I would share this anyway as I wrote a gem which may be useful.
http://rubygems.org/gems/svn_wc - svn_wc provides programmatic access to basic svn functions, utilizing the Subversion Ruby Bindings, exposing their functionality in a simplified way
source: http://github.com/dvwright/svn_wc
http://rubygems.org/gems/svn_wc_tree - svn_wc_tree provides an Web Application Front End GUI to a working copy of an remote SVN Repository. (rough and in progress)
如果您想在 Ruby 中推出自己的版本,可以使用 Ruby 的 subversion 绑定。还有Apache mod_dav_svn,这是一个已经存在的颠覆应用程序管理(如果您使用 Apache)。
There are subversion bindings for Ruby you could use if you want to roll your own in Ruby. There is also Apache mod_dav_svn, which is an already-existing application for subversion management (if you use Apache).
有用于颠覆的 ruby 绑定(此处文章:http ://alistairisrael.wordpress.com/2007/09/19/using-the-subversion-ruby-bindings/)可从 gems 获取。一个有用的练习可能是采用现有 CMS 的 gui 并用基于 ruby 的数据层替换数据层,该数据层将命令映射为 subversion 命令。
There are ruby binding for subversion (article here: http://alistairisrael.wordpress.com/2007/09/19/using-the-subversion-ruby-bindings/) available from gems. What might be a useful exercise would be to take an existing CMS's gui and replace the datalayer with a ruby based one which maps the commands into subversion commands.