Bhushan Lodha
Bhushan Lodha

Reputation: 6862

Creating and uploading gem on github

I have a written a ruby lib which I want to host on github as a gem. How to createa gem and host it on github?

Upvotes: 1

Views: 212

Answers (3)

lloydpick
lloydpick

Reputation: 1649

Best practice way of doing this nowadays is to use Bundler. There's a guide here to show you how...

http://asciicasts.com/episodes/245-new-gem-with-bundler

Upvotes: 1

Reactormonk
Reactormonk

Reputation: 21690

If it contains a .gemspec, you can push it to rubygems.org, they'll help you.

Upvotes: 1

Eugene
Eugene

Reputation: 4879

Github no longer hosts gems, but as long as you include a .gemspec in the directory, it will be installable via bundler.

You can check out one of mine for ideas on how to structure it if you'd like: https://github.com/ehowe/ruby-ipmitool

Upvotes: 1

Related Questions