Permalink
Browse files

Versioning is hard.

  • Loading branch information...
1 parent 77d8350 commit df844b62552184f6d98a6f2911f3cd3a92805f77 @chriseppstein chriseppstein committed May 10, 2012
Showing with 5 additions and 2 deletions.
  1. +3 −1 VERSION.yml
  2. +2 −1 lib/compass/version.rb
View
@@ -1,5 +1,7 @@
---
:major: 0
:minor: 12
-:build: 1
+:build: 2
+:state: rc
+:iteration: 0
:name: Alnilam
View
@@ -26,8 +26,9 @@ def read_version
@version[:teeny] = @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]
+ @version[:string] << ".#{@version[:state]}" if @version[:state]
+ @version[:string] << ".#{@version[:iteration]}" if @version[:iteration]
if !ENV['OFFICIAL'] && r = revision
@version[:string] << ".#{r[0..6]}"
end

0 comments on commit df844b6

Please sign in to comment.