Sha256: d09edb826c832dac4a36db71caf320455c166a237a6a8f749487894718f24c00

Contents?: true

Size: 184 Bytes

Versions: 16

Compression:

Stored size: 184 Bytes

Contents

module Mocha
  module Debug
    OPTIONS = (ENV['MOCHA_OPTIONS'] || '').split(',').freeze

    def self.puts(message)
      warn(message) if OPTIONS.include?('debug')
    end
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
tailscale_middleware-0.0.3 vendor/cache/ruby/3.4.0/gems/mocha-2.7.1/lib/mocha/debug.rb
mocha-2.7.1 lib/mocha/debug.rb
mocha-2.7.0 lib/mocha/debug.rb
mocha-2.6.1 lib/mocha/debug.rb
mocha-2.6.0 lib/mocha/debug.rb
mocha-2.5.0 lib/mocha/debug.rb
mocha-2.4.5 lib/mocha/debug.rb
mocha-2.4.4 lib/mocha/debug.rb
mocha-2.4.3 lib/mocha/debug.rb
mocha-2.4.2 lib/mocha/debug.rb
mocha-2.4.1 lib/mocha/debug.rb
mocha-2.4.0 lib/mocha/debug.rb
mocha-2.2.0 lib/mocha/debug.rb
mocha-2.1.0 lib/mocha/debug.rb
mocha-2.0.4 lib/mocha/debug.rb
mocha-2.0.3 lib/mocha/debug.rb