log_parser 1.2.0 → 1.2.1

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: 4e6ed6152d28bdb338838f6078a5ed7105c5b1ba
4
- data.tar.gz: f78aae5d1523cab74c71f32f93613969c85d7a3f
3
+ metadata.gz: 700f207342cb18c6c91bc2d665a7090768a3755b
4
+ data.tar.gz: 789d488c8fd51697e4dcd90b6d22c7ca7d208bed
5
5
  SHA512:
6
- metadata.gz: a86dd4b98c7a3fb9657e337b1c4cd0a73dc1a3a4f2950a8ff4fad7b6c7b176d00e39a0cec600d9330327a7dd263e06bfdd63173e831d652fbf6fa1cd9556ae05
7
- data.tar.gz: d5494314a5c36b526f970f01d27369f8fc738c6738d42cec1b369f13b7a378447a384e2ac343df98626320a9e60f1b6dd54ec3a39db4da63365c56d05859315a
6
+ metadata.gz: c01c03fbd15981e2e390adf72dc96a3e54f8a45eb204776c8fe67bf3c5caa8e3a81ac974cb74cdcf2e5534a8015bdfd4b9aaf30e2a5792afc4c632d01e81501f
7
+ data.tar.gz: fe4222b708c1c28331283a6bb931f4e76034698423521eee85046cef553612953cb7ffc35bf14373a394bdd002d52de0ee456ad283d5e0bb0d86839ce5307b53
@@ -139,7 +139,7 @@ module LogParser
139
139
  def chain
140
140
  items = []
141
141
  yield items
142
- self.class.new(file, line_items: items)
142
+ self.class.new(file, line_items: items, line_pattern: line_pattern)
143
143
  end
144
144
 
145
145
  def lines
@@ -8,6 +8,8 @@ module LogParser
8
8
  s
9
9
  end
10
10
 
11
+ alias inspect to_s
12
+
11
13
  def full_message
12
14
  prefix ? "[#{prefix}] #{message}" : message
13
15
  end
@@ -1,3 +1,3 @@
1
1
  module LogParser
2
- VERSION = '1.2.0'.freeze
2
+ VERSION = '1.2.1'.freeze
3
3
  end
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: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Buckley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-19 00:00:00.000000000 Z
11
+ date: 2014-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler