class Bundler::EndpointSpecification
def parse_metadata(data)
def parse_metadata(data) unless data @required_ruby_version = nil @required_rubygems_version = nil return end data.each do |k, v| next unless v case k.to_s when "checksum" begin @checksum = Checksum.from_api(v.last, @spec_fetcher.uri) rescue ArgumentError => e raise ArgumentError, "Invalid checksum for #{full_name}: #{e.message}" end when "rubygems" @required_rubygems_version = Gem::Requirement.new(v) when "ruby" @required_ruby_version = Gem::Requirement.new(v) end end rescue StandardError => e raise GemspecError, "There was an error parsing the metadata for the gem #{name} (#{version}): #{e.class}\n#{e}\nThe metadata was #{data.inspect}" end