Improve version naming.

This commit is contained in:
Glenn Y. Rolland 2014-10-28 14:12:10 +01:00
parent 9192778797
commit 941cda0456
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
PATH PATH
remote: . remote: .
specs: specs:
qasim (0.1.11) qasim (0.1.11.dev.2014102811)
qtbindings (~> 4.8.6.0) qtbindings (~> 4.8.6.0)
GEM GEM

View file

@ -6,7 +6,7 @@ require 'qasim/version'
Gem::Specification.new do |spec| Gem::Specification.new do |spec|
spec.name = "qasim" spec.name = "qasim"
spec.version = if `git branch`.split($/).include?("* develop") then spec.version = if `git branch`.split($/).include?("* develop") then
Qasim::APP_VERSION + '.dev-' + Time.now.utc.strftime('%Y%m%d%H') Qasim::APP_VERSION + '.dev.' + Time.now.utc.strftime('%Y%m%d%H')
else else
Qasim::APP_VERSION Qasim::APP_VERSION
end end