In depth Ruby Gem development resources (book, video, sites)

前端 未结 6 2019
甜味超标
甜味超标 2021-02-11 08:31

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\"

6条回答
  •  你的背包
    2021-02-11 09:19

    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.

提交回复
热议问题