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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 234abf7d078d9cc9f0638a0e161850adea23cb0e
4
- data.tar.gz: 480cfb8ca189dc6abb07a529f41b361e8548d08e
3
+ metadata.gz: a6ba90f20585c35437c0e1db57b40e8265f9081e
4
+ data.tar.gz: 6cedb15fe955f8ab4ac54b818972dbae9c337e91
5
5
  SHA512:
6
- metadata.gz: bddbb96b52a46334907e36a170a2e70ccad3c2860e35d8be03c1064cd21e3c050ca4a5ce9bf4c0e3299c8033462faa02b4443d33dbf8a8c65d68747bb27fd2d6
7
- data.tar.gz: a042e2502d53ee48fecd595053fea7223a54648e57329f9d82a1b1a0f90eb438ddca39791353e38ecd69fa6c049383e165b1b6acfd8a5a84215bf3a3519d5489
6
+ metadata.gz: f8732290c3626e87b0789a9617fad0852db63ecca0e07fb649f4833f84bfc535d4315920412dfd34291318d142671b4843eb072dac5cc85eed8f7af190213291
7
+ data.tar.gz: 8833accdadeec469c1c399e3bb87ab11908bc5ef1c904d9ab476e9f42fa9ebcb45f29af78628310ba87e2df4a4dce81131d3b255c3e6a55619f06052c5ed559e
@@ -1,5 +1,11 @@
1
1
  module LogParser
2
- class LineItem < Struct.new(:timestamp, :type, :prefix, :message)
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
@@ -1,3 +1,3 @@
1
1
  module LogParser
2
- VERSION = '2.0.2'.freeze
2
+ VERSION = '2.0.3'.freeze
3
3
  end
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.2
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-04-17 00:00:00.000000000 Z
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: {}