jcapote-atomlog 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION.yml +1 -1
  2. data/lib/parser.rb +1 -5
  3. metadata +2 -2
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 1
3
3
  :minor: 1
4
- :patch: 0
4
+ :patch: 1
data/lib/parser.rb CHANGED
@@ -1,9 +1,5 @@
1
1
  module AtomLog
2
2
 
3
- class LogFile < File
4
- include File::Tail
5
- end
6
-
7
3
 
8
4
  class Parser
9
5
 
@@ -29,7 +25,7 @@ module AtomLog
29
25
 
30
26
  def parse
31
27
  arr = []
32
- log = LogFile.new(@log)
28
+ log = File::Tail::Logfile.open(@log, :return_if_eof => true, :backward => @lines)
33
29
  log.tail(@lines) do |line|
34
30
  arr << AtomLog::Parser.parse_log_line(line)
35
31
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jcapote-atomlog
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - jcapote
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-02-26 00:00:00 -08:00
12
+ date: 2009-02-27 00:00:00 -08:00
13
13
  default_executable: log2atom
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency