svn ruby 绑定是否作为 gem 提供?
我看到了几十个与 svn 相关的 gem,但是我能在其中找到的很少的文档表明它们是命令行包装器和杂项助手。 (svn-command、svn-hooks 等)
我在野外看到过一些代码,它们执行以下操作:require 'svn/core' 和 SVN.Repos.add(...),但该模块的作者拉了他的 svn ruby 工具通过 apt-get 实现。这对我来说不是一个选择,因为我正在开发一个 windows/osx 工具。
此页面列出了许多项目,但特别是,我需要一些东西来使访问 svn+ssh 存储库,我没有时间去挖掘六个项目的文档,尝试引导每个项目。
我在寻找哪颗宝石?从那里开始,我很乐意挖掘代码来代替文档,但是通过调用 gem query --name-matches svn --remote
返回大约 30 个命中,我需要缩小范围先说一点。
I see a couple dozen gems that relate to svn, but what little documentation I can find on any of them shows that they are command-line wrappers and misc helpers. (svn-command, svn-hooks, etc.)
I've seen code in the wild that does things like: require 'svn/core' and SVN.Repos.add(...), but the author of that module pulled his svn ruby tools via apt-get. This would not be an option for me, as I'm developing a windows/osx tool.
This page lists a number of projects, but in particular, I'm in need of something that will make it possible to access an svn+ssh repository and I don't have the kind of time it would take to dig through docs on a half-dozen projects, trying to bootstrap each one.
Which gem am I after? From there, I'm happy to dig through code in lieu of documents, but with a call to gem query --name-matches svn --remote
returning about 30 hits, I need to narrow it down a bit first.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
apt-get 命令到底拉取了什么?是绑定本身(apt-get install libsvn-ruby)还是 ruby 模块?由于绑定不是 ruby 模块,因此无法通过
gem
命令拉入它们。您必须通过 apt-get 安装它们或手动下载它们并将其安装到您的系统中。您可以尝试 svn_wc,它需要 svn_core。而且,我相信 svn_core 使用 SWIG 绑定,并且安装 Subversion 时会包含 Ruby 绑定。您还可以尝试 svn_tools,它是由 Mark Bates 创建的,他编写了《使用 Ruby 进行分布式编程》。不过我还没有找到任何关于 svn_tools 的文档。
我注意到 RSCM 模块是连接各种 SCM 工具的统一方式,它使用 Subversion 命令线。如果我认为有一个工具会使用 Subversion 的 API 绑定,那么我想就是这个,但它也使用 Subversion 命令行。
Exactly what was being pulled by the apt-get command? Was it the bindings themselves (apt-get install libsvn-ruby) or the ruby modules? Since the bindings aren't ruby modules, they can't be pulled in by the
gem
command. You have to install them via apt-get or manually download them and install them into your system.You can try svn_wc which requires svn_core. And, I believe svn_core uses the SWIG bindings and the Ruby bindings are included when you install Subversion. You can also try svn_tools which was created by Mark Bates who wrote Distributed Programming with Ruby. I haven't found any documentation on svn_tools though.
I noticed that the RSCM module, which is a unified way of interfacing to various SCM tools, uses the Subversion command line. If there was one tool I thought would use Subversion's API bindings, I thought this would be it, but it too uses the Subversion command line.