History

thor updates: fix Terminal::Table from terminal-table

The newest Thor also contains a Terminal module, causing "uninitialized constant Thor::Shell::Terminal::Table (NameError)"

Simon Legner committed 2 years ago

Commit 8697de81 parent 55fe9b21 file · +2 −2Browse files

Unified · Split

lib/tasks/updates.thor+2−2
@@ -123,7 +123,7 @@ class UpdatesCLI < Thor · 122 unmodified lines
123123 headings = ['Documentation', 'Scraper version', 'Latest version']
124124 rows = results.map {|result| [result[:name], result[:scraper_version], result[:latest_version]]}
125125
126− table = Terminal::Table.new :title => title, :headings => headings, :rows => rows
126+ table = ::Terminal::Table.new :title => title, :headings => headings, :rows => rows
127127 puts table
128128 end
129129
@@ -132,7 +132,7 @@ class UpdatesCLI < Thor · 2 unmodified lines
132132 headings = %w(Documentation Reason)
133133 rows = results.map {|result| [result[:name], result[:error]]}
134134
135− table = Terminal::Table.new :title => title, :headings => headings, :rows => rows
135+ table = ::Terminal::Table.new :title => title, :headings => headings, :rows => rows
136136 puts table
137137 end
138138