From cebd6854688537383375dfd1269d0c6ac8df1ad5 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Sun, 16 May 2010 10:16:13 -0700 Subject: [PATCH] Fix a bug in the version code that only manifests when there's no patch release version. --- lib/compass/version.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/compass/version.rb b/lib/compass/version.rb index 62400105..f7eaa141 100644 --- a/lib/compass/version.rb +++ b/lib/compass/version.rb @@ -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