diff options
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/Rakefile | 5 | ||||
-rw-r--r-- | activesupport/lib/version.rb | 9 |
2 files changed, 12 insertions, 2 deletions
diff --git a/activesupport/Rakefile b/activesupport/Rakefile index 7ecfd9cadf..25a2124325 100644 --- a/activesupport/Rakefile +++ b/activesupport/Rakefile @@ -2,10 +2,11 @@ require 'rake/testtask' require 'rake/rdoctask' 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 = 'activesupport' -PKG_VERSION = '1.1.1' + PKG_BUILD +PKG_VERSION = ActiveSupport::Version::STRING + PKG_BUILD PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}" RELEASE_NAME = "REL #{PKG_VERSION}" @@ -180,4 +181,4 @@ task :release => [:package] do first_file = false end end -end
\ No newline at end of file +end diff --git a/activesupport/lib/version.rb b/activesupport/lib/version.rb new file mode 100644 index 0000000000..71bb7592a2 --- /dev/null +++ b/activesupport/lib/version.rb @@ -0,0 +1,9 @@ +module ActiveSupport + module Version + MAJOR = 1 + MINOR = 1 + TINY = 1 + + STRING = [MAJOR, MINOR, TINY].join('.') + end +end |