commit fa30089132050f85a7e40d0b0607d3732f4a0d22
parent dedc8e97ce9da04475ac8bbce39eabbce20a583f
Author: William Morgan <wmorgan-sup@masanjin.net>
Date: Tue, 5 Feb 2008 09:49:14 -0800
Merge branch 'rake-gem-REL' into next
Diffstat:
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/Rakefile b/Rakefile
@@ -9,9 +9,13 @@ end # thanks to "Mike H"
## allow people who use development versions by running "rake gem"
## and installing the resulting gem it to be able to do this. (gem
-## versions must be in dotted-digit notation only).
-version = Redwood::VERSION == "git" ? "999" : Redwood::VERSION
-
+## versions must be in dotted-digit notation only and can be passed
+## with the REL environment variable to "rake gem").
+if ENV['REL']
+ version = ENV['REL']
+else
+ version = Redwood::VERSION == "git" ? "999" : Redwood::VERSION
+end
Hoe.new('sup', version) do |p|
p.rubyforge_name = 'sup'
p.author = "William Morgan"