With Jeweler I created a gem folder structure with ease.
However, I still have some questions:
-
Why are params like –gemcutter and –rubyforge still available for Jeweler. Aren’t these replaced by RubyGems? Do I have to specify anything to create a gem for RubyGems?
-
In the Rakefile I have information about the gem, and when I run “rake install” it created a gemspec. Why is the same information in two places?
-
What is a manifest? Just read about it, haven’t seen such file.
-
How do I make my gem callable from the shell once I have installed it, like rails. Cause right now it’s just accessible through a Ruby script using require.
-
Should I use “jeweler release” or “gem push” to push my gem to RubyGems.org?
-
I have to specify “handle” when signing up in RubyGems. What is that?
Thanks.
jewelerorrakeorrailsthat you can call, you have to write the callable program, put it inbinin your gem’s layout and specify (in your gemspec) that it should be packaged and installed. See the Gem::Specification reference underfilesandexecutable.For the record, if you are just learning how to write gems, you do not need to upload your first attempts using RubyGems or anything like it. You can simply install the gem on your machine only.