log_parser 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/log_parser/line_item.rb +7 -1
- data/lib/log_parser/version.rb +1 -1
- data/log_parser.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6ba90f20585c35437c0e1db57b40e8265f9081e
|
4
|
+
data.tar.gz: 6cedb15fe955f8ab4ac54b818972dbae9c337e91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8732290c3626e87b0789a9617fad0852db63ecca0e07fb649f4833f84bfc535d4315920412dfd34291318d142671b4843eb072dac5cc85eed8f7af190213291
|
7
|
+
data.tar.gz: 8833accdadeec469c1c399e3bb87ab11908bc5ef1c904d9ab476e9f42fa9ebcb45f29af78628310ba87e2df4a4dce81131d3b255c3e6a55619f06052c5ed559e
|
data/lib/log_parser/line_item.rb
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
module LogParser
|
2
|
-
class LineItem <
|
2
|
+
class LineItem < BasicObject
|
3
|
+
attr_reader :timestamp, :type, :prefix, :message
|
4
|
+
|
5
|
+
def initialize(timestamp, type, prefix, message)
|
6
|
+
@timestamp, @type, @prefix, @message = timestamp, type, prefix, message
|
7
|
+
end
|
8
|
+
|
3
9
|
def to_s
|
4
10
|
s = "[#{timestamp}] "
|
5
11
|
s << "#{type}: " if type
|
data/lib/log_parser/version.rb
CHANGED
data/log_parser.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["arebuckley@gmail.com"]
|
11
11
|
spec.summary = %q{Easily search log files}
|
12
12
|
spec.description = %q{Scan through logs with some filter methods}
|
13
|
-
spec.homepage = 'https://github.com/ridiculous'
|
13
|
+
spec.homepage = 'https://github.com/ridiculous/log_parser'
|
14
14
|
spec.license = 'MIT'
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: log_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Buckley
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -59,7 +59,7 @@ files:
|
|
59
59
|
- test/fixtures/example.log
|
60
60
|
- test/log_parser/client_test.rb
|
61
61
|
- test/log_parser/line_item_test.rb
|
62
|
-
homepage: https://github.com/ridiculous
|
62
|
+
homepage: https://github.com/ridiculous/log_parser
|
63
63
|
licenses:
|
64
64
|
- MIT
|
65
65
|
metadata: {}
|