Sha256: f4f8066f4f0dbc15081dea15c2048115b998d46537ecf6ae222ba1c5a302d128

Contents?: true

Size: 267 Bytes

Versions: 97

Compression:

Stored size: 267 Bytes

Contents

require_relative 'rainbow/global'

module Rainbow
  def self.new
    Wrapper.new(global.enabled)
  end

  self.enabled = false unless STDOUT.tty? && STDERR.tty?
  self.enabled = false if ENV['TERM'] == 'dumb'
  self.enabled = true if ENV['CLICOLOR_FORCE'] == '1'
end

Version data entries

97 entries across 90 versions & 19 rubygems

Version Path
plaid-14.12.1 vendor/bundle/ruby/3.0.0/gems/rainbow-3.0.0/lib/rainbow.rb
plaid-14.12.0 vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/lib/rainbow.rb
plaid-14.11.1 vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/lib/rainbow.rb
ory-client-0.0.1.alpha43 vendor/bundle/ruby/2.5.0/gems/rainbow-3.0.0/lib/rainbow.rb
ory-client-0.0.1.alpha42 vendor/bundle/ruby/2.5.0/gems/rainbow-3.0.0/lib/rainbow.rb
phillipug-foodie-0.1.0 .vendor/ruby/3.0.0/gems/rainbow-3.0.0/lib/rainbow.rb
ory-client-0.0.1.alpha41 vendor/bundle/ruby/2.5.0/gems/rainbow-3.0.0/lib/rainbow.rb
ory-client-0.0.1.alpha40 vendor/bundle/ruby/2.5.0/gems/rainbow-3.0.0/lib/rainbow.rb
ory-client-0.0.1.alpha39 vendor/bundle/ruby/2.5.0/gems/rainbow-3.0.0/lib/rainbow.rb
ory-client-0.0.1.alpha38 vendor/bundle/ruby/2.5.0/gems/rainbow-3.0.0/lib/rainbow.rb
ory-client-0.0.1.alpha37 vendor/bundle/ruby/2.5.0/gems/rainbow-3.0.0/lib/rainbow.rb
ory-client-0.0.1.alpha36 vendor/bundle/ruby/2.5.0/gems/rainbow-3.0.0/lib/rainbow.rb
ory-kratos-client-0.8.2.alpha1 vendor/bundle/ruby/2.5.0/gems/rainbow-3.0.0/lib/rainbow.rb
ory-client-0.0.1.alpha31 vendor/bundle/ruby/2.5.0/gems/rainbow-3.0.0/lib/rainbow.rb
plaid-14.10.0 vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/lib/rainbow.rb
primary_connect_proto-0.4.0 vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/lib/rainbow.rb
primary_connect_proto-0.3.0 vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/lib/rainbow.rb
primary_connect_proto-0.2.0 vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/lib/rainbow.rb
primary_connect_proto-0.1.0 vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/lib/rainbow.rb
ory-client-0.0.1.alpha30 vendor/bundle/ruby/2.5.0/gems/rainbow-3.0.0/lib/rainbow.rb