fastlane/lib/fastlane/plugins/plugin_manager.rb in fastlane_hotfix-2.165.1 vs fastlane/lib/fastlane/plugins/plugin_manager.rb in fastlane_hotfix-2.187.0
- old
+ new
@@ -153,15 +153,14 @@
#####################################################
# @!group Accessing RubyGems
#####################################################
def self.fetch_gem_info_from_rubygems(gem_name)
- require 'open-uri'
require 'json'
url = "https://rubygems.org/api/v1/gems/#{gem_name}.json"
begin
- JSON.parse(URI.open(url).read)
+ JSON.parse(FastlaneCore::Helper.open_uri(url).read)
rescue
nil
end
end
@@ -325,10 +324,10 @@
if current[1][:actions].empty?
# Something is wrong with this plugin, no available actions
no_action_found = true
[current[0].red, current[1][:version_number], "No actions found".red]
else
- [current[0], current[1][:version_number], current[1][:actions].join("\n")]
+ [current[0], current[1][:version_number], current[1][:actions].join(", ")]
end
end
require 'terminal-table'
puts(Terminal::Table.new({