summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-11-22 14:52:06 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-11-22 14:52:06 +0000
commitadcdd86dbefe724f56521051ec7fd8a613e76bc1 (patch)
tree1dd7456bdd7c9118732b6cae422364ff9c5ba413 /lib
parenta2b753d473749ccde71c6c3161f5464985e532c3 (diff)
downloadruby-adcdd86dbefe724f56521051ec7fd8a613e76bc1.tar.gz
ruby-adcdd86dbefe724f56521051ec7fd8a613e76bc1.tar.xz
ruby-adcdd86dbefe724f56521051ec7fd8a613e76bc1.zip
merges r20290 from trunk into ruby_1_9_1
* lib/logger.rb (Logger): should handle the case that cvs/svn do not expand $Id keyword. [ruby-core:19991] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/logger.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/logger.rb b/lib/logger.rb
index 26d7d9d56..07699e701 100644
--- a/lib/logger.rb
+++ b/lib/logger.rb
@@ -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