cli-colorize 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/cli-colorize.rb +1 -1
  2. metadata +2 -2
data/lib/cli-colorize.rb CHANGED
@@ -115,7 +115,7 @@ module CLIColorize
115
115
  # (If STDOUT has been redirected to a file, it will be a block device,
116
116
  # not a tty device, and we wouldn't want the ANSI codes inserted.
117
117
  def CLIColorize.print_colorized_if_tty(text, color=nil)
118
- STDOUT.puts(STDOUT.isatty ? CLIColorize.colorize(text, color) : text)
118
+ STDOUT.print(STDOUT.isatty ? CLIColorize.colorize(text, color) : text)
119
119
  end
120
120
 
121
121
  # instance method delegating to class method, see CLIColorize.print_if_tty
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: cli-colorize
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.1.0
5
+ version: 1.1.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Chris St. John
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-05-31 00:00:00 -04:00
13
+ date: 2011-06-02 00:00:00 -04:00
14
14
  default_executable:
15
15
  dependencies: []
16
16