load_gemspec(io)
Attempt to YAML-load a gemspec from the given io parameter. Return nil if it fails.
# File lib/rubygems/package/tar_input.rb, line 193 def load_gemspec(io) Gem::Specification.from_yaml io rescue Gem::Exception nil end