mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
Version module is causing conflicts with other packages
This commit is contained in:
parent
ea29d0960e
commit
02cacead7e
3 changed files with 5 additions and 6 deletions
2
Rakefile
2
Rakefile
|
@ -14,7 +14,7 @@ rescue Exception
|
|||
nil
|
||||
end
|
||||
|
||||
if `ruby -Ilib -rversion -e "print AASM::VERSION::STRING"` =~ /([0-9.]+)$/
|
||||
if `ruby -Ilib -raasm -e "print AASM.Version"` =~ /([0-9.]+)$/
|
||||
CURRENT_VERSION = $1
|
||||
else
|
||||
CURRENT_VERSION = '0.0.0'
|
||||
|
|
|
@ -4,6 +4,10 @@ require File.join(File.dirname(__FILE__), 'state_machine')
|
|||
require File.join(File.dirname(__FILE__), 'persistence')
|
||||
|
||||
module AASM
|
||||
def self.Version
|
||||
'0.0.2'
|
||||
end
|
||||
|
||||
class InvalidTransition < RuntimeError
|
||||
end
|
||||
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
module AASM
|
||||
module VERSION
|
||||
STRING = '2.0.2'
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue