mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/logger.rb (Logger): should handle the case that cvs/svn do
not expand $Id keyword. [ruby-core:19991] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
db65ddb58c
commit
29927214d4
2 changed files with 12 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu Nov 20 07:33:15 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* lib/logger.rb (Logger): should handle the case that cvs/svn do
|
||||
not expand $Id keyword. [ruby-core:19991]
|
||||
|
||||
Thu Nov 20 07:27:36 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* lib/minitest/unit.rb (MiniTest::Assertions#capture_io): adjust
|
||||
|
|
|
@ -182,7 +182,13 @@ require 'monitor'
|
|||
class Logger
|
||||
VERSION = "1.2.6"
|
||||
id, name, rev = %w$Id$
|
||||
ProgName = "#{name.chomp(",v")}/#{rev}"
|
||||
if name
|
||||
name = name.chomp(",v")
|
||||
else
|
||||
name = File.basename(__FILE__)
|
||||
end
|
||||
rev ||= "v#{VERSION}"
|
||||
ProgName = "#{name}/#{rev}"
|
||||
|
||||
class Error < RuntimeError; end
|
||||
class ShiftingError < Error; end
|
||||
|
|
Loading…
Reference in a new issue