Making a gem

Hello!

I’d like to release a Gem on Rubyforge and I need some help.

I have created most of my project using Hoe and the gem builds and
installs locally
properly. When I try to release though (rake release VERSION=1.0.0), I
get :

rake aborted!
no <group_id> configured for

I assume this is because I need a config.yml in my ~/.rubyforge
directory with group id’s etc.
From a “hoetalk.pdf” that I found, an example shows:


rubyforge:
release_ids:
amazon-hacks:
0.5.0: 8743
group_ids:
amazon-hacks: 2731
package_ids:
amazon-hacks: 3223

…I can set up such a file, but where do I get all these id’s?
After that, how do I inform the ‘rubyforge’ program that this file
exists?

rake check_manifest gives me:
(in /home/lesliev/dev/mygems/glader)
�����\�exclude entry missing from .hoerc. Aborting.

…for which google turns up nothing.

Les

Leslie V. wrote:

…I can set up such a file, but where do I get all these id’s?
After that, how do I inform the ‘rubyforge’ program that this file
exists?

Run the following:

rubyforge --config

You should be all set.

  • Drew

On Mon, Jun 9, 2008 at 1:17 AM, Drew O. [email protected] wrote:

Leslie V. wrote:

…I can set up such a file, but where do I get all these id’s?
After that, how do I inform the ‘rubyforge’ program that this file
exists?

Run the following:

rubyforge --config

You should be all set.

I did that and it created a user-config.yml file in ~/.rubyforge with
these contents:


uri: http://rubyforge.org
is_private: false
username: lesliev
cookie_jar: /home/lesliev/.rubyforge/cookie.dat
password: makeGems

…but now when I try to release my gem:

lesliev@lesliev-laptop:~/dev/mygems/glader$ rake release VERSION=1.0.0
(in /home/lesliev/dev/mygems/glader)
�����\�tar zcvf glader-1.0.0.tgz glader-1.0.0
glader-1.0.0/
glader-1.0.0/Manifest.txt
glader-1.0.0/README.txt
glader-1.0.0/test/
glader-1.0.0/test/test_glader.rb
glader-1.0.0/lib/
glader-1.0.0/lib/glader.rb
glader-1.0.0/bin/
glader-1.0.0/bin/glader
glader-1.0.0/History.txt
glader-1.0.0/Rakefile
Successfully built RubyGem
Name: glader
Version: 1.0.0
File: glader-1.0.0.gem
Logging in
Releasing glader v. 1.0.0
rake aborted!
no <group_id> configured for

On Mon, Jun 9, 2008 at 8:15 AM, Leslie V. [email protected]
wrote:

You should be all set.

glader-1.0.0/lib/
Releasing glader v. 1.0.0
rake aborted!
no <group_id> configured for

I figured this out, for anyone else who’s looking. You need to create
the project on Rubyforge itself before you can use the release
command. After “rubyforge names” shows your project, you can “rake
release”.

Les