sentry-rails 6.2.0 → 6.3.1

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: b63ec61238dbea2a3fee7cebbdcf72d1810dc50fe4863502ecdbc66b8da7b31e
4
- data.tar.gz: 165e2974b74f63c062db1587c1852c151a5b350a15df13c408cea97476d6c10f
3
+ metadata.gz: f3a0240dfa1ac595e1ed7b5997018cddbb2d973239ff388ec01ab3e82a7481ac
4
+ data.tar.gz: f9312c7f5397579534fbbc2078b1ec640b5768bb262a85559579513da87c4db4
5
5
  SHA512:
6
- metadata.gz: ec0d90eb1b44f1dfb45bb369586cb8ee22da1a79604679ec12f475e1916eefe646a34c1ab97de386a43e7a27c3e3999c684d61038571ad88c6e0dca667f23f45
7
- data.tar.gz: fa67c7c00d3d9f71efd13fecb195ea945538f6535464e704115d5e1a8bf7f6c3cf65c3423369270809a6d49cb99ce4b7ab700cca0885756da673f39f99fac166
6
+ metadata.gz: 724f65e68b976498970ee37d53581326f157ba84625c432d54ea92cdb59bb2e76da94a68541926972e571cc84789773d95664e9c7ba17ef4b06e94350a1cfa44
7
+ data.tar.gz: db79e5c2e0caed730cc069bf27c36214b17f75466fa3f9fe3f09d5997cc8668dfd0b143c0c17f8121e82ad9d52814e24f6017c062d927f622157ca62c51e9825
data/Gemfile CHANGED
@@ -62,3 +62,5 @@ gem "benchmark-ips"
62
62
  gem "benchmark_driver"
63
63
  gem "benchmark-ipsa"
64
64
  gem "benchmark-memory"
65
+
66
+ gem "sequel"
@@ -60,6 +60,10 @@ module Sentry
60
60
  request.show_exceptions?
61
61
  end
62
62
  end
63
+
64
+ def status_code_for_exception(exception)
65
+ ActionDispatch::ExceptionWrapper.status_code_for_exception(exception.class.name)
66
+ end
63
67
  end
64
68
  end
65
69
  end
@@ -15,6 +15,7 @@ module Sentry
15
15
  after(:initialize) do
16
16
  @rails = Sentry::Rails::Configuration.new
17
17
  @excluded_exceptions = @excluded_exceptions.concat(Sentry::Rails::IGNORE_DEFAULT)
18
+ @excluded_exceptions = @excluded_exceptions.concat(Sentry::Rails::RAILS_8_1_1_IGNORE_DEFAULT) if Gem::Version.new(::Rails.version) >= Gem::Version.new("8.1.1")
18
19
 
19
20
  if ::Rails.logger
20
21
  if defined?(::ActiveSupport::BroadcastLogger) && ::Rails.logger.is_a?(::ActiveSupport::BroadcastLogger)
@@ -50,12 +51,18 @@ module Sentry
50
51
  "ActionController::RoutingError",
51
52
  "ActionController::UnknownAction",
52
53
  "ActionController::UnknownFormat",
53
- "ActionDispatch::Http::MimeNegotiation::InvalidType",
54
54
  "ActionController::UnknownHttpMethod",
55
+ "ActionDispatch::Http::MimeNegotiation::InvalidType",
55
56
  "ActionDispatch::Http::Parameters::ParseError",
56
57
  "ActiveRecord::RecordNotFound"
57
58
  ].freeze
58
59
 
60
+ # Rails 8.1.1 introduced ActionController::TooManyRequests for rate limiting
61
+ # https://github.com/rails/rails/commit/73ecd0ced634e5177496677a2986ec3731c7e2ee
62
+ RAILS_8_1_1_IGNORE_DEFAULT = [
63
+ "ActionController::TooManyRequests"
64
+ ].freeze
65
+
59
66
  ACTIVE_SUPPORT_LOGGER_SUBSCRIPTION_ITEMS_DEFAULT = {
60
67
  # action_controller
61
68
  "write_fragment.action_controller" => %i[key],
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sentry
4
4
  module Rails
5
- VERSION = "6.2.0"
5
+ VERSION = "6.3.1"
6
6
  end
7
7
  end
data/sentry-rails.gemspec CHANGED
@@ -31,5 +31,5 @@ Gem::Specification.new do |spec|
31
31
  spec.require_paths = ["lib"]
32
32
 
33
33
  spec.add_dependency "railties", ">= 5.2.0"
34
- spec.add_dependency "sentry-ruby", "~> 6.2.0"
34
+ spec.add_dependency "sentry-ruby", "~> 6.3.1"
35
35
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sentry-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.2.0
4
+ version: 6.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sentry Team
@@ -29,14 +29,14 @@ dependencies:
29
29
  requirements:
30
30
  - - "~>"
31
31
  - !ruby/object:Gem::Version
32
- version: 6.2.0
32
+ version: 6.3.1
33
33
  type: :runtime
34
34
  prerelease: false
35
35
  version_requirements: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: 6.2.0
39
+ version: 6.3.1
40
40
  description: A gem that provides Rails integration for the Sentry error logger
41
41
  email: accounts@sentry.io
42
42
  executables: []
@@ -89,15 +89,15 @@ files:
89
89
  - lib/sentry/rails/tracing/active_support_subscriber.rb
90
90
  - lib/sentry/rails/version.rb
91
91
  - sentry-rails.gemspec
92
- homepage: https://github.com/getsentry/sentry-ruby/tree/6.2.0/sentry-rails
92
+ homepage: https://github.com/getsentry/sentry-ruby/tree/6.3.1/sentry-rails
93
93
  licenses:
94
94
  - MIT
95
95
  metadata:
96
- homepage_uri: https://github.com/getsentry/sentry-ruby/tree/6.2.0/sentry-rails
97
- source_code_uri: https://github.com/getsentry/sentry-ruby/tree/6.2.0/sentry-rails
98
- changelog_uri: https://github.com/getsentry/sentry-ruby/blob/6.2.0/CHANGELOG.md
96
+ homepage_uri: https://github.com/getsentry/sentry-ruby/tree/6.3.1/sentry-rails
97
+ source_code_uri: https://github.com/getsentry/sentry-ruby/tree/6.3.1/sentry-rails
98
+ changelog_uri: https://github.com/getsentry/sentry-ruby/blob/6.3.1/CHANGELOG.md
99
99
  bug_tracker_uri: https://github.com/getsentry/sentry-ruby/issues
100
- documentation_uri: http://www.rubydoc.info/gems/sentry-rails/6.2.0
100
+ documentation_uri: http://www.rubydoc.info/gems/sentry-rails/6.3.1
101
101
  rdoc_options: []
102
102
  require_paths:
103
103
  - lib