Bump version and assign a name.

This commit is contained in:
Chris Eppstein 2011-04-24 22:21:10 -07:00
parent bb53c8c34b
commit 144a3b27a1
4 changed files with 7 additions and 4 deletions

View File

@ -7,7 +7,7 @@ GIT
PATH PATH
remote: . remote: .
specs: specs:
compass (0.11.beta.7.a997fa2) compass (0.11.0)
chunky_png (~> 1.1.1) chunky_png (~> 1.1.1)
fssm (>= 0.2.7) fssm (>= 0.2.7)
sass (>= 3.1.0.alpha.249) sass (>= 3.1.0.alpha.249)

View File

@ -1,5 +1,5 @@
--- ---
:major: 0 :major: 0
:minor: 11 :minor: 11
:state: beta :build: 0
:build: 7 :name: Antares

View File

@ -57,6 +57,9 @@ Options:
def long_output_string def long_output_string
lines = [] lines = []
lines << "Compass #{::Compass.version[:string]}" lines << "Compass #{::Compass.version[:string]}"
if name = ::Compass.version[:name]
lines.last << " (#{name})"
end
lines << "Copyright (c) 2008-#{Time.now.year} Chris Eppstein" lines << "Copyright (c) 2008-#{Time.now.year} Chris Eppstein"
lines << "Released under the MIT License." lines << "Released under the MIT License."
lines << "Compass is charityware." lines << "Compass is charityware."

View File

@ -23,7 +23,7 @@ module Compass
def read_version def read_version
require 'yaml' require 'yaml'
@version = YAML::load(File.read(scope('VERSION.yml'))) @version = YAML::load(File.read(scope('VERSION.yml')))
@version[:teeny] = @version[:patch] @version[:teeny] = @version[:patch]
@version[:string] = "#{@version[:major]}.#{@version[:minor]}" @version[:string] = "#{@version[:major]}.#{@version[:minor]}"
@version[:string] << ".#{@version[:patch]}" if @version[:patch] @version[:string] << ".#{@version[:patch]}" if @version[:patch]
@version[:string] << ".#{@version[:state]}" if @version[:state] @version[:string] << ".#{@version[:state]}" if @version[:state]