Sha256: 5d593e2e1720abc06542af2cab5f8473b07f96f2712d4dd3c6e32949f52dcd63

Contents?: true

Size: 628 Bytes

Versions: 28

Compression:

Stored size: 628 Bytes

Contents

# This code overwrites the methods from the colored gem
# via https://github.com/defunkt/colored/blob/master/lib/colored.rb

require 'colored'

class String
  Colored::COLORS.keys.each do |color|
    define_method(color) do
      self # do nothing with the string, but return it
    end
  end
  Colored::EXTRAS.keys.each do |extra|
    define_method(extra) do
      self # do nothing with the string, but return it
    end
  end
end

# If a plugin uses the colorize gem, we also want to disable that
begin
  require 'colorize'
  String.disable_colorization = true
rescue LoadError
  # Colorize gem is not used by any plugin
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
fastlane-2.189.0 fastlane_core/lib/fastlane_core/ui/disable_colors.rb
fastlane-2.188.0 fastlane_core/lib/fastlane_core/ui/disable_colors.rb
fastlane-2.187.0 fastlane_core/lib/fastlane_core/ui/disable_colors.rb
fastlane-2.186.0 fastlane_core/lib/fastlane_core/ui/disable_colors.rb
fastlane-2.185.1 fastlane_core/lib/fastlane_core/ui/disable_colors.rb
fastlane-2.185.0 fastlane_core/lib/fastlane_core/ui/disable_colors.rb
fastlane-2.184.1 fastlane_core/lib/fastlane_core/ui/disable_colors.rb
fastlane-2.184.0 fastlane_core/lib/fastlane_core/ui/disable_colors.rb
fastlane-2.183.2 fastlane_core/lib/fastlane_core/ui/disable_colors.rb
fastlane-2.183.1 fastlane_core/lib/fastlane_core/ui/disable_colors.rb
fastlane-2.183.0 fastlane_core/lib/fastlane_core/ui/disable_colors.rb
fastlane-2.182.0 fastlane_core/lib/fastlane_core/ui/disable_colors.rb
fastlane-2.181.0 fastlane_core/lib/fastlane_core/ui/disable_colors.rb
fastlane-2.180.1 fastlane_core/lib/fastlane_core/ui/disable_colors.rb
fastlane-2.180.0 fastlane_core/lib/fastlane_core/ui/disable_colors.rb
fastlane-2.179.0 fastlane_core/lib/fastlane_core/ui/disable_colors.rb
fastlane-2.178.0 fastlane_core/lib/fastlane_core/ui/disable_colors.rb
fastlane-2.177.0 fastlane_core/lib/fastlane_core/ui/disable_colors.rb
fastlane-2.176.0 fastlane_core/lib/fastlane_core/ui/disable_colors.rb
fastlane-2.175.0 fastlane_core/lib/fastlane_core/ui/disable_colors.rb