sentry-rails 4.9.1 → 5.0.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: d8f64ec5f71ef4544b1f9bf403cf7ca6b2c7a1da261bc60cbdd90ed2e6d62319
4
- data.tar.gz: c89c1bdf903cdc922972ecbbb5d7522779ee5bcbc257850149037924ed608636
3
+ metadata.gz: dbb2adfc21656bba09244e0895c88a20f58e2401fcb5d4b693f48d10319c9121
4
+ data.tar.gz: 6e2c595d8d719208524bfa270d6aa0e8d2123c60b80923fe05323f93bb29f98f
5
5
  SHA512:
6
- metadata.gz: 3291ca030a819d5dd761f70cee7634a706e61895c98cd1758df8b10ad1716f387555a691811b8df5a74892227bb1d2ee30db5982cc7f4e0686cf567847a5b912
7
- data.tar.gz: 106116f3dd129838931f2c155f9fb40ca6c75bb2eede9f11e247e36ae0a6f79f0457e0d9a89e0e0e0133cdb04a3df1e44e2473abb8ab8c227bab15500ca10103
6
+ metadata.gz: b3af907f32e77d292f5d86b99bfa5d62e580118e4971f940eb07278951147a9e53b4680926d436833d69548b0872eb560cb2c73dc44361b86ab2e951271d9519
7
+ data.tar.gz: daad9ecf642f47a149ff2065ee3ce79e56ab33b2379b477f60d86c85ca051c8e0c4cc924c1c68786bdb015b7eac4e998c336b8d5ad0883fe0f11050586fc1103
data/Gemfile CHANGED
@@ -5,7 +5,7 @@ gemspec
5
5
  gem "sentry-ruby", path: "../sentry-ruby"
6
6
 
7
7
  rails_version = ENV["RAILS_VERSION"]
8
- rails_version = "6.1.0" if rails_version.nil?
8
+ rails_version = "7.0.0" if rails_version.nil?
9
9
  rails_version = Gem::Version.new(rails_version)
10
10
 
11
11
  gem 'activerecord-jdbcmysql-adapter', platform: :jruby
@@ -4,6 +4,7 @@ module Sentry
4
4
  class ErrorHandler
5
5
  class << self
6
6
  def capture(connection, transaction_name:, extra_context: nil, &block)
7
+ return block.call unless Sentry.initialized?
7
8
  # ActionCable's ConnectionStub (for testing) doesn't implement the exact same interfaces as Connection::Base.
8
9
  # One thing that's missing is `env`. So calling `connection.env` direclty will fail in test environments when `stub_connection` is used.
9
10
  # See https://github.com/getsentry/sentry-ruby/pull/1684 for more information.
@@ -1,5 +1,5 @@
1
1
  module Sentry
2
2
  module Rails
3
- VERSION = "4.9.1"
3
+ VERSION = "5.0.2"
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-core", "~> 4.9.1"
26
+ spec.add_dependency "sentry-ruby-core", "~> 5.0.2"
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: 4.9.1
4
+ version: 5.0.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: 2022-01-14 00:00:00.000000000 Z
11
+ date: 2022-01-31 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: 4.9.1
33
+ version: 5.0.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: 4.9.1
40
+ version: 5.0.2
41
41
  description: A gem that provides Rails integration for the Sentry error logger
42
42
  email: accounts@sentry.io
43
43
  executables: []