diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-08-29 22:27:43 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-08-29 22:27:43 +0000 |
commit | 840f18b1c7e462ee56307eb281a91bb7cbbe3ea4 (patch) | |
tree | b162b6c1f42a021e701a8c788b9adbd271b3f78c /lib | |
parent | 088563db3e00020d691d79d18c01ac8b06ce92d3 (diff) | |
download | redmine-840f18b1c7e462ee56307eb281a91bb7cbbe3ea4.tar.gz redmine-840f18b1c7e462ee56307eb281a91bb7cbbe3ea4.zip |
Added Redmine::Info to store various information about the application.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@682 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine.rb | 1 | ||||
-rw-r--r-- | lib/redmine/info.rb | 9 | ||||
-rw-r--r-- | lib/redmine/version.rb | 7 |
3 files changed, 9 insertions, 8 deletions
diff --git a/lib/redmine.rb b/lib/redmine.rb index df4d0a8cf..1d27dd420 100644 --- a/lib/redmine.rb +++ b/lib/redmine.rb @@ -1,4 +1,3 @@ -require 'redmine/version' require 'redmine/access_control' require 'redmine/menu_manager' require 'redmine/mime_type' diff --git a/lib/redmine/info.rb b/lib/redmine/info.rb new file mode 100644 index 000000000..1541e1425 --- /dev/null +++ b/lib/redmine/info.rb @@ -0,0 +1,9 @@ +module Redmine + module Info + class << self + def app_name; 'Redmine' end + def url; 'http://www.redmine.org/' end + def versioned_name; "#{app_name} #{Redmine::VERSION}" end + end + end +end diff --git a/lib/redmine/version.rb b/lib/redmine/version.rb index 494bb2de2..5934af03e 100644 --- a/lib/redmine/version.rb +++ b/lib/redmine/version.rb @@ -8,11 +8,4 @@ module Redmine def self.to_s; STRING end end - - module Info - class << self - def name; 'Redmine' end - def url; 'http://www.redmine.org/' end - end - end end |