Ver código fonte

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 ano atrás
pai
commit
8697de8567
1 arquivos alterados com 2 adições e 2 exclusões
  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