深入的 Ruby Gem 开发资源(书籍、视频、网站)

发布于 2024-09-15 19:16:55 字数 156 浏览 2 评论 0 原文

我正在为 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

最终幸福 2024-09-22 19:16:55

我不再打扰珠宝商了。 Bundler 为您提供了所需的大部分工具,包括初始 gem 生成器命令 bundle gem GEMNAME(从 Bundler 1.0.0RC4 开始),最新的 ruby​​gems 允许您gem Push 进行发布。

我也刚刚开始尝试构建自己的 gem,遵循 Bundler 路线图对我帮助很大。

阅读 gemspec ref 以了解您需要什么,实际上我刚刚一直在浏览许多 gems 的源代码,我知道它们是由著名的 Ruby 开发人员(即 mongoid、bundler 等)编写的。

同时请记住,分布式编程实际上与 Rubygems 没有任何关系(尽管 gems 当然可以促进这一点) )。是的,这些 gem 是/可以共享/分布式的,但是“分布式计算”的概念与此截然不同,即跨多个节点、服务器等共享系统的数据和功能……因为 ruby​​gems 只是一种手段通过它您可以实现分布式计算,如果这是您真正关心的问题,您可能需要重新表述您的问题。

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 you gem 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.

木有鱼丸 2024-09-22 19:16:55

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)

太傻旳人生 2024-09-22 19:16:55

也检查一下这个http://guides.rubygems.org/

Check this one as well http://guides.rubygems.org/.

今天小雨转甜 2024-09-22 19:16:55

还有一本书

构建红宝石宝石

构建Brandon Hilkert 编写的 http://brandonhilkert.com/books/build-a -红宝石宝石

There is also a book

Build a ruby gem

written by Brandon Hilkert http://brandonhilkert.com/books/build-a-ruby-gem

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文