[Ruby] Minor nit with hoe
Ryan Davis
ryand-ruby at zenspider.com
Tue Dec 12 06:18:44 PST 2006
On Dec 12, 2006, at 1:57 AM, Timothy J. Wood wrote:
> I'm using 1.1.6:
>
> % rake release
> ... blah blah blah ...
> Must supply VERSION=x.y.z
> rake aborted!
> Must supply VERSION=x.y.z
>
> But, I already had to define VERSION as a module variable (in fact
> it just got read when building the gem), so I'm not sure why I need
> to define it in the environment to run the release task.
It is entirely intentional. It is to make you think about what you
want to release, and to make sure that you've updated the variable to
match that. The code that this came from would also verify that my
History.txt file matches as well, but I haven't enforced that in hoe
yet.
> Defining it in the environment allows me to connect connect to
> rubyforge, but then I get some error, presumably due to miss-
> configuration on my part, having never done this before :)
Hrm. I think rake treats env vars and arg vars the exact same way,
but it may not, so try it like:
rake release VERSION=x.y.z
More information about the Ruby
mailing list