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:
parent
8fc83db605
commit
543ac695fd
2 changed files with 10 additions and 1 deletions
4
Rakefile
4
Rakefile
|
@ -15,7 +15,11 @@ rescue Exception
|
|||
end
|
||||
|
||||
# Version
|
||||
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
5
lib/version.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
module AASM
|
||||
module VERSION
|
||||
STRING = '3.0.0'
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue