coaster 1.4.36 → 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 +4 -3
- data/lib/coaster/version.rb +1 -1
- metadata +1 -1
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|
|
|
@@ -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