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)
class Logger
VERSION = "1.2.6"
/: (\S+),v (\S+)/ =~ %q$Id$
/: (\S+) (\S+)/ =~ %q$Id$
ProgName = "#{$1}/#{$2}"
class Error < RuntimeError; end
test/logger/test_logger.rb (working copy)
@logger = Logger.new(nil)
end
def test_const_progname
assert %r!\Alogger\.rb/\d+\z! === Logger::ProgName
end
class Log
attr_reader :label, :datetime, :pid, :severity, :progname, :msg
def initialize(line)
    (1-1/1)