Do away with stats about rails and bundler initialization

We have the code to kick them in in one run (through the console
for instance) or write a spec that keeps them under some threshold,
so there is no reason why everyone must see the numbers every day.
This commit is contained in:
Mohamed Wael Khobalatte
2015-10-02 21:38:32 +01:00
parent f29f111083
commit abceabc36f
2 changed files with 4 additions and 10 deletions
+2 -6
View File
@@ -46,9 +46,7 @@ module SimpleBenchmark
end
end
SimpleBenchmark.bench "require 'rails/all'" do
require 'rails/all'
end
require 'rails/all'
if defined?(Bundler)
# lib directory has to be added to the load path so that
@@ -65,9 +63,7 @@ if defined?(Bundler)
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
SimpleBenchmark.bench 'Bundler.require' do
Bundler.require(*Rails.groups(:opf_plugins))
end
Bundler.require(*Rails.groups(:opf_plugins))
end
require File.dirname(__FILE__) + '/../lib/open_project/configuration'
+2 -4
View File
@@ -30,7 +30,5 @@
# Load the Rails application.
require File.expand_path('../application', __FILE__)
SimpleBenchmark.bench 'Application.initialize!' do
# Initialize the Rails application.
OpenProject::Application.initialize!
end
# Initialize the Rails application.
OpenProject::Application.initialize!