Skip to content
Browse files

Disable progress indication in Windows (poor ANSI support)

  • Loading branch information...
1 parent 706c9f5 commit c2f276c30604bf292629c8c8dcd9bb95b19ef5e4 @lsegal committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/yard/logging.rb
View
3 lib/yard/logging.rb
@@ -22,7 +22,8 @@ def show_backtraces; @show_backtraces || level == DEBUG end
# @return [Boolean] whether progress indicators should be shown when
# logging CLIs (by default this is off).
def show_progress
- return false if RUBY18 # threading is too ineffective for progress support
+ return false if YARD.ruby18? # threading is too ineffective for progress support
+ return false if YARD.windows? # windows has poor ANSI support
return false unless io.tty? # no TTY support on IO
return false if level > WARN # no progress in verbose/debug modes
@show_progress

0 comments on commit c2f276c

Please sign in to comment.
Something went wrong with that request. Please try again.