diff options
-rw-r--r-- | coderay.gemspec | 12 |
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'] |