End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Gem.default_exec_format
default_exec_format
lib/rubygems/defaults.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/rubygems/defaults.rb, line 185
def self.default_exec_format
exec_format = RbConfig::CONFIG["ruby_install_name"].sub("ruby", "%s") rescue "%s"
unless exec_format.include?("%s")
raise Gem::Exception,
"[BUG] invalid exec_format #{exec_format.inspect}, no %s"
end
exec_format
end
Deduce Ruby’s –program-prefix and –program-suffix from its install name
See also
.default_dir
.default_ext_dir_for
.default_cert_path
.default_gem_load_paths
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0