multilog-collector 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
@@ -22,6 +22,7 @@ module Djb
22
22
  all.sort! do |a,b|
23
23
  a.time <=> b.time
24
24
  end
25
+ # all[all.length - @lines..-1]
25
26
  all[-@lines..-1]
26
27
  end
27
28
  end
@@ -9,11 +9,8 @@ module Djb
9
9
  def load(file,lines = nil)
10
10
  @file = file
11
11
  open(file) do |f|
12
- n = 0
13
12
  while line = f.gets
14
- n += 1
15
13
  self << Log.new(line,service)
16
- break if lines and n >= lines
17
14
  end
18
15
  end
19
16
  self
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{multilog-collector}
8
- s.version = "0.3.0"
8
+ s.version = "0.3.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Yoshihiro TAKAHARA"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multilog-collector
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 0
10
- version: 0.3.0
9
+ - 1
10
+ version: 0.3.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Yoshihiro TAKAHARA