aboutsummaryrefslogtreecommitdiffstats
path: root/actionwebservice
diff options
context:
space:
mode:
Diffstat (limited to 'actionwebservice')
-rw-r--r--actionwebservice/Rakefile3
-rw-r--r--actionwebservice/lib/version.rb9
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