summaryrefslogtreecommitdiff
path: root/coderay.gemspec
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2011-09-19 02:52:00 +0200
committerKornelius Kalnbach <murphy@rubychan.de>2011-09-19 02:52:00 +0200
commit1627371625a2564722a0ba0edd7e3a929c767296 (patch)
treefe4207c5fe8469b8f78780bcb114f52bdeaf71af /coderay.gemspec
parentf4a43f6d3ec57f7295dae6d70bb853994f4e8734 (diff)
downloadcoderay-1627371625a2564722a0ba0edd7e3a929c767296.tar.gz
preparing for RELEASE
Diffstat (limited to 'coderay.gemspec')
-rw-r--r--coderay.gemspec12
1 files changed, 7 insertions, 5 deletions
diff --git a/coderay.gemspec b/coderay.gemspec
index d62bf4b..b117dd9 100644
--- a/coderay.gemspec
+++ b/coderay.gemspec
@@ -5,11 +5,13 @@ require 'coderay/version'
Gem::Specification.new do |s|
s.name = 'coderay'
- # thanks to @Argorak for this solution
- revision = 134 + (`git log --oneline | wc -l`.to_i)
- s.version = "#{CodeRay::VERSION}.#{revision}rc2"
-
- # s.version = CodeRay::VERSION
+ if ENV['RELEASE']
+ s.version = CodeRay::VERSION
+ else
+ # thanks to @Argorak for this solution
+ revision = 134 + (`git log --oneline | wc -l`.to_i)
+ s.version = "#{CodeRay::VERSION}.#{revision}rc2"
+ end
s.authors = ['Kornelius Kalnbach']
s.email = ['murphy@rubychan.de']