1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/logger.rb (ProgName): fixed for svn, based on a patch from

Nobuhiro IMAI at [ruby-dev:37108].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-11-18 07:18:29 +00:00
parent 9d2ecf3d90
commit b7ac5b1262
3 changed files with 11 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Tue Nov 18 16:18:23 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/logger.rb (ProgName): fixed for svn, based on a patch from
Nobuhiro IMAI at [ruby-dev:37108].
Tue Nov 18 15:56:55 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
* lib/webrick/httprequest.rb (WEBrick::HTTPRequest#read_request_line):

View file

@ -181,8 +181,8 @@ require 'monitor'
class Logger
VERSION = "1.2.6"
/: (\S+),v (\S+)/ =~ %q$Id$
ProgName = "#{$1}/#{$2}"
id, name, rev = %w$Id$
ProgName = "#{name.chomp(",")}/#{rev}"
class Error < RuntimeError; end
class ShiftingError < Error; end

View file

@ -23,6 +23,10 @@ class TestLogger < Test::Unit::TestCase
@logger = Logger.new(nil)
end
def test_const_progname
assert %r!\Alogger\.rb/\S+\z! === Logger::ProgName
end
class Log
attr_reader :label, :datetime, :pid, :severity, :progname, :msg
def initialize(line)