fastlane/lib/fastlane/environment_printer.rb in fastlane-2.29.0 vs fastlane/lib/fastlane/environment_printer.rb in fastlane-2.29.1
- old
+ new
@@ -60,21 +60,20 @@
table = ""
table << "| Plugin | Version | Update-Status |\n"
table << "|--------|---------|\n"
plugin_manager.available_plugins.each do |plugin|
begin
- installed_version = Fastlane::ActionCollector.determine_version(plugin)
- update_url = FastlaneCore::UpdateChecker.generate_fetch_url(plugin)
- latest_version = FastlaneCore::UpdateChecker.fetch_latest(update_url)
- if Gem::Version.new(installed_version) == Gem::Version.new(latest_version)
- update_status = "✅ Up-To-Date"
- else
- update_status = "🚫 Update available"
+ installed_version = Fastlane::ActionCollector.determine_version(plugin)
+ latest_version = FastlaneCore::UpdateChecker.fetch_latest(plugin)
+ if Gem::Version.new(installed_version) == Gem::Version.new(latest_version)
+ update_status = "✅ Up-To-Date"
+ else
+ update_status = "🚫 Update available"
+ end
+ rescue
+ update_status = "💥 Check failed"
end
- rescue
- update_status = "💥 Check failed"
- end
table << "| #{plugin} | #{installed_version} | #{update_status} |\n"
end
rendered_table = MarkdownTableFormatter.new table
env_output << rendered_table.to_md
@@ -105,12 +104,11 @@
gems_to_check.each do |current_gem|
update_status = "N/A"
next unless fastlane_tools.include?(current_gem.name.to_sym)
begin
- update_url = FastlaneCore::UpdateChecker.generate_fetch_url(current_gem.name)
- latest_version = FastlaneCore::UpdateChecker.fetch_latest(update_url)
- if Gem::Version.new(current_gem.version) == Gem::Version.new(latest_version)
+ latest_version = FastlaneCore::UpdateChecker.fetch_latest(current_gem.name)
+ if Gem::Version.new(current_gem.version) >= Gem::Version.new(latest_version)
update_status = "✅ Up-To-Date"
else
update_status = "🚫 Update available"
end
rescue