Add AASM::VERSION module and have the gem task use it

This commit is contained in:
Scott Barron 2008-02-21 12:37:56 -05:00
parent 8fc83db605
commit 543ac695fd
2 changed files with 10 additions and 1 deletions

View File

@ -15,7 +15,11 @@ rescue Exception
end
# Version
CURRENT_VERSION = '0.0.0'
if `ruby -Ilib -rversion -e "print AASM::VERSION::STRING"` =~ /([0-9.]+)$/
CURRENT_VERSION = $1
else
CURRENT_VERSION = '0.0.0'
end
$package_version = CURRENT_VERSION
PKG_FILES = FileList['[A-Z]*',

5
lib/version.rb Normal file
View File

@ -0,0 +1,5 @@
module AASM
module VERSION
STRING = '3.0.0'
end
end