From 1a8ea0fc0f893c4034815c770c033d38418c1a90 Mon Sep 17 00:00:00 2001 From: nahi Date: Mon, 30 May 2011 02:08:57 +0000 Subject: * lib/logger.rb (Logger::ProgName): do not depend on subversion keyword ($Id$). ProgName with revision number was written in the header line of each logfile for ease of tracking what version user is using in troubleshooting. Logger is already stable enough. I commit this on confirmation from Shyouhei. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@31806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 15 +++++++++++---- lib/logger.rb | 3 +-- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index ee593ebe8d..95aeda318e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Mon May 30 10:58:17 2011 Hiroshi Nakamura + + * lib/logger.rb (Logger::ProgName): do not depend on subversion + keyword ($Id$). ProgName with revision number was written in the + header line of each logfile for ease of tracking what version user + is using in troubleshooting. Logger is already stable enough. + Sat May 21 07:33:54 2011 Yusuke Endoh * ext/zlib/zlib.c (zstream_append_input2): add RB_GC_GUARD. @@ -147,7 +154,7 @@ Thu Dec 2 21:13:42 2010 URABE Shyouhei Wed Nov 24 18:24:26 2010 NAKAMURA Usaku - * ext/socket/extconf.rb: backrorted entirely from ruby_1_8, with small + * ext/socket/extconf.rb: backported entirely from ruby_1_8, with small modifications for the difference of mkmf.rb. Wed Nov 24 16:24:24 2010 Nobuyoshi Nakada @@ -158,8 +165,8 @@ Wed Nov 24 16:24:24 2010 Nobuyoshi Nakada Wed Nov 24 16:18:02 2010 URABE Shyouhei * win32/Makefile.sub ($(RCFILES)): no revision.h in this - branch, a patch from Luis Lavena . - [ruby-core:33310] + branch, a patch from Luis Lavena . + [ruby-core:33310] * cygwin/GNUmakefile.in ($(RCFILES)): ditto. @@ -227,7 +234,7 @@ Thu Oct 7 18:10:35 2010 Nobuyoshi Nakada Sun Oct 3 18:30:23 2010 Nobuyoshi Nakada * parse.y (rb_intern): should check symbol table overflow. - #3900 [ruby-dev:42330] + #3900 [ruby-dev:42330] Fri Oct 1 15:12:05 2010 NAKAMURA Usaku diff --git a/lib/logger.rb b/lib/logger.rb index 15d95fcb10..25553b2593 100644 --- a/lib/logger.rb +++ b/lib/logger.rb @@ -170,8 +170,7 @@ require 'monitor' class Logger VERSION = "1.2.6" - id, name, rev = %w$Id$ - ProgName = "#{name.chomp(",v")}/#{rev}" + ProgName = "#{File.basename(__FILE__)}/#{VERSION}" class Error < RuntimeError; end class ShiftingError < Error; end -- cgit v1.2.3