Bläddra i källkod

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 1 år sedan
förälder
incheckning
8697de8567
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      lib/tasks/updates.thor

+ 2 - 2
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