From 68a322005d367981ba72c6a667c16dd171803869 Mon Sep 17 00:00:00 2001 From: Marcel Molina Date: Sun, 9 Oct 2005 21:15:45 +0000 Subject: Add versioning convention from SwitchTower to all Rails components. Add --version, -v option to the 'rails' command. Closes #1840. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2508 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/Rakefile | 3 ++- activerecord/lib/version.rb | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 activerecord/lib/version.rb (limited to 'activerecord') diff --git a/activerecord/Rakefile b/activerecord/Rakefile index cbeaedb231..4a5fc0220f 100755 --- a/activerecord/Rakefile +++ b/activerecord/Rakefile @@ -5,10 +5,11 @@ require 'rake/rdoctask' require 'rake/packagetask' require 'rake/gempackagetask' require 'rake/contrib/rubyforgepublisher' +require File.join(File.dirname(__FILE__), 'lib', 'version') PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : '' PKG_NAME = 'activerecord' -PKG_VERSION = '1.11.1' + PKG_BUILD +PKG_VERSION = ActiveRecord::Version::STRING + PKG_BUILD PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}" RELEASE_NAME = "REL #{PKG_VERSION}" diff --git a/activerecord/lib/version.rb b/activerecord/lib/version.rb new file mode 100644 index 0000000000..f28d506bd7 --- /dev/null +++ b/activerecord/lib/version.rb @@ -0,0 +1,9 @@ +module ActiveRecord + module Version + MAJOR = 1 + MINOR = 11 + TINY = 1 + + STRING = [MAJOR, MINOR, TINY].join('.') + end +end -- cgit v1.2.3