From 02cacead7e7f159416f9754bd8bdf79d5519bcc6 Mon Sep 17 00:00:00 2001 From: Scott Barron Date: Tue, 7 Oct 2008 10:01:15 -0400 Subject: [PATCH] Version module is causing conflicts with other packages --- Rakefile | 2 +- lib/aasm.rb | 4 ++++ lib/version.rb | 5 ----- 3 files changed, 5 insertions(+), 6 deletions(-) delete mode 100644 lib/version.rb diff --git a/Rakefile b/Rakefile index 0aa7481..720ca88 100644 --- a/Rakefile +++ b/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' diff --git a/lib/aasm.rb b/lib/aasm.rb index 804f2e1..74038d6 100644 --- a/lib/aasm.rb +++ b/lib/aasm.rb @@ -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 diff --git a/lib/version.rb b/lib/version.rb deleted file mode 100644 index 0c195a3..0000000 --- a/lib/version.rb +++ /dev/null @@ -1,5 +0,0 @@ -module AASM - module VERSION - STRING = '2.0.2' - end -end