Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
Gem.operating_system_defaults
() -> ::Hash[::String, ::String]
operating_system_defaults
lib/rubygems/defaults.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/rubygems/defaults.rb, line 286
def self.operating_system_defaults
{}
end
Default options for gem commands for Ruby packagers.
The options here should be structured as an array of string “gem” command names as keys and a string of the default options as values.
Example:
def self.operating_system_defaults
Example
{
'install' => '--no-rdoc --no-ri --env-shebang',
'update' => '--no-rdoc --no-ri --env-shebang'
}
end
See also
.open_file_with_lock
.path
.open_file_with_flock
.paths
also in
4.1 · 4.0 · 3.3 · 3.2 · 3.1 · 3.0