summaryrefslogtreecommitdiff
path: root/rake_tasks
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2010-04-02 00:09:07 +0000
committermurphy <murphy@rubychan.de>2010-04-02 00:09:07 +0000
commit71cf11e7137e39c5ef1e9840adda6bcfb38f7432 (patch)
treee187218bf9508e42ebf30273f4e7b0f2a771ee4b /rake_tasks
parent862bc9aa6b002f6b29cf74f93ca66e63cf370819 (diff)
downloadcoderay-71cf11e7137e39c5ef1e9840adda6bcfb38f7432.tar.gz
gem task: Make automatic beta recognition and pre switch play nice together.
Diffstat (limited to 'rake_tasks')
-rw-r--r--rake_tasks/gem.rake7
1 files changed, 3 insertions, 4 deletions
diff --git a/rake_tasks/gem.rake b/rake_tasks/gem.rake
index 328a32e..7bb2b1b 100644
--- a/rake_tasks/gem.rake
+++ b/rake_tasks/gem.rake
@@ -66,13 +66,12 @@ namespace :gem do
$version = CodeRay::VERSION
end
puts 'Current Version: %s' % $version
- if $version[/.0$/]
- $version << '.' << svn_head_revision
- $gem_name << '-beta'
- end
if ENV['pre']
$version << '.' << svn_head_revision
$version << '.pre'
+ elsif $version[/.0$/]
+ $version << '.' << svn_head_revision
+ $gem_name << '-beta'
end
end