Sha256: b4aba5851551dc7cd3e8da48fbdd0b9e92d5cd8fafb773213c8d072e665dbc70

Contents?: true

Size: 246 Bytes

Versions: 28

Compression:

Stored size: 246 Bytes

Contents

module Mocha
  module Debug
    OPTIONS = (ENV['MOCHA_OPTIONS'] || '').split(',').inject({}) do |hash, key|
      hash[key] = true; hash
    end.freeze

    def self.puts(message)
      $stderr.puts(message) if OPTIONS['debug']
    end
  end
end

Version data entries

28 entries across 24 versions & 5 rubygems

Version Path
mocha-1.6.0 lib/mocha/debug.rb
mocha-1.5.0 lib/mocha/debug.rb
mocha-1.4.0 lib/mocha/debug.rb
mocha-1.3.0 lib/mocha/debug.rb
mocha-1.2.1 lib/mocha/debug.rb
mocha-1.2.0 lib/mocha/debug.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/mocha-1.0.0/lib/mocha/debug.rb
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/mocha-1.0.0/lib/mocha/debug.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.9.1/gems/mocha-1.0.0/lib/mocha/debug.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/2.1.0/gems/mocha-1.0.0/lib/mocha/debug.rb
mocha-1.1.0 lib/mocha/debug.rb
mocha-1.0.0 lib/mocha/debug.rb
mocha-1.0.0.alpha lib/mocha/debug.rb
tnargav-1.3.3 vendor/bundle/ruby/1.9.1/gems/mocha-0.14.0/lib/mocha/debug.rb
challah-1.0.0 vendor/bundle/gems/mocha-0.14.0/lib/mocha/debug.rb
tnargav-1.2.3 vendor/bundle/ruby/1.9.1/gems/mocha-0.14.0/lib/mocha/debug.rb
mocha-0.14.0 lib/mocha/debug.rb
challah-1.0.0.beta3 vendor/bundle/gems/mocha-0.13.3/lib/mocha/debug.rb
mocha-0.14.0.alpha lib/mocha/debug.rb
challah-1.0.0.beta2 vendor/bundle/gems/mocha-0.13.3/lib/mocha/debug.rb