Gem releasing with Hoe: VERSION environment variable required?

  • Thread starter Vassilis Rizopoulos
  • Start date
V

Vassilis Rizopoulos

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

Vassilis Rizopoulos

Vassilis said:
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.-
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.-
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top