Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Gem::Installer#extract_bin
extract_bin
lib/rubygems/installer.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/rubygems/installer.rb, line 869
def extract_bin
@package.extract_files gem_dir, "#{spec.bindir}/*"
end
Extracts only the bin/ files from the gem into the gem directory. This is used by default gems to allow a gem-aware stub to function without the full gem installed.
See also
#explicit_version_requirement
#extract_files
#ensure_loadable_spec
#formatted_program_filename
also in
4.1 · 4.0 · 3.4 · 3.2 · 3.1 · 3.0