Gem releasing with Hoe: VERSION environment variable require


#1

I want to upload a gem to rubyforge and I am using Hoe to do it.

When I do rake release it stops with the message

Must supply VERSION=x.y.z

after creating the gem.

Hoe s v1.2.0. Looking into the code I see:

task :release => [:clean, :package] do |t|
v = ENV[“VERSION”] or abort “Must supply VERSION=x.y.z”

How is this supposed to work?
Cheers,
V.-


#2

Vassilis R. wrote:

task :release => [:clean, :package] do |t|
v = ENV[“VERSION”] or abort “Must supply VERSION=x.y.z”

How is this supposed to work?
Cheers,
V.-
To answer my own question:
rake release VERSION=x.y.z

It should have been easy, since it is well documented in “Building Your
First
Gem With Hoe” by Jacob Harris, only that the slides I found on
http://www.slideshare.net/vishnu/hoe-talk/ have all the interesting
points (the commands) garbled (like where on the 3rd slide it says gem
build, the slide has DFGHIJLM). Might be a browser problem (I’m on
Firefox on Mac) or a codepage problem.

Luckily I found a PDF version on
http://www.nimblecode.com/files/hoetalk.pdf

Just for the record.
V.-