##// END OF EJS Templates
Add more info about the ruby version (#14419)....
Jean-Philippe Lang -
r11772:e07bc81c5e09
parent child
Show More
@@ -10,16 +10,16 module Redmine
10 s = "Environment:\n"
10 s = "Environment:\n"
11 s << [
11 s << [
12 ["Redmine version", Redmine::VERSION],
12 ["Redmine version", Redmine::VERSION],
13 ["Ruby version", "#{RUBY_VERSION} (#{RUBY_PLATFORM})"],
13 ["Ruby version", "#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"],
14 ["Rails version", Rails::VERSION::STRING],
14 ["Rails version", Rails::VERSION::STRING],
15 ["Environment", Rails.env],
15 ["Environment", Rails.env],
16 ["Database adapter", ActiveRecord::Base.connection.adapter_name]
16 ["Database adapter", ActiveRecord::Base.connection.adapter_name]
17 ].map {|info| " %-40s %s" % info}.join("\n")
17 ].map {|info| " %-30s %s" % info}.join("\n")
18 s << "\nRedmine plugins:\n"
18 s << "\nRedmine plugins:\n"
19
19
20 plugins = Redmine::Plugin.all
20 plugins = Redmine::Plugin.all
21 if plugins.any?
21 if plugins.any?
22 s << plugins.map {|plugin| " %-40s %s" % [plugin.id.to_s, plugin.version.to_s]}.join("\n")
22 s << plugins.map {|plugin| " %-30s %s" % [plugin.id.to_s, plugin.version.to_s]}.join("\n")
23 else
23 else
24 s << " no plugin installed"
24 s << " no plugin installed"
25 end
25 end
General Comments 0
You need to be logged in to leave comments. Login now