~ubuntu-branches/ubuntu/oneiric/puppet/oneiric-security

« back to all changes in this revision

Viewing changes to vendor/gems/mocha-0.5.6/lib/mocha/deprecation.rb

  • Committer: Bazaar Package Importer
  • Author(s): Micah Anderson
  • Date: 2008-07-26 15:43:45 UTC
  • mfrom: (1.1.8 upstream) (3.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080726154345-c03m49twzxewdwjn
Tags: 0.24.5-2
* Fix puppetlast to work with 0.24.5
* Adjust logcheck to match against new log messages in 0.24.5
* Update standards version to 3.8.0 (no changes)
* Update changelog to reduce length of line to make lintian happy

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
module Mocha
 
2
  
 
3
  class Deprecation
 
4
    
 
5
    class << self
 
6
      
 
7
      attr_accessor :mode, :messages
 
8
      
 
9
      def warning(message)
 
10
        @messages << message
 
11
        $stderr.puts "Mocha deprecation warning: #{message}" unless mode == :disabled
 
12
        $stderr.puts caller.join("\n  ") if mode == :debug
 
13
      end
 
14
 
 
15
    end
 
16
  
 
17
    self.mode = :enabled
 
18
    self.messages = []
 
19
    
 
20
  end
 
21
   
 
22
end
 
 
b'\\ No newline at end of file'