Project

General

Profile

Actions

Patch #39547

closed

Prevent automatic requiring of unnecessary gems at runtime

Added by Go MAEDA 7 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Gems support
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

We can set `require: false` to the yard gem in Gemfile. This will slightly reduce the memory used by Redmine.

The yard gem is only needed when executing `rake yard` and is not necessary when running the Redmine application. Moreover, since `require 'yard'` is executed internally when running `rake yard`, there is no need to load 'yard' when starting up Redmine.

diff --git a/Gemfile b/Gemfile
index 5b789f927..11e6acdf8 100644
--- a/Gemfile
+++ b/Gemfile
@@ -89,7 +89,7 @@ end

 group :development do
   gem 'listen', '~> 3.3'
-  gem "yard" 
+  gem 'yard', require: false
 end

 group :test do
Actions #1

Updated by Go MAEDA 7 months ago

  • Target version set to 6.0.0
Actions #2

Updated by Go MAEDA 7 months ago

  • Subject changed from Prevent automatic requiring of 'yard' gem at runtime to Prevent automatic requiring of 'yard' gem
Actions #3

Updated by Go MAEDA 7 months ago

  • Status changed from New to Closed
  • Assignee set to Go MAEDA

Committed the patch in r22452.

Actions #4

Updated by Go MAEDA 5 months ago

  • Subject changed from Prevent automatic requiring of 'yard' gem to Prevent automatic requiring of unnecessary gems at runtime
Actions

Also available in: Atom PDF