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
ory-client-0.0.1.alpha29 vendor/bundle/ruby/2.5.0/gems/rainbow-3.0.0/lib/rainbow.rb
primary_connect_proto-0.0.6 vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/lib/rainbow.rb
ory-client-0.0.1.alpha28 vendor/bundle/ruby/2.5.0/gems/rainbow-3.0.0/lib/rainbow.rb
primary_connect_proto-0.0.5 vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/lib/rainbow.rb
ory-client-0.0.1.alpha27 vendor/bundle/ruby/2.5.0/gems/rainbow-3.0.0/lib/rainbow.rb
ory-client-0.0.1.alpha24 vendor/bundle/ruby/2.5.0/gems/rainbow-3.0.0/lib/rainbow.rb
primary_connect_proto-0.0.4 vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/lib/rainbow.rb
primary_connect_proto-0.0.3 vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/lib/rainbow.rb
ory-client-0.0.1.alpha23 vendor/bundle/ruby/2.5.0/gems/rainbow-3.0.0/lib/rainbow.rb
plaid-14.7.0 vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/lib/rainbow.rb
ory-kratos-client-0.8.0.alpha2 vendor/bundle/ruby/2.5.0/gems/rainbow-3.0.0/lib/rainbow.rb
ory-client-0.0.1.alpha21 vendor/bundle/ruby/2.5.0/gems/rainbow-3.0.0/lib/rainbow.rb
ory-keto-client-0.7.0.alpha1 vendor/bundle/ruby/2.5.0/gems/rainbow-3.0.0/lib/rainbow.rb
ory-keto-client-0.7.0.alpha0 vendor/bundle/ruby/2.5.0/gems/rainbow-3.0.0/lib/rainbow.rb
ory-kratos-client-0.7.6.alpha7 vendor/bundle/ruby/2.5.0/gems/rainbow-3.0.0/lib/rainbow.rb
ory-kratos-client-0.7.6.alpha6 vendor/bundle/ruby/2.5.0/gems/rainbow-3.0.0/lib/rainbow.rb
ory-kratos-client-0.7.6.alpha5 vendor/bundle/ruby/2.5.0/gems/rainbow-3.0.0/lib/rainbow.rb
ory-kratos-client-0.7.6.alpha4 vendor/bundle/ruby/2.5.0/gems/rainbow-3.0.0/lib/rainbow.rb
ory-kratos-client-0.7.6.alpha3 vendor/bundle/ruby/2.5.0/gems/rainbow-3.0.0/lib/rainbow.rb
ory-kratos-client-0.7.6.alpha1 vendor/bundle/ruby/2.5.0/gems/rainbow-3.0.0/lib/rainbow.rb