tobox 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 33a40c07b2d7f36933540d390287aeeb7d4e0aa39a7d19a439eaca6a2f8fc23f
4
- data.tar.gz: 939699d801afdb03ed85c0048eee3b00c50a786a345b0731c6dba910fafb51ad
3
+ metadata.gz: ee99cb00423c6956bff6231956ddd964680d374d0ade2402af46b8246d0ae33a
4
+ data.tar.gz: 2c39e05251cff04e03fb514395118448ab10ad90d005a4c4e4fb54189eef2f3b
5
5
  SHA512:
6
- metadata.gz: 5f5567a9f8e43fbc0f22e10465a0026a4984932183ae7d70c6fa95cdcb092995cbedd44422fa8a65b6c2d321be3ae15a0b72e905edd43c96427fbaac7cc73e34
7
- data.tar.gz: f7823d88490ab6edc02ed6a8fd846f7e6cf40ce042fb046e502e3024c26f24ced5ee143de80669ffad49d5077dc97e338c363eda1e0ea1d3196479447c6aa7f6
6
+ metadata.gz: 98bfab94ac55fec6019706862eb39daad743e57f0fa9433f5badfca714ec63add109108d44dcbd48ba32d89bf297280ae26a233771fb453804a468410843a387
7
+ data.tar.gz: 1ac228909e4308b792b8af1586f931415bbc312f968648047904a2bcf47afd09cf2ff0065119b6a4f08619e5b6af5f78c955d9fe63d579d66d3705c207e0e37a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.3.1] - 2022-03-03
4
+
5
+ ### Bugfixes
6
+
7
+ In Sentry plugin, exception capturing is no longer dependent on transaction monitoring being enabled (if `traces_sampling_rate` would be set to 0, exceptions wouldn't be capture; now they are).
8
+
3
9
  ## [0.3.0] - 2022-12-12
4
10
 
5
11
  ### Features
@@ -124,7 +124,7 @@ module Tobox
124
124
  def method_missing(meth, *args, &block)
125
125
  if DEFAULT_CONFIGURATION.key?(meth) && args.size == 1
126
126
  @config[meth] = args.first
127
- elsif /\Aon_(.*)\z/.match(meth) && args.size.zero?
127
+ elsif /\Aon_(.*)\z/.match(meth) && args.empty?
128
128
  on(Regexp.last_match(1).to_sym, &block)
129
129
  else
130
130
  super
@@ -74,12 +74,12 @@ module Tobox
74
74
  def on_error(event, error)
75
75
  return unless ::Sentry.initialized?
76
76
 
77
+ capture_exception(event, error)
78
+
77
79
  transaction = retrieve_transaction(event)
78
80
 
79
81
  return unless transaction
80
82
 
81
- capture_exception(event, error)
82
-
83
83
  finish_transaction(transaction, 500)
84
84
  end
85
85
 
data/lib/tobox/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Tobox
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tobox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - HoneyryderChuck
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-12-21 00:00:00.000000000 Z
11
+ date: 2023-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sequel