lib/thor/shell/basic.rb in thor-1.2.1 vs lib/thor/shell/basic.rb in thor-1.2.2
- old
+ new
@@ -180,11 +180,11 @@
#
# ==== Options
# indent<Integer>:: Indent the first column by indent value.
# colwidth<Integer>:: Force the first column to colwidth spaces wide.
#
- def print_table(array, options = {}) # rubocop:disable MethodLength
+ def print_table(array, options = {}) # rubocop:disable Metrics/MethodLength
return if array.empty?
formats = []
indent = options[:indent].to_i
colwidth = options[:colwidth]
@@ -423,10 +423,10 @@
def dynamic_width_tput
`tput cols 2>/dev/null`.to_i
end
def unix?
- RUBY_PLATFORM =~ /(aix|darwin|linux|(net|free|open)bsd|cygwin|solaris|irix|hpux)/i
+ RUBY_PLATFORM =~ /(aix|darwin|linux|(net|free|open)bsd|cygwin|solaris)/i
end
def truncate(string, width)
as_unicode do
chars = string.chars.to_a