rails_log_parser 0.0.16 → 0.0.18
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/Gemfile.lock +5 -3
- data/README.md +9 -0
- data/lib/rails_log_parser/action.rb +3 -1
- data/rails_log_parser.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5762fdc6e14d8e2ece8f4113a0e3a3b74ebd5351a01fc4909ccf5a2b95d4a874
|
4
|
+
data.tar.gz: e61cb8556387e0f455bbcda0a300707d9f61f33860d4c0d76242471cf0111725
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe8181edb500611c4fcac1bfaf01bc80327b3b02f3cce562d562ab6fcb872c558ef3779de4f3bab23944b1198ef24addf2ce8ed098cadb69e64c8584ce269c22
|
7
|
+
data.tar.gz: 55cfc7758980565af31459a582faab01f5b51b7f4608d1719e76d24abd9d1706c87a181915a9ba43c1f1bd01fe3dc76f6f6fb2992c6f4151b0723b07ea44d4db
|
data/Gemfile.lock
CHANGED
@@ -71,11 +71,13 @@ GEM
|
|
71
71
|
marcel (1.0.1)
|
72
72
|
method_source (1.0.0)
|
73
73
|
mini_mime (1.1.0)
|
74
|
-
mini_portile2 (2.
|
74
|
+
mini_portile2 (2.8.5)
|
75
75
|
minitest (5.18.0)
|
76
76
|
nio4r (2.5.7)
|
77
|
-
nokogiri (1.
|
78
|
-
mini_portile2 (~> 2.
|
77
|
+
nokogiri (1.16.0)
|
78
|
+
mini_portile2 (~> 2.8.2)
|
79
|
+
racc (~> 1.4)
|
80
|
+
racc (1.7.3)
|
79
81
|
rack (2.2.3)
|
80
82
|
rack-test (1.1.0)
|
81
83
|
rack (>= 1.0, < 3)
|
data/README.md
CHANGED
@@ -60,6 +60,15 @@ end
|
|
60
60
|
|
61
61
|
## Changelog
|
62
62
|
|
63
|
+
### 0.0.18
|
64
|
+
|
65
|
+
* Known exceptions given with maximum severity
|
66
|
+
|
67
|
+
### 0.0.17
|
68
|
+
|
69
|
+
* Adding `ActionDispatch::Http::MimeNegotiation::InvalidType` as known exceptions
|
70
|
+
* Update dependencies
|
71
|
+
|
63
72
|
### 0.0.16
|
64
73
|
|
65
74
|
* Remove heuristic
|
@@ -12,6 +12,7 @@ class RailsLogParser::Action
|
|
12
12
|
'ActionController::UnfilteredParameters' => :fatal,
|
13
13
|
'ActionController::UnknownFormat' => :fatal,
|
14
14
|
'ActiveRecord::RecordNotFound' => :fatal,
|
15
|
+
'ActionDispatch::Http::MimeNegotiation::InvalidType' => :fatal,
|
15
16
|
}.freeze
|
16
17
|
|
17
18
|
extend Enumerize
|
@@ -35,8 +36,9 @@ class RailsLogParser::Action
|
|
35
36
|
end
|
36
37
|
|
37
38
|
def known_exception?(key = nil)
|
39
|
+
severity_index = SEVERITIES.index(severity.to_sym)
|
38
40
|
@messages.any? do |message|
|
39
|
-
KNOWN_EXCEPTIONS.any? { |e, s| message.include?(e) &&
|
41
|
+
KNOWN_EXCEPTIONS.any? { |e, s| message.include?(e) && severity_index <= SEVERITIES.index(s) && (key.nil? || key == e) }
|
40
42
|
end
|
41
43
|
end
|
42
44
|
|
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.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Georg Limbach
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: enumerize
|
@@ -110,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
110
|
- !ruby/object:Gem::Version
|
111
111
|
version: '0'
|
112
112
|
requirements: []
|
113
|
-
rubygems_version: 3.
|
113
|
+
rubygems_version: 3.3.26
|
114
114
|
signing_key:
|
115
115
|
specification_version: 4
|
116
116
|
summary: Simple and fast analysing of default rails logs
|