fastlane/lib/fastlane/plugins/plugin_manager.rb in fastlane-2.219.0 vs fastlane/lib/fastlane/plugins/plugin_manager.rb in fastlane-2.220.0
- old
+ new
@@ -154,12 +154,13 @@
# @!group Accessing RubyGems
#####################################################
def self.fetch_gem_info_from_rubygems(gem_name)
require 'json'
+ require 'open-uri'
url = "https://rubygems.org/api/v1/gems/#{gem_name}.json"
begin
- JSON.parse(FastlaneCore::Helper.open_uri(url).read)
+ JSON.parse(URI.open(url).read)
rescue
nil
end
end