The newest Thor also contains a Terminal module, causing "uninitialized constant Thor::Shell::Terminal::Table (NameError)"
Unified · Split
| @@ -123,7 +123,7 @@ class UpdatesCLI < Thor · 122 unmodified lines | ||
| 123 | 123 | headings = ['Documentation', 'Scraper version', 'Latest version'] |
| 124 | 124 | rows = results.map {|result| [result[:name], result[:scraper_version], result[:latest_version]]} |
| 125 | 125 | |
| 126 | − table = Terminal::Table.new :title => title, :headings => headings, :rows => rows | |
| 126 | + table = ::Terminal::Table.new :title => title, :headings => headings, :rows => rows | |
| 127 | 127 | puts table |
| 128 | 128 | end |
| 129 | 129 | |
| @@ -132,7 +132,7 @@ class UpdatesCLI < Thor · 2 unmodified lines | ||
| 132 | 132 | headings = %w(Documentation Reason) |
| 133 | 133 | rows = results.map {|result| [result[:name], result[:error]]} |
| 134 | 134 | |
| 135 | − table = Terminal::Table.new :title => title, :headings => headings, :rows => rows | |
| 135 | + table = ::Terminal::Table.new :title => title, :headings => headings, :rows => rows | |
| 136 | 136 | puts table |
| 137 | 137 | end |
| 138 | 138 | |