sentry-rails 5.11.0 → 5.12.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: 39ae75bb0a992ced9247272ab6d20ff61aee51ee2a9a02f309204fb01533aae3
4
- data.tar.gz: 6a00192e48a695c90ed994ccdb40cc4def17c1263c1c469d2c7daac5f933607b
3
+ metadata.gz: b7ddebe5d3603e4e463a85c866633a8efc2c9a4e559450b29a1a23f9e62862d7
4
+ data.tar.gz: a4e5938fd4d4ca9af782e1934edb6818c9bb5d033fbd52e6181f808c72e7be80
5
5
  SHA512:
6
- metadata.gz: a99466d8bbab1261f08b0bdf2a1394e5dfb473fc53e9f4af91fb67411ef668c2e49c26496be127a7e2f5350c4d745388eddb0f357963caafe966a77cc8ce3028
7
- data.tar.gz: 33f3d414890890cda3529d8f21f916f74db743ce466b8fc7f70a1529a659d1be6360f6e98097ddf30ea896c8d85c497acd2e73c1831d1025fcc669f56f6562e5
6
+ metadata.gz: 7a480ba7bf4e4c0a5790b7debdc1a35b2fc5c6c707804530acfd0699fd2cb0f45c8df4ae933c37d5e18d1fa24e6e7a23954f71aada985031111d4aa863f5c986
7
+ data.tar.gz: 69aab97414157f65969b57bd2585d123f5dd3ba87268c86d61f1d9ae77d42efd8c8b969ee0a10392037210d873f188ecc359a467573e174391d324feadc6540c
data/.gitignore CHANGED
@@ -5,7 +5,7 @@
5
5
  /doc/
6
6
  /pkg/
7
7
  /spec/reports/
8
- /spec/dummy/test_rails_app/db
8
+ /spec/dummy/test_rails_app/db*
9
9
  /tmp/
10
10
 
11
11
  # rspec failure tracking
data/Gemfile CHANGED
@@ -11,7 +11,7 @@ platform :jruby do
11
11
  end
12
12
 
13
13
  rails_version = ENV["RAILS_VERSION"]
14
- rails_version = "7.0.0" if rails_version.nil?
14
+ rails_version = "7.1.0" if rails_version.nil?
15
15
  rails_version = Gem::Version.new(rails_version)
16
16
 
17
17
  if rails_version < Gem::Version.new("6.0.0")
@@ -20,10 +20,13 @@ else
20
20
  gem "sqlite3", platform: :ruby
21
21
  end
22
22
 
23
- if rails_version > Gem::Version.new("7.0.0")
23
+ if rails_version >= Gem::Version.new("7.2.0.alpha")
24
24
  gem "rails", github: "rails/rails"
25
+ elsif rails_version >= Gem::Version.new("7.1.0")
26
+ gem "rails", "~> #{rails_version}"
25
27
  else
26
28
  gem "rails", "~> #{rails_version}"
29
+ gem "psych", "~> 3.0.0"
27
30
  end
28
31
 
29
32
  gem "mini_magick"
@@ -39,22 +42,25 @@ gem 'simplecov'
39
42
  gem "simplecov-cobertura", "~> 1.4"
40
43
  gem "rexml"
41
44
 
42
- # https://github.com/flavorjones/loofah/pull/267
43
- # loofah changed the required ruby version in a patch so we need to explicitly pin it
44
- gem "loofah", "2.20.0" if RUBY_VERSION.to_f < 2.5
45
+ ruby_version = Gem::Version.new(RUBY_VERSION)
45
46
 
46
- gem "rake", "~> 12.0"
47
+ if ruby_version < Gem::Version.new("2.5.0")
48
+ # https://github.com/flavorjones/loofah/pull/267
49
+ # loofah changed the required ruby version in a patch so we need to explicitly pin it
50
+ gem "loofah", "2.20.0"
51
+ end
47
52
 
48
- if RUBY_VERSION.to_f >= 2.6
53
+ if ruby_version >= Gem::Version.new("2.6.0")
49
54
  gem "debug", github: "ruby/debug", platform: :ruby
55
+ gem "irb"
50
56
 
51
- if rails_version == Gem::Version.new("6.0.0") && RUBY_VERSION.to_f == 2.7
52
- gem "irb", "~> 1.7.4" # irb 1.8 adds psych via rdoc that causes CI to fail
53
- else
54
- gem "irb"
57
+ if ruby_version >= Gem::Version.new("3.0.0")
58
+ gem "ruby-lsp-rspec"
55
59
  end
56
60
  end
57
61
 
62
+ gem "rake", "~> 12.0"
63
+
58
64
  gem "pry"
59
65
 
60
66
  gem "benchmark-ips"
data/README.md CHANGED
@@ -11,7 +11,7 @@
11
11
 
12
12
 
13
13
  [![Gem Version](https://img.shields.io/gem/v/sentry-rails.svg)](https://rubygems.org/gems/sentry-rails)
14
- ![Build Status](https://github.com/getsentry/sentry-ruby/workflows/sentry-rails%20Test/badge.svg)
14
+ ![Build Status](https://github.com/getsentry/sentry-ruby/actions/workflows/sentry_rails_test.yml/badge.svg)
15
15
  [![Coverage Status](https://img.shields.io/codecov/c/github/getsentry/sentry-ruby/master?logo=codecov)](https://codecov.io/gh/getsentry/sentry-ruby/branch/master)
16
16
  [![Gem](https://img.shields.io/gem/dt/sentry-rails.svg)](https://rubygems.org/gems/sentry-rails/)
17
17
  [![SemVer](https://api.dependabot.com/badges/compatibility_score?dependency-name=sentry-rails&package-manager=bundler&version-scheme=semver)](https://dependabot.com/compatibility-score.html?dependency-name=sentry-rails&package-manager=bundler&version-scheme=semver)
@@ -12,7 +12,12 @@ module Sentry
12
12
  @excluded_exceptions = @excluded_exceptions.concat(Sentry::Rails::IGNORE_DEFAULT)
13
13
 
14
14
  if ::Rails.logger
15
- @logger = ::Rails.logger.dup
15
+ if ::Rails.logger.respond_to?(:broadcasts)
16
+ dupped_broadcasts = ::Rails.logger.broadcasts.map(&:dup)
17
+ @logger = ::ActiveSupport::BroadcastLogger.new(*dupped_broadcasts)
18
+ else
19
+ @logger = ::Rails.logger.dup
20
+ end
16
21
  else
17
22
  @logger.warn(Sentry::LOGGER_PROGNAME) do
18
23
  <<~MSG
@@ -33,6 +33,8 @@ module Sentry
33
33
  connection.pool.spec.config
34
34
  end
35
35
 
36
+ next unless db_config
37
+
36
38
  span.set_data(Span::DataConventions::DB_SYSTEM, db_config[:adapter]) if db_config[:adapter]
37
39
  span.set_data(Span::DataConventions::DB_NAME, db_config[:database]) if db_config[:database]
38
40
  span.set_data(Span::DataConventions::SERVER_ADDRESS, db_config[:host]) if db_config[:host]
@@ -1,5 +1,5 @@
1
1
  module Sentry
2
2
  module Rails
3
- VERSION = "5.11.0"
3
+ VERSION = "5.12.0"
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.11.0"
26
+ spec.add_dependency "sentry-ruby", "~> 5.12.0"
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.11.0
4
+ version: 5.12.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: 2023-09-06 00:00:00.000000000 Z
11
+ date: 2023-10-10 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.11.0
33
+ version: 5.12.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.11.0
40
+ version: 5.12.0
41
41
  description: A gem that provides Rails integration for the Sentry error logger
42
42
  email: accounts@sentry.io
43
43
  executables: []