instance method
Gem::Installer#ensure_loadable_spec
ensure_loadable_spec
lib/rubygems/installer.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/installer.rb, line 595
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 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0