rails_log_parser 0.0.17 → 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: 96ae5461bc6323f83c7ed166c728e1c0d161b9a0a3fe921d723b7f13bac11db9
4
- data.tar.gz: 6b9d0276cdef26834994ea8001d1942fd025d14ed6c59f2bab25cbbcfcd13d22
3
+ metadata.gz: 5762fdc6e14d8e2ece8f4113a0e3a3b74ebd5351a01fc4909ccf5a2b95d4a874
4
+ data.tar.gz: e61cb8556387e0f455bbcda0a300707d9f61f33860d4c0d76242471cf0111725
5
5
  SHA512:
6
- metadata.gz: 92d7e4cc9808c00d9d3a2ad13c0885c1b540d589cccf4188f77d9ada5b042d092f125898eb32d6dd13c57ff460c2f391b1cd7bbb9661d99b2e17ad58db7261f0
7
- data.tar.gz: '08257c0b4050e94b2ccff09d55dc391444da9c92c1d090e9e6459b23a683f686c7bf2d942f7a7b62987f67b2767e3501ab1c36abddbadbb54cb29c0a35670417'
6
+ metadata.gz: fe8181edb500611c4fcac1bfaf01bc80327b3b02f3cce562d562ab6fcb872c558ef3779de4f3bab23944b1198ef24addf2ce8ed098cadb69e64c8584ce269c22
7
+ data.tar.gz: 55cfc7758980565af31459a582faab01f5b51b7f4608d1719e76d24abd9d1706c87a181915a9ba43c1f1bd01fe3dc76f6f6fb2992c6f4151b0723b07ea44d4db
data/README.md CHANGED
@@ -60,6 +60,10 @@ end
60
60
 
61
61
  ## Changelog
62
62
 
63
+ ### 0.0.18
64
+
65
+ * Known exceptions given with maximum severity
66
+
63
67
  ### 0.0.17
64
68
 
65
69
  * Adding `ActionDispatch::Http::MimeNegotiation::InvalidType` as known exceptions
@@ -36,8 +36,9 @@ class RailsLogParser::Action
36
36
  end
37
37
 
38
38
  def known_exception?(key = nil)
39
+ severity_index = SEVERITIES.index(severity.to_sym)
39
40
  @messages.any? do |message|
40
- 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) }
41
42
  end
42
43
  end
43
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.17'
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.17
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: 2024-01-11 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