Skip to content

Commit 60d5815

Browse files
committed
[GR-20329] Update gem commands to use --no-document option by default.
PullRequest: truffleruby/1783
2 parents 55bde37 + d559eac commit 60d5815

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
@@ -72,6 +72,10 @@ Compatibility:
7272
* Implemented `Ripper` by using the C extension (#1585).
7373
* Fixed `refine + super` compatibility (#2039, #2048, @ssnickolay)
7474

75+
Changes:
76+
77+
* RubyGems gem commands updated to use the `--no-document` option by default.
78+
7579
Performance:
7680

7781
* 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)