coaster 1.4.34 → 1.4.36

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: c5bdf67ef7ca8a26fb81e31cd731ff5df6782dde4fe4ad61ce3a0d4188eba728
4
- data.tar.gz: a77b975d74ededc6caf7c74b26230c109907261b92f278bdecefa177d919685a
3
+ metadata.gz: 698d53cdaa984ae7dda26858cb2cf7464e4757b3e00756136bbb4e613d69d7e7
4
+ data.tar.gz: d7d9b1662a9bb755d9f178343cfa5ee5f9dc3a11152055115d099aee3cb67b3f
5
5
  SHA512:
6
- metadata.gz: 26d9b5ef51cfa562faadf9268daa80ffb2a0d84b68bc5ff6b84d49b63d4d4c9c42d331f4bc90cd294fc220758f1a41364c25e644d82577a45b8c66bae7af8a3a
7
- data.tar.gz: 0b441ed0b52264344fe15224e81117d7c8d55ce252b96e65fa7ce7a8be07b950eee1ec475189c1287a2bb9b7861f5417de7d81e21bbe65306822db1445f28a55
6
+ metadata.gz: 597a51ed48af620f231ac3e1ca018ed5b842ac525c435ad5dcb91c3a8a9671b09aeb92c5d1b36dac53452141610e335f64853d6f66e5857c153dc09fa50af645
7
+ data.tar.gz: 39f8148c9e79f6f3879f04f9586180ddfd1608b58dbc10682f97477e64c1510e39704fdc0313ed108ab122ece5d03b37e02a55bea5ce625ef9a439364fd37069
@@ -27,6 +27,7 @@ class StandardError
27
27
  nt[:tags][:digest_backtrace] = digest_backtrace if digest_backtrace.present?
28
28
  nt[:level] ||= self.level
29
29
  nt[:extra] = attributes.merge(nt[:extra])
30
+ nt[:extra][:ivars] = to_inspection_ivars rescue {}
30
31
  nt[:fingerprint] = sentry_fingerprint
31
32
  nt
32
33
  end
@@ -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) & fp.source_location
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
@@ -252,14 +252,8 @@ class StandardError
252
252
  attributes[:inspection_value_proc] || self.class.inspection_value_proc
253
253
  end
254
254
 
255
- def to_inspection_hash(options: {}, _h: {}.with_indifferent_access, _depth: 0)
256
- backtrace_key = options[:backtrace_key] || :backtrace
257
- _h.merge!(
258
- type: self.class.name, status: status,
259
- http_status: http_status, message: message,
260
- instance_variables: {}.with_indifferent_access
261
- )
262
- digest_backtrace # for @digest_backtrace
255
+ def to_inspection_ivars
256
+ _h = {instance_variables: {}}.with_indifferent_access
263
257
  instance_variables.sort.each do |var|
264
258
  if inspection_vars.include?(var)
265
259
  val = instance_variable_get(var)
@@ -272,6 +266,18 @@ class StandardError
272
266
  _h[:instance_variables][var] = self.class.inspection_value_simple(val)
273
267
  end
274
268
  end
269
+ _h
270
+ end
271
+
272
+ def to_inspection_hash(options: {}, _h: {}.with_indifferent_access, _depth: 0)
273
+ backtrace_key = options[:backtrace_key] || :backtrace
274
+ _h.merge!(
275
+ type: self.class.name, status: status,
276
+ http_status: http_status, message: message,
277
+ instance_variables: {}.with_indifferent_access
278
+ )
279
+ digest_backtrace # for @digest_backtrace
280
+ _h.merge!(to_inspection_ivars)
275
281
  if backtrace.present?
276
282
  if respond_to?(:cleaned_backtrace)
277
283
  if (bt = cleaned_backtrace(options))
@@ -1,3 +1,3 @@
1
1
  module Coaster
2
- VERSION = '1.4.34'
2
+ VERSION = '1.4.36'
3
3
  end
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.34
4
+ version: 1.4.36
5
5
  platform: ruby
6
6
  authors:
7
7
  - buzz jung
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-11-10 00:00:00.000000000 Z
10
+ date: 2025-11-20 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: oj