Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Gem::Installer#ensure_loadable_spec
ensure_loadable_spec
lib/rubygems/installer.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/rubygems/installer.rb, line 635
def ensure_loadable_spec
ruby = spec.to_ruby_for_cache
begin
eval ruby
rescue StandardError, SyntaxError => e
raise Gem::InstallError,
"The specification for #{spec.full_name} is corrupt (#{e.class})"
end
end
Ensures the Gem::Specification written out for this gem is loadable upon installation.
See also
#ensure_dependency
#explicit_version_requirement
#dir
#extract_bin
also in
4.1 · 4.0 · 3.4 · 3.2 · 3.1 · 3.0