On Oct 22, 8:16 am, Adam McCrea <
adam.mcc...@gmail.com> wrote:
> So it seems that Gemcutter is the future of gem hosting and distribution.
> I've never felt comfortable with publishing gems myself, but I'd like to
> change that. Here are the two scenarios I want a better handle on:
>
> 1. I create a new Ruby library and it's up on Github. How do I make it into
> a gem and put it on Gemcutter?
This is very easy. See
gemcutter.com's front page.
Joe F. mentioned Jeweler, which a lot of people like. I personally
like doing my own Gem::Specification and using Rake::GemPackageTask. I
just like the simplicity of it, but I've been burned by gems that
require the hoe gem to install. YMMV.
> How do I handle new versions?
I assume this is handled by updating the gemspec and gem push. I
normally tie the version specified in the Gem Specification to a
constant like MyGem::VERSION.
> 2. I fork an existing gem on Github and make some changes. How do I put my
> forked gem on Gemcutter?
Gemcutter doesn't support namespacing yet. Here's the latest:
http://wiki.github.com/qrush/gemcutter/fork-support
You could probably still manually munge the gem name in the spec
yourself, but I don't think it's recommended.