fastlane/lib/fastlane/plugins/plugin_info_collector.rb in fastlane-2.219.0 vs fastlane/lib/fastlane/plugins/plugin_info_collector.rb in fastlane-2.220.0

- old
+ new

@@ -64,11 +64,12 @@ end # Checks if the gem name is still free on RubyGems def gem_name_taken?(name) require 'json' + require 'open-uri' url = "https://rubygems.org/api/v1/gems/#{name}.json" - response = JSON.parse(FastlaneCore::Helper.open_uri(url).read) + response = JSON.parse(URI.open(url).read) return !!response['version'] rescue false end