How to create ruby gem

Hi Guys, i need help on creating a gem. I am following following steps from

http://groups.google.co.in/group/rubygems

i started with installation of the new gem

step 1)---> gem install newgem

step 2)---> newgem <gem name> here it creates the folder successfully with the name i gave, n it allows the manipulation which is required by me.

here comes my problem??? step 3)---> rake package while creating a gem with the "rake package command", I came across an error saying "could'nt find HOME environment --expanding '~/hoerc'" which is followed by number of error lines.....

c:/ruby/lib/ruby/gems/1.8/gems/hoe-1.4.0/lib/hoe.rb:327:in 'expand_path' c:/ruby/lib/ruby/gems/1.8/gems/hoe-1.4.0/lib/hoe.rb:327:in 'with_config' c:/ruby/lib/ruby/gems/1.8/gems/hoe-1.4.0/lib/hoe.rb:363:in 'define_tasks' c:/ruby/lib/ruby/gems/1.8/gems/hoe-1.4.0/lib/hoe.rb:322:in 'initialize' ./config/hoe.rb:50:in 'new'

Regards, Pavan

have you set the environment variable named ‘HOME’?

-Thomas

ya I have set that.. not worked???

sure?

what gives you

ENV[‘HOME’]

on your system?

-Thomas

Hey Thomas                   I have set it properly and now I can see errorless gem creation... thanks a lot.