Sha256: a82e1c84f8c927b8e66a478d8de7e52fea3ea06782a99634002f304a1f835a68

Contents?: true

Size: 298 Bytes

Versions: 6802

Compression:

Stored size: 298 Bytes

Contents

# frozen_string_literal: true

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

6,802 entries across 6,802 versions & 35 rubygems

Version Path
cybrid_api_bank_ruby-0.123.149 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow.rb
cybrid_api_id_ruby-0.123.149 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow.rb
cybrid_api_organization_ruby-0.123.149 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow.rb
cybrid_api_bank_ruby-0.123.148 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow.rb
cybrid_api_id_ruby-0.123.148 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow.rb
cybrid_api_organization_ruby-0.123.148 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow.rb
cybrid_api_bank_ruby-0.123.147 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow.rb
cybrid_api_organization_ruby-0.123.147 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow.rb
cybrid_api_id_ruby-0.123.147 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow.rb
ory-client-1.16.2 vendor/bundle/ruby/3.1.0/gems/rainbow-3.1.1/lib/rainbow.rb
avalara_sdk-24.12.2 vendor/bundle/ruby/2.7.0/gems/rainbow-3.1.1/lib/rainbow.rb
cybrid_api_bank_ruby-0.123.145 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow.rb
cybrid_api_organization_ruby-0.123.145 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow.rb
cybrid_api_id_ruby-0.123.145 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow.rb
cybrid_api_bank_ruby-0.123.144 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow.rb
cybrid_api_id_ruby-0.123.144 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow.rb
cybrid_api_organization_ruby-0.123.144 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow.rb
ory-client-1.16.1 vendor/bundle/ruby/3.1.0/gems/rainbow-3.1.1/lib/rainbow.rb
ory-client-1.16.0 vendor/bundle/ruby/3.1.0/gems/rainbow-3.1.1/lib/rainbow.rb
cybrid_api_bank_ruby-0.123.143 vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/lib/rainbow.rb