colorb 0.0.1 → 0.0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/colorb.rb +2 -0
  2. metadata +2 -1
@@ -77,6 +77,8 @@ class String
77
77
  end
78
78
 
79
79
  def self.colorify (string, foreground, background, flags)
80
+ return string if ENV['NO_COLORS'] && !ENV['NO_COLORS'].empty?
81
+
80
82
  result = string.clone
81
83
 
82
84
  result.sub!(/^/, [
metadata CHANGED
@@ -5,8 +5,9 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
+ - 2
8
9
  - 1
9
- version: 0.0.1
10
+ version: 0.0.2.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - meh.