Permalink
Browse files

Update README for gemifying

  • Loading branch information...
1 parent 703d200 commit 5200f36a377cbf59567a30e7d6a3653798f1fff9 @nahi committed May 14, 2011
Showing with 15 additions and 29 deletions.
  1. +11 −24 README
  2. +2 −3 lib/logger.rb
  3. +2 −2 test/test_logger.rb
View
35 README
@@ -1,37 +1,24 @@
-devel-logger -- Log dumping utility.
- version 1.2.6
+logger.rb - simple logging utility
+ version 1.2.8
-What is this?
- Logging utility.
-
-Getting started
- See "sample" directory.
-
-How to install
- Try;
- $ ruby install.rb
+Document
+ See RDoc in lib/logger.rb. To get RDoc in html format, exec 'rake doc'.
Changes
- 1.2.6 - 2005-09-13
- * added formatter accessor to logger for dictating the way in which the
- logger should format the messages it displays. Thanks to Nicholas Seckar
- (cf. [ruby-talk:153391]) and Daniel Berger.
- * added VERSION constant.
- * removed document for LogDevice. It is an implementation detail and is
- not a public interface.
+ 1.2.8 - 2011-05-14
+ * gemified
-For more details
- See <URL:http://dev.ctor.org/doc/devel-logger/>
+Development Repository
+ https://github.com/nahi/logger
-AUTHOR
+Author
NAKAMURA, Hiroshi a.k.a. NaHi
- nakahiro@sarion.co.jp
+ nahi@ruby-lang.org
Documentation: Gavin Sinclair
-LEGAL NOTICE
- Copyright (C) 2000, 2001, 2002, 2003, 2005 NAKAMURA, Hiroshi
+Legan notice
This program is copyrighted free software by NAKAMURA, Hiroshi. You can
redistribute it and/or modify it under the same terms of Ruby's license;
either the dual license version in 2003, or any later version.
View
@@ -189,9 +189,8 @@
class Logger
- VERSION = "1.2.7"
- /: (\S+) (\S+)/ =~ %q$Id$
- ProgName = "#{$1}/#{$2}"
+ VERSION = "1.2.8"
+ ProgName = "#{File.basename(__FILE__)}/#{VERSION}"
class Error < RuntimeError; end
class ShiftingError < Error; end # not used after 1.2.7. just for compat.
View
@@ -446,8 +446,8 @@ def test_shifting_age
filename1 = @filename + ".#{yyyymmdd}"
filename2 = @filename + ".#{yyyymmdd}.1"
filename3 = @filename + ".#{yyyymmdd}.2"
- logger = Logger.new(@filename, 'now')
begin
+ logger = Logger.new(@filename, 'now')
assert(File.exist?(@filename))
assert(!File.exist?(filename1))
assert(!File.exist?(filename2))
@@ -468,7 +468,7 @@ def test_shifting_age
assert(File.exist?(filename2))
assert(File.exist?(filename3))
ensure
- logger.close
+ logger.close if logger
[filename1, filename2, filename3].each do |filename|
File.unlink(filename) if File.exist?(filename)
end

0 comments on commit 5200f36

Please sign in to comment.