Fix a bug in the version code that only manifests when there's no patch release version.
This commit is contained in:
parent
f060823e4f
commit
cebd685468
@ -24,7 +24,8 @@ module Compass
|
||||
require 'yaml'
|
||||
@version = YAML::load(File.read(scope('VERSION.yml')))
|
||||
@version[:teeny] = @version[:patch]
|
||||
@version[:string] = "#{@version[:major]}.#{@version[:minor]}.#{@version[:patch]}"
|
||||
@version[:string] = "#{@version[:major]}.#{@version[:minor]}"
|
||||
@version[:string] << ".#{@version[:patch]}" if @version[:patch]
|
||||
@version[:string] << ".#{@version[:state]}" if @version[:state]
|
||||
@version[:string] << ".#{@version[:build]}" if @version[:build]
|
||||
if !ENV['OFFICIAL'] && r = revision
|
||||
|
Loading…
Reference in New Issue
Block a user