Fix a bug in the version code that only manifests when there's no patch release version.

This commit is contained in:
Chris Eppstein 2010-05-16 10:16:13 -07:00
parent f060823e4f
commit cebd685468

View File

@ -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