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
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

On 22/01/2008, Pavan A. [email protected] wrote:

while creating a gem with the “rake package command”, I came across an
error saying “could’nt find HOME environment --expanding ‘~/hoerc’”

have you set the environment variable named ‘HOME’?

-Thomas


Thomas P.
[email protected]
[email protected]
Büro: 030 - 830 353 88
mobil: 0176 - 75 03 03 04
Privat: 030 - 49 78 37 06

http://www.thopre.com/

ya I have set that… not worked???

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

On 25/01/2008, Pavan A. [email protected] wrote:

ya I have set that… not worked???

sure?

what gives you

ENV[‘HOME’]

on your system?

-Thomas