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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fe25438fe1aa9e1fe506de50b0d337e26c387648f01aefa8fc558db5e1914bab
4
- data.tar.gz: 9ec5eb524baba92586f71dff16fdd31243b5b4a7e68d767a11fb01ec2f40bd3f
3
+ metadata.gz: 5762fdc6e14d8e2ece8f4113a0e3a3b74ebd5351a01fc4909ccf5a2b95d4a874
4
+ data.tar.gz: e61cb8556387e0f455bbcda0a300707d9f61f33860d4c0d76242471cf0111725
5
5
  SHA512:
6
- metadata.gz: 6cb369807f23be8de3ad39d3a616e000d374cd5bb7591b48394c12b38f61b5685fe464bb5712e35d20523089bbd0e69f8e090df7581985df1f30124ab5ba685b
7
- data.tar.gz: 5386f801caf9f7a259c5dbc6061793300c6d0347528511f4e0974fe1f64450fd90b92d900730d136f2ce92b8285f9e9c20cdefd9885884e355eae8c0b2ebfcce
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.4.0)
74
+ mini_portile2 (2.8.5)
75
75
  minitest (5.18.0)
76
76
  nio4r (2.5.7)
77
- nokogiri (1.10.10)
78
- mini_portile2 (~> 2.4.0)
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) && severity == s && (key.nil? || key == 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
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'rails_log_parser'
5
- spec.version = '0.0.16'
5
+ spec.version = '0.0.18'
6
6
  spec.authors = ['Georg Limbach']
7
7
  spec.email = ['georg.limbach@lichtbit.com']
8
8
 
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.16
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: 2023-06-16 00:00:00.000000000 Z
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.0.8
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