Preview Ruby 4.1 is a preview. It can change before the final release. 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-4.1.0-preview1/lib/rubygems/installer.rb, line 630
def ensure_loadable_spec
spec = self.spec
begin
eval spec.to_ruby_for_cache
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.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0