From 8697de85672a5bf572cb7b897edbee57d60b585d Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Fri, 5 Jan 2024 20:30:27 +0100 Subject: [PATCH] thor updates: fix Terminal::Table from terminal-table The newest Thor also contains a Terminal module, causing "uninitialized constant Thor::Shell::Terminal::Table (NameError)" --- lib/tasks/updates.thor | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tasks/updates.thor b/lib/tasks/updates.thor index b3fb28bb..48486b9f 100644 --- a/lib/tasks/updates.thor +++ b/lib/tasks/updates.thor @@ -123,7 +123,7 @@ class UpdatesCLI < Thor headings = ['Documentation', 'Scraper version', 'Latest version'] rows = results.map {|result| [result[:name], result[:scraper_version], result[:latest_version]]} - table = Terminal::Table.new :title => title, :headings => headings, :rows => rows + table = ::Terminal::Table.new :title => title, :headings => headings, :rows => rows puts table end @@ -132,7 +132,7 @@ class UpdatesCLI < Thor headings = %w(Documentation Reason) rows = results.map {|result| [result[:name], result[:error]]} - table = Terminal::Table.new :title => title, :headings => headings, :rows => rows + table = ::Terminal::Table.new :title => title, :headings => headings, :rows => rows puts table end