auto_truncated_logger 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
- require File.expand_path('../lib/auto_truncated_logger/version', __FILE__)
2
+ require File.expand_path('../lib/auto_truncated_logger', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |gem|
5
5
  gem.authors = ["SHIBATA Hiroshi"]
@@ -1,14 +1,15 @@
1
- require "auto_truncated_logger/version"
2
1
  require 'fileutils'
3
2
  require 'logger'
4
3
 
5
4
  class AutoTruncatedLogger < Logger
5
+ VERSION = "0.0.2"
6
+
6
7
  def initialize(device, shift_size = 1048576)
7
8
  super(device, 1, shift_size)
8
9
  end
9
10
 
10
- def add(severity, message = nil, progname = nil, &block)
11
- super(severity, message, progname, &block)
11
+ def add(*args)
12
+ super(*args)
12
13
  truncate_old_file
13
14
  end
14
15
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auto_truncated_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-01 00:00:00.000000000 Z
12
+ date: 2012-03-02 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: logger of auto truncated old file.
15
15
  email:
@@ -25,7 +25,6 @@ files:
25
25
  - Rakefile
26
26
  - auto_truncated_logger.gemspec
27
27
  - lib/auto_truncated_logger.rb
28
- - lib/auto_truncated_logger/version.rb
29
28
  homepage: https://github.com/hsbt/auto_truncated_logger
30
29
  licenses: []
31
30
  post_install_message:
@@ -1,3 +0,0 @@
1
- module AutoTruncatedLogger
2
- VERSION = "0.0.1"
3
- end