mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
thor updates: fix Terminal::Table from terminal-table
The newest Thor also contains a Terminal module, causing "uninitialized constant Thor::Shell::Terminal::Table (NameError)"
This commit is contained in:
parent
55fe9b2d5a
commit
8697de8567
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue