Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should I host gems in GitHub or RubyGems? [closed]

I've read that RubyGems is de-facto hosting for gems.

I host all my Rails projects on GitHub.

So my questions are:

  • Are there any reasons for hosting my gems on GitHub and not RubyGems?

  • Does RubyGems have private repositories like GitHub?

  • I've read that jeweler is nice for creating gem skeleton. On their webpage it sounds like it uploads these gems to GitHub and not RubyGems. But didn't GitHub removed the Gem support?

  • This railscast http://media.railscasts.com/videos/183_gemcutter_and_jeweler.mov shows us how to use gemcutter to manage gems. But Gemcutter.org is now RubyGems.org right? But still a gem called gemcutter is available? Is this managing gems for us but in RubyGems.org now?

Grateful if someone could enlighten me on this topic.

like image 662
never_had_a_name Avatar asked Aug 19 '10 20:08

never_had_a_name


1 Answers

Are there any reasons for hosting my gems on GitHub and not RubyGems?

1) GitHub has stopped building new gems, but is continuing to host gems that were previously placed on the site.) The answer is, you can't. (

The GitHub gem building process was always kind of hacky and wasn't 100% solid. (check out the "gem issues" support queue on their help site sometime). GitHub's about git hosting, Gemcutter is about gem hosting. Enough said. :)

Does RubyGems have private repositories like GitHub?

Nope, not yet. We've considered it, but offering private gem servers/subdomains seems to conflict with the open nature of the site. If you need a gem server for your code that is internal, just use gem server or geminabox.

I've read that jeweler is nice for creating gem skeleton. On their webpage it sounds like it uploads these gems to GitHub and not RubyGems. But didn't GitHub removed the Gem support?

Jeweler's still a great way to get started creating a gem. I'm pretty sure rake release with Jeweler's rake tasks installed will just do a gem push now, so it will publish to RubyGems.org.

This railscast http://media.railscasts.com/videos/183_gemcutter_and_jeweler.mov shows us how to use gemcutter to manage gems. But Gemcutter.org is now RubyGems.org right? But still a gem called gemcutter is available? Is this managing gems for us but in RubyGems.org now?

Yep, gemcutter.org, rubygems.org, and gems.rubyforge.org all redirect to the same place. The gem push and gem owner commands are now in RubyGems proper, so you don't need the gemcutter gem to publish anymore. The gemcutter gem is still available and contains yet to be merged in commands, such as gem yank and gem webhook.

The full story on all of the transition changes is here.

like image 121
qrush Avatar answered Oct 20 '22 01:10

qrush