sentry-rails 5.18.0 → 5.18.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: 0eadc69b5a0f19fb1fbde82ca580c5385990637ab2080a21c81c4a03ffeb81a5
4
- data.tar.gz: 44bf3e89893bde541f38ad15974d6e91db4cf153ad9e37f167ee54b7c32bd00e
3
+ metadata.gz: f37e46eaedbb7739f9def9819546a7f4b1457c7fefd076bb394104fdf18910c1
4
+ data.tar.gz: f7360c8d456797deef74837c24ee44ae7a5fd875cc602b83382ac345d6498c44
5
5
  SHA512:
6
- metadata.gz: b1924626717ccb8103871a7f24bf77c36db5e98c232a3a60cf3b0bab69d6a27f0bce3bf97bd326bdadddd3172354d8616c35c5e0087a08e0a44b6e0c7f7f706f
7
- data.tar.gz: 41fc7b2f3573624f821807ff0409b2138a1d249ef8c5fa7e6a271b5225ba20da61c7912933665554c72ffd3ea80356d57534f17ce9ad3f7a7bb1050ceb5a5da4
6
+ metadata.gz: c5ec2e4609761381f9414e88c58559086dae1fb177d8f7b9a91e52bce88b3ea82f9f201d4aabd498e39d52f91637a7a1d5778f726d91afa1138f429136a96294
7
+ data.tar.gz: e58d7d66bb42a9dc0ff8679d7667c9c9bcb1fe268313c1fced2a6bd8713bf04b2dd95d407547b95052a8f57a9e93a393ace8e03108c9d9491bbc727414983944
data/Gemfile CHANGED
@@ -17,8 +17,11 @@ rails_version = Gem::Version.new(rails_version)
17
17
  if rails_version < Gem::Version.new("6.0.0")
18
18
  gem "sqlite3", "~> 1.3.0", platform: :ruby
19
19
  else
20
- # 1.7.0 dropped support for ruby < 3.0, remove later after upgrading craft setup
21
- gem "sqlite3", "1.6.9", platform: :ruby
20
+ if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("2.7.0")
21
+ gem "sqlite3", "~> 1.7.3", platform: :ruby
22
+ else
23
+ gem "sqlite3", "~> 1.6.9", platform: :ruby
24
+ end
22
25
  end
23
26
 
24
27
  if rails_version >= Gem::Version.new("7.2.0.alpha")
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "sentry/rails/tracing/abstract_subscriber"
2
4
 
3
5
  module Sentry
@@ -5,19 +7,15 @@ module Sentry
5
7
  module Tracing
6
8
  class ActiveRecordSubscriber < AbstractSubscriber
7
9
  EVENT_NAMES = ["sql.active_record"].freeze
8
- SPAN_PREFIX = "db.".freeze
9
- SPAN_ORIGIN = "auto.db.rails".freeze
10
+ SPAN_PREFIX = "db."
11
+ SPAN_ORIGIN = "auto.db.rails"
10
12
  EXCLUDED_EVENTS = ["SCHEMA", "TRANSACTION"].freeze
11
13
 
12
14
  SUPPORT_SOURCE_LOCATION = ActiveSupport::BacktraceCleaner.method_defined?(:clean_frame)
13
15
 
14
16
  if SUPPORT_SOURCE_LOCATION
15
- # Need to be specific down to the lib path so queries generated in specs don't get ignored
16
- SENTRY_RUBY_PATH = File.join(Gem::Specification.find_by_name("sentry-ruby").full_gem_path, "lib")
17
- SENTRY_RAILS_PATH = File.join(Gem::Specification.find_by_name("sentry-rails").full_gem_path, "lib")
18
-
19
17
  class_attribute :backtrace_cleaner, default: (ActiveSupport::BacktraceCleaner.new.tap do |cleaner|
20
- cleaner.add_silencer { |line| line.include?(SENTRY_RUBY_PATH) || line.include?(SENTRY_RAILS_PATH) }
18
+ cleaner.add_silencer { |line| line.include?("sentry-ruby/lib") || line.include?("sentry-rails/lib") }
21
19
  end)
22
20
  end
23
21
 
@@ -1,5 +1,5 @@
1
1
  module Sentry
2
2
  module Rails
3
- VERSION = "5.18.0"
3
+ VERSION = "5.18.1"
4
4
  end
5
5
  end
data/sentry-rails.gemspec CHANGED
@@ -23,5 +23,5 @@ Gem::Specification.new do |spec|
23
23
  spec.require_paths = ["lib"]
24
24
 
25
25
  spec.add_dependency "railties", ">= 5.0"
26
- spec.add_dependency "sentry-ruby", "~> 5.18.0"
26
+ spec.add_dependency "sentry-ruby", "~> 5.18.1"
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sentry-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.18.0
4
+ version: 5.18.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sentry Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-06-25 00:00:00.000000000 Z
11
+ date: 2024-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 5.18.0
33
+ version: 5.18.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 5.18.0
40
+ version: 5.18.1
41
41
  description: A gem that provides Rails integration for the Sentry error logger
42
42
  email: accounts@sentry.io
43
43
  executables: []
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
106
  - !ruby/object:Gem::Version
107
107
  version: '0'
108
108
  requirements: []
109
- rubygems_version: 3.1.6
109
+ rubygems_version: 3.5.11
110
110
  signing_key:
111
111
  specification_version: 4
112
112
  summary: A gem that provides Rails integration for the Sentry error logger