sentry-rails 5.18.0 → 5.18.2

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: bffc341442285ba61f2912e8b2ccea116956963fce33b4ccfadf8e241abb3749
4
+ data.tar.gz: 82a09635a284def44b454a507e9683bce2a8eddf73c057c8a814371ad88643b1
5
5
  SHA512:
6
- metadata.gz: b1924626717ccb8103871a7f24bf77c36db5e98c232a3a60cf3b0bab69d6a27f0bce3bf97bd326bdadddd3172354d8616c35c5e0087a08e0a44b6e0c7f7f706f
7
- data.tar.gz: 41fc7b2f3573624f821807ff0409b2138a1d249ef8c5fa7e6a271b5225ba20da61c7912933665554c72ffd3ea80356d57534f17ce9ad3f7a7bb1050ceb5a5da4
6
+ metadata.gz: 33508130e2f9963c137e5e6fa487ba0e098b7c5e8595dd1c66a50d878b92a8a6a061dc390684df7b00d456fdd96a1f1275010a992dc6129e2b4c0e68108b8412
7
+ data.tar.gz: 2c29916165ef727b3dbf4ebd17a61f2dab2453c5368b8e28b9dfef833b3e88b3d6d127d672e1d96974b70d83fbbf52a5219d8da18f934ff8e99a3236b029f67d
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")
@@ -12,7 +12,7 @@ module Sentry
12
12
  app.config.middleware.insert_after ActionDispatch::DebugExceptions, Sentry::Rails::RescuedExceptionInterceptor
13
13
  end
14
14
 
15
- # because the extension works by registering the around_perform callcack, it should always be ran
15
+ # because the extension works by registering the around_perform callback, it should always be run
16
16
  # before the application is eager-loaded (before user's jobs register their own callbacks)
17
17
  # See https://github.com/getsentry/sentry-ruby/issues/1249#issuecomment-853871871 for the detail explanation
18
18
  initializer "sentry.extend_active_job", before: :eager_load! do |app|
@@ -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.2"
4
4
  end
5
5
  end
data/sentry-rails.gemspec CHANGED
@@ -7,21 +7,27 @@ Gem::Specification.new do |spec|
7
7
  spec.description = spec.summary = "A gem that provides Rails integration for the Sentry error logger"
8
8
  spec.email = "accounts@sentry.io"
9
9
  spec.license = 'MIT'
10
- spec.homepage = "https://github.com/getsentry/sentry-ruby"
11
10
 
12
11
  spec.platform = Gem::Platform::RUBY
13
12
  spec.required_ruby_version = '>= 2.4'
14
13
  spec.extra_rdoc_files = ["README.md", "LICENSE.txt"]
15
14
  spec.files = `git ls-files | grep -Ev '^(spec|benchmarks|examples)'`.split("\n")
16
15
 
17
- spec.metadata["homepage_uri"] = spec.homepage
18
- spec.metadata["source_code_uri"] = spec.homepage
19
- spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
16
+ github_root_uri = 'https://github.com/getsentry/sentry-ruby'
17
+ spec.homepage = "#{github_root_uri}/tree/#{spec.version}/#{spec.name}"
18
+
19
+ spec.metadata = {
20
+ "homepage_uri" => spec.homepage,
21
+ "source_code_uri" => spec.homepage,
22
+ "changelog_uri" => "#{github_root_uri}/blob/#{spec.version}/CHANGELOG.md",
23
+ "bug_tracker_uri" => "#{github_root_uri}/issues",
24
+ "documentation_uri" => "http://www.rubydoc.info/gems/#{spec.name}/#{spec.version}"
25
+ }
20
26
 
21
27
  spec.bindir = "exe"
22
28
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
29
  spec.require_paths = ["lib"]
24
30
 
25
31
  spec.add_dependency "railties", ">= 5.0"
26
- spec.add_dependency "sentry-ruby", "~> 5.18.0"
32
+ spec.add_dependency "sentry-ruby", "~> 5.18.2"
27
33
  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.2
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-23 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.2
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.2
41
41
  description: A gem that provides Rails integration for the Sentry error logger
42
42
  email: accounts@sentry.io
43
43
  executables: []
@@ -84,13 +84,15 @@ files:
84
84
  - lib/sentry/rails/tracing/active_storage_subscriber.rb
85
85
  - lib/sentry/rails/version.rb
86
86
  - sentry-rails.gemspec
87
- homepage: https://github.com/getsentry/sentry-ruby
87
+ homepage: https://github.com/getsentry/sentry-ruby/tree/5.18.2/sentry-rails
88
88
  licenses:
89
89
  - MIT
90
90
  metadata:
91
- homepage_uri: https://github.com/getsentry/sentry-ruby
92
- source_code_uri: https://github.com/getsentry/sentry-ruby
93
- changelog_uri: https://github.com/getsentry/sentry-ruby/blob/master/CHANGELOG.md
91
+ homepage_uri: https://github.com/getsentry/sentry-ruby/tree/5.18.2/sentry-rails
92
+ source_code_uri: https://github.com/getsentry/sentry-ruby/tree/5.18.2/sentry-rails
93
+ changelog_uri: https://github.com/getsentry/sentry-ruby/blob/5.18.2/CHANGELOG.md
94
+ bug_tracker_uri: https://github.com/getsentry/sentry-ruby/issues
95
+ documentation_uri: http://www.rubydoc.info/gems/sentry-rails/5.18.2
94
96
  post_install_message:
95
97
  rdoc_options: []
96
98
  require_paths:
@@ -106,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
108
  - !ruby/object:Gem::Version
107
109
  version: '0'
108
110
  requirements: []
109
- rubygems_version: 3.1.6
111
+ rubygems_version: 3.5.11
110
112
  signing_key:
111
113
  specification_version: 4
112
114
  summary: A gem that provides Rails integration for the Sentry error logger