深入的 Ruby Gem 开发资源(书籍、视频、网站)
我正在为 Rails 项目编写第一个 Gem,并寻找有关该主题的深入信息,但我什么也没找到。
我不是在寻找“如何构建 gem”,而是在寻找有关该主题的相关开发人员指南或资源(使用 Ruby 进行分布式编程等)。
我希望有人有好的参考资料?
提前致谢。
I'm writing my first Gem for a Rails project, and looking for in depth information about this topic i have found nothing at all.
I'm not looking "how to build a gem", but a relevant developer guide or resource on the topic (distributed programming with Ruby and so on).
I expect if someone have good reference material ??
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
我不再打扰珠宝商了。 Bundler 为您提供了所需的大部分工具,包括初始 gem 生成器命令
bundle gem GEMNAME
(从 Bundler 1.0.0RC4 开始),最新的 rubygems 允许您gem Push
进行发布。我也刚刚开始尝试构建自己的 gem,遵循 Bundler 路线图对我帮助很大。
阅读 gemspec ref 以了解您需要什么,实际上我刚刚一直在浏览许多 gems 的源代码,我知道它们是由著名的 Ruby 开发人员(即 mongoid、bundler 等)编写的。
同时请记住,分布式编程实际上与 Rubygems 没有任何关系(尽管 gems 当然可以促进这一点) )。是的,这些 gem 是/可以共享/分布式的,但是“分布式计算”的概念与此截然不同,即跨多个节点、服务器等共享系统的数据和功能……因为 rubygems 只是一种手段通过它您可以实现分布式计算,如果这是您真正关心的问题,您可能需要重新表述您的问题。
I'd not bother with jeweler anymore. Bundler gives you most of the tools you need including an initial gem generator command
bundle gem GEMNAME
(as of Bundler 1.0.0RC4) and the latest rubygems lets yougem push
for publishing.I've also just started playing around with building my own gems, following along with the Bundler roadmap has helped me out a lot.
Read the gemspec ref to understand what's needed of you there, and really I've just been browsing the source of lots of gems that I know are written by reputable ruby developers (ie. mongoid, bundler etc)
Also keep in mind that distributed programming doesn't really have anything to do with Rubygems (though gems can of course facilitate that). Yes these gems are/can be shared/distributed, but the concept of 'distributed computing' is far different from this, namely sharing the data and functions of your system across multiple nodes, servers, etc... Since rubygems is just a means by which you might achieve distributed computing, you might want to re-word your question if that's what your real concern is.
Rubygems 与分布式编程无关。
如果您没有提出重复的问题,能否提供有关您所追求的更多详细信息? Stack Overflow 中的相关问题包括:
(我知道这更多的是评论而不是答案,但它太大了,无法放入评论部分)
Rubygems aren't related to distributed programming.
Can you please provide more details about what you're after, if you aren't asking a duplicate question? Related questions within Stack Overflow include:
(I know this is more of a comment than an answer, but it's too big to fit in the comments section)
你看到这个了吗?
http://docs.rubygems.org/read/book/1
Did you see this?
http://docs.rubygems.org/read/book/1
Jeweler是打造宝石的打包帮手
http://technicalpickles.com/posts/craft-the-perfect -gem-with-jeweler/
http://github.com/technicalpickles/jeweler
jeweler is a package helper for creating gems
http://technicalpickles.com/posts/craft-the-perfect-gem-with-jeweler/
http://github.com/technicalpickles/jeweler
也检查一下这个http://guides.rubygems.org/。
Check this one as well http://guides.rubygems.org/.
还有一本书
构建Brandon Hilkert 编写的 http://brandonhilkert.com/books/build-a -红宝石宝石
There is also a book
written by Brandon Hilkert http://brandonhilkert.com/books/build-a-ruby-gem