Add AASM::VERSION module and have the gem task use it
This commit is contained in:
parent
8fc83db605
commit
543ac695fd
6
Rakefile
6
Rakefile
|
@ -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]*',
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
module AASM
|
||||||
|
module VERSION
|
||||||
|
STRING = '3.0.0'
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in New Issue