rails_log_parser 0.0.20 → 0.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/lib/rails_log_parser/not_parseable_lines.rb +7 -1
- data/rails_log_parser.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6570aad9bd2c13fe7c8e86ad2ddece7a64319043122e195b2ce57fb89916cb44
|
|
4
|
+
data.tar.gz: 0e70389c743ca8f08bcd581726e3b48741ebe690b320b63d5bcdd0ef31955af2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 422df67cbf2cf72dbe7a84a1fe7bf865a9895010ef220c19f2c9c6209ca3b1d4b450ef3c52f38ad8facc4f5b5b89c89a08bcace3ad12701a0e8daf695b5cac2a
|
|
7
|
+
data.tar.gz: c5d900bd03d0c6786972ba3ef4b1b399bb47fe015b5697e31d3e270a9ec942f89b6ce07809c4df92fbdc4e96cde842d973a53426c5de74f46663d7be99cb1f16
|
data/README.md
CHANGED
|
@@ -12,7 +12,7 @@ class RailsLogParser::NotParseableLines
|
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
def push(line)
|
|
15
|
-
@lines.push(line) unless
|
|
15
|
+
@lines.push(line) unless ignore?(line)
|
|
16
16
|
end
|
|
17
17
|
|
|
18
18
|
def save
|
|
@@ -31,6 +31,12 @@ class RailsLogParser::NotParseableLines
|
|
|
31
31
|
@stats[Date.today.to_s] || []
|
|
32
32
|
end
|
|
33
33
|
|
|
34
|
+
def ignore?(line)
|
|
35
|
+
return true if today_lines.include?(line)
|
|
36
|
+
|
|
37
|
+
RailsLogParser.ignore_lines.any? {|ignore| line.match?(ignore) }
|
|
38
|
+
end
|
|
39
|
+
|
|
34
40
|
def load_file
|
|
35
41
|
@stats = JSON.parse(File.read(@path))
|
|
36
42
|
@stats ||= {}
|
data/rails_log_parser.gemspec
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rails_log_parser
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.21
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Georg Limbach
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-06-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: enumerize
|