Project

General

Profile

Bug #759 ยป fix-logger-progname.patch

no6v (Nobuhiro IMAI), 11/18/2008 11:18 AM

View differences:

lib/logger.rb (working copy)
181 181

  
182 182
class Logger
183 183
  VERSION = "1.2.6"
184
  /: (\S+),v (\S+)/ =~ %q$Id$
184
  /: (\S+) (\S+)/ =~ %q$Id$
185 185
  ProgName = "#{$1}/#{$2}"
186 186

  
187 187
  class Error < RuntimeError; end
test/logger/test_logger.rb (working copy)
23 23
    @logger = Logger.new(nil)
24 24
  end
25 25

  
26
  def test_const_progname
27
    assert %r!\Alogger\.rb/\d+\z! === Logger::ProgName
28
  end
29

  
26 30
  class Log
27 31
    attr_reader :label, :datetime, :pid, :severity, :progname, :msg
28 32
    def initialize(line)