ruby-changes:10719
From: shyouhei <ko1@a...>
Date: Fri, 13 Feb 2009 19:18:21 +0900 (JST)
Subject: [ruby-changes:10719] Ruby:r22283 (ruby_1_8_6): merge revision(s) 20245,20247:
shyouhei 2009-02-13 19:18:12 +0900 (Fri, 13 Feb 2009) New Revision: 22283 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=22283 Log: merge revision(s) 20245,20247: * lib/logger.rb (ProgName): fixed for svn, based on a patch from Nobuhiro IMAI at [ruby-dev:37108]. Modified files: branches/ruby_1_8_6/ChangeLog branches/ruby_1_8_6/lib/logger.rb branches/ruby_1_8_6/test/logger/test_logger.rb branches/ruby_1_8_6/version.h Index: ruby_1_8_6/ChangeLog =================================================================== --- ruby_1_8_6/ChangeLog (revision 22282) +++ ruby_1_8_6/ChangeLog (revision 22283) @@ -1,3 +1,8 @@ +Fri Feb 13 19:17:29 2009 Nobuyoshi Nakada <nobu@r...> + + * lib/logger.rb (ProgName): fixed for svn, based on a patch from + Nobuhiro IMAI at [ruby-dev:37108]. + Fri Feb 13 19:04:06 2009 Keiju Ishitsuka <keiju@r...> * shell/command-processor.rb: undefined method `top_level_test' in Index: ruby_1_8_6/version.h =================================================================== --- ruby_1_8_6/version.h (revision 22282) +++ ruby_1_8_6/version.h (revision 22283) @@ -2,7 +2,7 @@ #define RUBY_RELEASE_DATE "2009-02-13" #define RUBY_VERSION_CODE 186 #define RUBY_RELEASE_CODE 20090213 -#define RUBY_PATCHLEVEL 329 +#define RUBY_PATCHLEVEL 330 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 8 Index: ruby_1_8_6/lib/logger.rb =================================================================== --- ruby_1_8_6/lib/logger.rb (revision 22282) +++ ruby_1_8_6/lib/logger.rb (revision 22283) @@ -170,8 +170,8 @@ class Logger VERSION = "1.2.6" - /: (\S+),v (\S+)/ =~ %q$Id$ - ProgName = "#{$1}/#{$2}" + id, name, rev = %w$Id$ + ProgName = "#{name.chomp(",v")}/#{rev}" class Error < RuntimeError; end class ShiftingError < Error; end Index: ruby_1_8_6/test/logger/test_logger.rb =================================================================== --- ruby_1_8_6/test/logger/test_logger.rb (revision 22282) +++ ruby_1_8_6/test/logger/test_logger.rb (revision 22283) @@ -23,6 +23,10 @@ @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) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/