diff options
author | Marcel Molina <marcel@vernix.org> | 2005-10-09 21:15:45 +0000 |
---|---|---|
committer | Marcel Molina <marcel@vernix.org> | 2005-10-09 21:15:45 +0000 |
commit | 68a322005d367981ba72c6a667c16dd171803869 (patch) | |
tree | b92724953eb7798cfc40e07630d550e5d81fb14d /actionwebservice | |
parent | c8e364a93f6c2de80fb56ddf2f6a46b6e96f4a9d (diff) | |
download | rails-68a322005d367981ba72c6a667c16dd171803869.tar.gz rails-68a322005d367981ba72c6a667c16dd171803869.tar.bz2 rails-68a322005d367981ba72c6a667c16dd171803869.zip |
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
Diffstat (limited to 'actionwebservice')
-rw-r--r-- | actionwebservice/Rakefile | 3 | ||||
-rw-r--r-- | actionwebservice/lib/version.rb | 9 |
2 files changed, 11 insertions, 1 deletions
diff --git a/actionwebservice/Rakefile b/actionwebservice/Rakefile index 24d1a0ea6f..1e52d15674 100644 --- a/actionwebservice/Rakefile +++ b/actionwebservice/Rakefile @@ -6,10 +6,11 @@ require 'rake/packagetask' require 'rake/gempackagetask' require 'rake/contrib/rubyforgepublisher' require 'fileutils' +require File.join(File.dirname(__FILE__), 'lib', 'version') PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : '' PKG_NAME = 'actionwebservice' -PKG_VERSION = '0.8.1' + PKG_BUILD +PKG_VERSION = ActionWebService::Version::STRING + PKG_BUILD PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}" PKG_DESTINATION = ENV["RAILS_PKG_DESTINATION"] || "../#{PKG_NAME}" diff --git a/actionwebservice/lib/version.rb b/actionwebservice/lib/version.rb new file mode 100644 index 0000000000..27a0c267ad --- /dev/null +++ b/actionwebservice/lib/version.rb @@ -0,0 +1,9 @@ +module ActionWebService + module Version + MAJOR = 0 + MINOR = 8 + TINY = 1 + + STRING = [MAJOR, MINOR, TINY].join('.') + end +end |