Sha256: 6340dc2f4ecd0c8640120b5fcd66dabf02f4327c0dee6d874351da8cfceb3d08

Contents?: true

Size: 373 Bytes

Versions: 33

Compression:

Stored size: 373 Bytes

Contents

module Mocha

  class Deprecation

    class << self

      attr_accessor :mode, :messages

      def warning(message)
        @messages << message
        $stderr.puts "Mocha deprecation warning: #{message}" unless mode == :disabled
        $stderr.puts caller.join("\n  ") if mode == :debug
      end

    end

    self.mode = :enabled
    self.messages = []

  end

end

Version data entries

33 entries across 28 versions & 3 rubygems

Version Path
mocha-0.12.10 lib/mocha/deprecation.rb
mocha-0.12.9 lib/mocha/deprecation.rb
mocha-0.12.8 lib/mocha/deprecation.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.0.pre/vendor/bundle/gems/mocha-0.12.2/lib/mocha/deprecation.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.3/vendor/bundle/gems/mocha-0.12.3/lib/mocha/deprecation.rb
challah-rolls-0.2.0 vendor/bundle/gems/mocha-0.12.3/lib/mocha/deprecation.rb
challah-rolls-0.2.0 vendor/bundle/gems/mocha-0.12.2/lib/mocha/deprecation.rb
challah-0.8.3 vendor/bundle/gems/mocha-0.12.3/lib/mocha/deprecation.rb
mocha-0.12.7 lib/mocha/deprecation.rb
mocha-0.12.6 lib/mocha/deprecation.rb
mocha-0.12.5 lib/mocha/deprecation.rb
challah-0.8.1 vendor/bundle/gems/mocha-0.12.3/lib/mocha/deprecation.rb
mocha-0.12.4 lib/mocha/deprecation.rb
challah-rolls-0.1.0 vendor/bundle/gems/challah-0.8.0.pre/vendor/bundle/gems/mocha-0.12.2/lib/mocha/deprecation.rb
challah-rolls-0.1.0 vendor/bundle/gems/mocha-0.12.3/lib/mocha/deprecation.rb
challah-rolls-0.1.0 vendor/bundle/gems/mocha-0.12.2/lib/mocha/deprecation.rb
challah-0.8.0.pre vendor/bundle/gems/mocha-0.12.2/lib/mocha/deprecation.rb
challah-0.7.1 vendor/bundle/gems/mocha-0.12.2/lib/mocha/deprecation.rb
challah-0.7.0 vendor/bundle/gems/mocha-0.12.2/lib/mocha/deprecation.rb
challah-0.7.0.pre2 vendor/bundle/gems/mocha-0.12.2/lib/mocha/deprecation.rb