Version module is causing conflicts with other packages

This commit is contained in:
Scott Barron 2008-10-07 10:01:15 -04:00
parent ea29d0960e
commit 02cacead7e
3 changed files with 5 additions and 6 deletions

View File

@ -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'

View File

@ -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

View File

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