sentry-rails 5.19.0 → 5.20.0

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: 1f02fdd8ccd139f443cc3c679298d67bb33425c4b526adc9398910d715dd1a08
4
- data.tar.gz: 21daa48fb038267f081ebd6ffd446441e2f4d5b01ebf45eadc7036bffd861f11
3
+ metadata.gz: be7750de5ef963c9b54690ff121fdedeb236002a719056f34ceaccc1dd1a45f9
4
+ data.tar.gz: ce895b75427bfe412df2ad9cc1e6418fa544b6c90419d38fcb4c0685f6cf849c
5
5
  SHA512:
6
- metadata.gz: d20a91ba02a2914f5f9277409b7ce9dae74239aa976aa9d3a0fab1c46cc2d6ecabd1405d1e9afc067494f5a315fcc5af2d846b1b1bd6db56442d958512b141d9
7
- data.tar.gz: 1a3a0d2a4f05ebd917a982bda4f17b395a8a45b51de5125836fcaee8aa6c1707195c9dec0ac0af2e62bfa1beffcf6559ab4537a6ec6fa16a1b9794b5fa7130c5
6
+ metadata.gz: 8d3c3fada478272fb424f9f50d4ebece803b0833668fe93b50be47abbe305bc06c67613e965c6cd91d226945f8b321ed0fd42dc8153b80f448f6db62c793a663
7
+ data.tar.gz: 1328737cb5488973c3d3e25fef139ab5bcc6a08efc19503cab136f6eb6f6c22d48b51fc8593412f620a06ee8585783381bf9685f64a438987fd1709a9232cde1
data/.rubocop.yml ADDED
@@ -0,0 +1 @@
1
+ ../.rubocop.yml
data/Gemfile CHANGED
@@ -6,7 +6,7 @@ gemspec
6
6
  gem "sentry-ruby", path: "../sentry-ruby"
7
7
 
8
8
  platform :jruby do
9
- gem 'activerecord-jdbcmysql-adapter'
9
+ gem "activerecord-jdbcmysql-adapter"
10
10
  gem "jdbc-sqlite3"
11
11
  end
12
12
 
@@ -24,11 +24,14 @@ else
24
24
  end
25
25
  end
26
26
 
27
- if rails_version >= Gem::Version.new("7.2.0.alpha")
27
+ if rails_version >= Gem::Version.new("8.0.0.alpha")
28
28
  gem "rails", github: "rails/rails"
29
+ gem "rspec-rails"
29
30
  elsif rails_version >= Gem::Version.new("7.1.0")
30
31
  gem "rails", "~> #{rails_version}"
32
+ gem "rspec-rails"
31
33
  else
34
+ gem "rspec-rails", "~> 4.0"
32
35
  gem "rails", "~> #{rails_version}"
33
36
  gem "psych", "~> 3.0.0"
34
37
  end
@@ -39,7 +42,6 @@ gem "sprockets-rails"
39
42
 
40
43
  gem "sidekiq"
41
44
 
42
- gem "rspec-rails", "~> 4.0"
43
45
 
44
46
  ruby_version = Gem::Version.new(RUBY_VERSION)
45
47
 
@@ -2,7 +2,7 @@ module Sentry
2
2
  module Rails
3
3
  class CaptureExceptions < Sentry::Rack::CaptureExceptions
4
4
  RAILS_7_1 = Gem::Version.new(::Rails.version) >= Gem::Version.new("7.1.0.alpha")
5
- SPAN_ORIGIN = 'auto.http.rails'.freeze
5
+ SPAN_ORIGIN = "auto.http.rails".freeze
6
6
 
7
7
  def initialize(_)
8
8
  super
@@ -31,20 +31,20 @@ module Sentry
31
31
 
32
32
  module Rails
33
33
  IGNORE_DEFAULT = [
34
- 'AbstractController::ActionNotFound',
35
- 'ActionController::BadRequest',
36
- 'ActionController::InvalidAuthenticityToken',
37
- 'ActionController::InvalidCrossOriginRequest',
38
- 'ActionController::MethodNotAllowed',
39
- 'ActionController::NotImplemented',
40
- 'ActionController::ParameterMissing',
41
- 'ActionController::RoutingError',
42
- 'ActionController::UnknownAction',
43
- 'ActionController::UnknownFormat',
44
- 'ActionDispatch::Http::MimeNegotiation::InvalidType',
45
- 'ActionController::UnknownHttpMethod',
46
- 'ActionDispatch::Http::Parameters::ParseError',
47
- 'ActiveRecord::RecordNotFound'
34
+ "AbstractController::ActionNotFound",
35
+ "ActionController::BadRequest",
36
+ "ActionController::InvalidAuthenticityToken",
37
+ "ActionController::InvalidCrossOriginRequest",
38
+ "ActionController::MethodNotAllowed",
39
+ "ActionController::NotImplemented",
40
+ "ActionController::ParameterMissing",
41
+ "ActionController::RoutingError",
42
+ "ActionController::UnknownAction",
43
+ "ActionController::UnknownFormat",
44
+ "ActionDispatch::Http::MimeNegotiation::InvalidType",
45
+ "ActionController::UnknownHttpMethod",
46
+ "ActionDispatch::Http::Parameters::ParseError",
47
+ "ActiveRecord::RecordNotFound"
48
48
  ].freeze
49
49
 
50
50
  ACTIVE_SUPPORT_LOGGER_SUBSCRIPTION_ITEMS_DEFAULT = {
@@ -1,7 +1,7 @@
1
1
  module Sentry
2
2
  module Rails
3
3
  module ControllerTransaction
4
- SPAN_ORIGIN = 'auto.view.rails'.freeze
4
+ SPAN_ORIGIN = "auto.view.rails".freeze
5
5
 
6
6
  def self.included(base)
7
7
  base.prepend_around_action(:sentry_around_action)
@@ -94,14 +94,14 @@ module Sentry
94
94
 
95
95
  def inject_breadcrumbs_logger
96
96
  if Sentry.configuration.breadcrumbs_logger.include?(:active_support_logger)
97
- require 'sentry/rails/breadcrumb/active_support_logger'
97
+ require "sentry/rails/breadcrumb/active_support_logger"
98
98
  Sentry::Rails::Breadcrumb::ActiveSupportLogger.inject(Sentry.configuration.rails.active_support_logger_subscription_items)
99
99
  end
100
100
 
101
101
  if Sentry.configuration.breadcrumbs_logger.include?(:monotonic_active_support_logger)
102
102
  return warn "Usage of `monotonic_active_support_logger` require a version of Rails >= 6.1, please upgrade your Rails version or use another logger" if ::Rails.version.to_f < 6.1
103
103
 
104
- require 'sentry/rails/breadcrumb/monotonic_active_support_logger'
104
+ require "sentry/rails/breadcrumb/monotonic_active_support_logger"
105
105
  Sentry::Rails::Breadcrumb::MonotonicActiveSupportLogger.inject
106
106
  end
107
107
  end
@@ -1,5 +1,5 @@
1
1
  module Sentry
2
2
  module Rails
3
- VERSION = "5.19.0"
3
+ VERSION = "5.20.0"
4
4
  end
5
5
  end
data/sentry-rails.gemspec CHANGED
@@ -29,5 +29,5 @@ Gem::Specification.new do |spec|
29
29
  spec.require_paths = ["lib"]
30
30
 
31
31
  spec.add_dependency "railties", ">= 5.0"
32
- spec.add_dependency "sentry-ruby", "~> 5.19.0"
32
+ spec.add_dependency "sentry-ruby", "~> 5.20.0"
33
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.19.0
4
+ version: 5.20.0
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-08-13 00:00:00.000000000 Z
11
+ date: 2024-09-27 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.19.0
33
+ version: 5.20.0
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.19.0
40
+ version: 5.20.0
41
41
  description: A gem that provides Rails integration for the Sentry error logger
42
42
  email: accounts@sentry.io
43
43
  executables: []
@@ -48,6 +48,7 @@ extra_rdoc_files:
48
48
  files:
49
49
  - ".gitignore"
50
50
  - ".rspec"
51
+ - ".rubocop.yml"
51
52
  - CHANGELOG.md
52
53
  - Gemfile
53
54
  - LICENSE.txt
@@ -84,15 +85,15 @@ files:
84
85
  - lib/sentry/rails/tracing/active_storage_subscriber.rb
85
86
  - lib/sentry/rails/version.rb
86
87
  - sentry-rails.gemspec
87
- homepage: https://github.com/getsentry/sentry-ruby/tree/5.19.0/sentry-rails
88
+ homepage: https://github.com/getsentry/sentry-ruby/tree/5.20.0/sentry-rails
88
89
  licenses:
89
90
  - MIT
90
91
  metadata:
91
- homepage_uri: https://github.com/getsentry/sentry-ruby/tree/5.19.0/sentry-rails
92
- source_code_uri: https://github.com/getsentry/sentry-ruby/tree/5.19.0/sentry-rails
93
- changelog_uri: https://github.com/getsentry/sentry-ruby/blob/5.19.0/CHANGELOG.md
92
+ homepage_uri: https://github.com/getsentry/sentry-ruby/tree/5.20.0/sentry-rails
93
+ source_code_uri: https://github.com/getsentry/sentry-ruby/tree/5.20.0/sentry-rails
94
+ changelog_uri: https://github.com/getsentry/sentry-ruby/blob/5.20.0/CHANGELOG.md
94
95
  bug_tracker_uri: https://github.com/getsentry/sentry-ruby/issues
95
- documentation_uri: http://www.rubydoc.info/gems/sentry-rails/5.19.0
96
+ documentation_uri: http://www.rubydoc.info/gems/sentry-rails/5.20.0
96
97
  post_install_message:
97
98
  rdoc_options: []
98
99
  require_paths:
@@ -108,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
109
  - !ruby/object:Gem::Version
109
110
  version: '0'
110
111
  requirements: []
111
- rubygems_version: 3.5.11
112
+ rubygems_version: 3.5.16
112
113
  signing_key:
113
114
  specification_version: 4
114
115
  summary: A gem that provides Rails integration for the Sentry error logger