1
0
Fork 0
mirror of https://github.com/aasm/aasm synced 2023-03-27 23:22:41 -04:00

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 end
# Version # 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 $package_version = CURRENT_VERSION
PKG_FILES = FileList['[A-Z]*', 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