Skip to content

Commit d559eac

Browse files
committed
Update gem commands to use --no-document option by default
1 parent 4f07365 commit d559eac

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ Compatibility:
6969
* Make the top-level exception handler more compatible with MRI (#2047).
7070
* Implemented `rb_enc_codelen`.
7171

72+
Changes:
73+
74+
* RubyGems gem commands updated to use the `--no-document` option by default.
75+
7276
Performance:
7377

7478
* Enable lazy translation from the parser AST to the Truffle AST for user code by default. This should improve application startup time (#1992).

lib/truffle/rubygems/defaults/truffleruby.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,11 @@ def self.default_dir
2121
# TruffleRuby has a different ABI and cannot reuse gems precompiled for MRI.
2222
# See https://github.com/rubygems/rubygems/issues/2945
2323
Gem.platforms = [Gem::Platform::RUBY]
24+
25+
def self.platform_defaults
26+
# disable documentation by default as it takes a significant amount of time for installing gems and is rarely used
27+
{
28+
'gem' => '--no-document'
29+
}
30+
end
2431
end

0 commit comments

Comments
 (0)