coaster 1.4.35 → 1.4.37
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/lib/coaster/core_ext/standard_error.rb +5 -4
- data/lib/coaster/version.rb +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: bba62b6d537a978d276cce15b24fbadc212264a4f76c2b79957c2db624c82123
|
|
4
|
+
data.tar.gz: 11824cc9943176d3cc97cee10976ffe753a532dc72235bd69dacf86af6a9d1fc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c36188aa4545dc5e96d1d30ff2feb8b8324c458ec620dd3de54380eee427d9d2914d07f2b1d03d892790d76f2531f340f237c84765f152a3f95a5a7e5f8503d5
|
|
7
|
+
data.tar.gz: 2de119abb062d89d8a5ce7998f19c83c1cae7059f8ae6fc14959e55832662dd8d060fb6591a662cc70ae16729ed26d9b9424a282fa5e583dc59153d1c4320158
|
|
@@ -63,8 +63,8 @@ class StandardError
|
|
|
63
63
|
end
|
|
64
64
|
end
|
|
65
65
|
|
|
66
|
-
attr_accessor :
|
|
67
|
-
attr_writer :fingerprint
|
|
66
|
+
attr_accessor :level, :tkey
|
|
67
|
+
attr_writer :tags, :fingerprint
|
|
68
68
|
|
|
69
69
|
def initialize(message = nil, cause = $!)
|
|
70
70
|
@fingerprint = []
|
|
@@ -128,7 +128,7 @@ class StandardError
|
|
|
128
128
|
|
|
129
129
|
# @return [Array] fingerprint
|
|
130
130
|
def fingerprint
|
|
131
|
-
if @fingerprint
|
|
131
|
+
if @fingerprint&.instance_variable_get(:@__processed__)
|
|
132
132
|
@fingerprint
|
|
133
133
|
else
|
|
134
134
|
@fingerprint = ((@fingerprint || []) + Coaster.default_fingerprint).flatten.compact.map do |fp|
|
|
@@ -140,7 +140,7 @@ class StandardError
|
|
|
140
140
|
end
|
|
141
141
|
rescue => e
|
|
142
142
|
@fingerprint_exception = {msg: e.message, bt: e.backtrace ? e.backtrace[0..5] : nil}
|
|
143
|
-
if fp.is_a?(Proc)
|
|
143
|
+
if fp.is_a?(Proc) && fp.source_location
|
|
144
144
|
f = fp.source_location[0].split('/').last(3).join('/')
|
|
145
145
|
"#{f}:#{fp.source_location[1]}"
|
|
146
146
|
else
|
|
@@ -153,6 +153,7 @@ class StandardError
|
|
|
153
153
|
end
|
|
154
154
|
alias_method :rails_tag, :fingerprint
|
|
155
155
|
|
|
156
|
+
def tags = @tags ||= {}
|
|
156
157
|
def safe_message; message || '' end
|
|
157
158
|
def digest_message; @digest_message ||= self.class.digest_message(message) end
|
|
158
159
|
def digest_backtrace; @digest_backtrace ||= backtrace ? Digest::MD5.hexdigest(cleaned_backtrace.join("\n"))[0...8] : nil end
|
data/lib/coaster/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: coaster
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.4.
|
|
4
|
+
version: 1.4.37
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- buzz jung
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2025-11-
|
|
10
|
+
date: 2025-11-20 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: oj
|