lib/rubygems/comparator.rb in gem-compare-0.0.5 vs lib/rubygems/comparator.rb in gem-compare-0.0.6

- old
+ new

@@ -154,9 +154,13 @@ client.http_get json = JSON.parse(client.body_str) gems = json.collect { |version| version['number'] } info "Upstream versions: #{gems}" gems + # "This rubygem could not be found." + rescue JSON::ParserError + error "Gem #{gem_name} does not exist." + exit 1 end def latest_gem_version(gem_name) remote_gem_versions(gem_name).map{ |v| Gem::Version.new v }.max.to_s end