comparison .svn/pristine/87/87302c164870deca416ccc176d640a68faf97687.svn-base @ 1295:622f24f53b42 redmine-2.3

Update to Redmine SVN revision 11972 on 2.3-stable branch
author Chris Cannam
date Fri, 14 Jun 2013 09:02:21 +0100
parents
children
comparison
equal deleted inserted replaced
1294:3e4c3460b6ca 1295:622f24f53b42
1 module Redmine
2 module Info
3 class << self
4 def app_name; 'Redmine' end
5 def url; 'http://www.redmine.org/' end
6 def help_url; 'http://www.redmine.org/guide' end
7 def versioned_name; "#{app_name} #{Redmine::VERSION}" end
8
9 def environment
10 s = "Environment:\n"
11 s << [
12 ["Redmine version", Redmine::VERSION],
13 ["Ruby version", "#{RUBY_VERSION} (#{RUBY_PLATFORM})"],
14 ["Rails version", Rails::VERSION::STRING],
15 ["Environment", Rails.env],
16 ["Database adapter", ActiveRecord::Base.connection.adapter_name]
17 ].map {|info| " %-40s %s" % info}.join("\n")
18 s << "\nRedmine plugins:\n"
19
20 plugins = Redmine::Plugin.all
21 if plugins.any?
22 s << plugins.map {|plugin| " %-40s %s" % [plugin.id.to_s, plugin.version.to_s]}.join("\n")
23 else
24 s << " no plugin installed"
25 end
26 end
27 end
28 end
29 end