Permalink
Browse files

Add AASM::VERSION module and have the gem task use it

  • Loading branch information...
1 parent 8fc83db commit 543ac695fd7c1637e5a6b53caf866f226ef99c85 Scott Barron committed Feb 21, 2008
Showing with 10 additions and 1 deletion.
  1. +5 −1 Rakefile
  2. +5 −0 lib/version.rb
View
@@ -15,7 +15,11 @@ rescue Exception
end
# 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
PKG_FILES = FileList['[A-Z]*',
View
@@ -0,0 +1,5 @@
+module AASM
+ module VERSION
+ STRING = '3.0.0'
+ end
+end

0 comments on commit 543ac69

Please sign in to comment.