coaster 1.4.22 → 1.4.24
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 269bcfae6dd11f88ea717ebf5f38d4c42a7e7a31896371cafcf1090ce4c10ff0
|
4
|
+
data.tar.gz: bcc7603083c071200384ec1ba11958346db2d2f1f09bcb3f07d76df0f1f3ccf9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2c0d7673e38ed7bb71916b15c23a007b985ee39b5148bf43c9cf2a2d01efc78a3897f5f580a387178e07100d9ab04390663fb218b3c0094a9972414ea62d426
|
7
|
+
data.tar.gz: bcd4b79a236760511c51e888a81dd990315dbf1139acf1480ab7b0ba6ddd6016e95436f08b3b06d81fd7025024b85aa27ef19487d33850ce9c539881f8ac0eba
|
@@ -63,7 +63,8 @@ class StandardError
|
|
63
63
|
end
|
64
64
|
end
|
65
65
|
|
66
|
-
attr_accessor :tags, :level, :tkey
|
66
|
+
attr_accessor :tags, :level, :tkey
|
67
|
+
attr_writer :fingerprint
|
67
68
|
|
68
69
|
def initialize(message = nil, cause = $!)
|
69
70
|
@fingerprint = Coaster.default_fingerprint.dup
|
@@ -122,11 +123,12 @@ class StandardError
|
|
122
123
|
@digest_message = self.class.digest_message(msg)
|
123
124
|
set_backtrace(message.backtrace) if message.is_a?(Exception)
|
124
125
|
@fingerprint << @digest_message
|
125
|
-
@fingerprint << digest_backtrace
|
126
126
|
@fingerprint.compact!
|
127
127
|
self
|
128
128
|
end
|
129
129
|
|
130
|
+
# @return [Array, NilClass] fingerprint
|
131
|
+
def fingerprint; @fingerprint.is_a?(Array) && @fingerprint + [digest_backtrace] end
|
130
132
|
def safe_message; message || '' end
|
131
133
|
def digest_message; @digest_message ||= self.class.digest_message(message) end
|
132
134
|
def digest_backtrace; @digest_backtrace ||= backtrace ? Digest::MD5.hexdigest(cleaned_backtrace.join("\n"))[0...8] : nil end
|
data/lib/coaster/version.rb
CHANGED
data/test/test_backtrace.rb
CHANGED
@@ -134,6 +134,16 @@ module Coaster
|
|
134
134
|
activesupport (6.1.4.4) lib/active_support/callbacks.rb:512:in `block in invoke_before'
|
135
135
|
activesupport (6.1.4.4) lib/active_support/callbacks.rb:512:in `each'
|
136
136
|
activesupport (6.1.4.4) lib/active_support/callbacks.rb:512:in `invoke_before'
|
137
|
+
activesupport (6.1.4.4) lib/active_support/callbacks.rb:115:in `block in run_callbacks'
|
138
|
+
vanity (ce67b2c66864) lib/vanity/frameworks/rails.rb:141:in `vanity_context_filter'
|
139
|
+
activesupport (6.1.4.4) lib/active_support/callbacks.rb:126:in `block in run_callbacks'
|
140
|
+
actiontext (6.1.4.4) lib/action_text/rendering.rb:20:in `with_renderer'
|
141
|
+
actiontext (6.1.4.4) lib/action_text/engine.rb:59:in `block (4 levels) in <class:Engine>'
|
142
|
+
activesupport (6.1.4.4) lib/active_support/callbacks.rb:126:in `instance_exec'
|
143
|
+
activesupport (6.1.4.4) lib/active_support/callbacks.rb:126:in `block in run_callbacks'
|
144
|
+
react-rails (2.6.1) lib/react/rails/controller_lifecycle.rb:31:in `use_react_component_helper'
|
145
|
+
activesupport (6.1.4.4) lib/active_support/callbacks.rb:126:in `block in run_callbacks'
|
146
|
+
activesupport (6.1.4.4) lib/active_support/callbacks.rb:137:in `run_callbacks'
|
137
147
|
BacktraceCleaner.minimum_first ... and next silenced backtraces
|
138
148
|
/home/circleci/project/spec/controllers/api/funfun_controller_spec.rb:77:in `block (5 levels) in <top (required)>'
|
139
149
|
/home/circleci/project/spec/controllers/api/funfun_controller_spec.rb:6:in `block (3 levels) in <top (required)>'
|
@@ -164,7 +174,7 @@ module Coaster
|
|
164
174
|
Gem.stub :default_path, [] do
|
165
175
|
cleaner = ActiveSupport::BacktraceCleaner.new
|
166
176
|
bt = cleaner.clean(@backtrace)
|
167
|
-
assert_equal bt, @expected_bt
|
177
|
+
assert_equal bt.join("\n"), @expected_bt.join("\n")
|
168
178
|
end
|
169
179
|
end
|
170
180
|
end
|
@@ -174,7 +184,7 @@ module Coaster
|
|
174
184
|
Gem.stub :default_path, [] do
|
175
185
|
cleaner = ActiveSupport::BacktraceCleaner.new
|
176
186
|
bt = cleaner.clean(@backtrace.lazy)
|
177
|
-
assert_equal bt, @expected_bt
|
187
|
+
assert_equal bt.join("\n"), @expected_bt.join("\n")
|
178
188
|
end
|
179
189
|
end
|
180
190
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.24
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- buzz jung
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oj
|
@@ -248,7 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
248
248
|
- !ruby/object:Gem::Version
|
249
249
|
version: '0'
|
250
250
|
requirements: []
|
251
|
-
rubygems_version: 3.
|
251
|
+
rubygems_version: 3.5.22
|
252
252
|
signing_key:
|
253
253
|
specification_version: 4
|
254
254
|
summary: A little convenient feature for standard library
|