sentry-rails 5.13.0 → 5.16.1

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: 500c760aca4cc420df9f10a1bf920e3bd4dd03ff1667a80019b2660c95ad803b
4
- data.tar.gz: 15aeba9d0fbd870fe8c562f7105df10f45ba8973f49f8fbf4b044b31f4711a43
3
+ metadata.gz: 7ee07f40f442adc566067614916895a02d753d2a44c518a78d78528c6d967e1e
4
+ data.tar.gz: 71004c34b4c2798d8022a3d11dbda9daf19f9f9a39a9d4b9a8bdac0332a0b39f
5
5
  SHA512:
6
- metadata.gz: 6bb7d84aade0f54a4e77ebbf0f7e24d6bb41f7a0ea417e8e22d24542f2e5bb8c5c4480f029ef33602b3ebd67dd2a8af2fc3093460f669c4b89d51b964d8846a8
7
- data.tar.gz: 2c7410b417f20976b18d85c9e08588be14523473d07481b6407670f9ba27358098fd543eca38bd87aff8ab053e13cffecc5431d4dab4af7639d28175805c6968
6
+ metadata.gz: 172c3ca6639f55e608db51ef7efb1837791b5bc8836273fed287b58f32a1b88377b50488e70e94134a4c3b9d230731fba03b7a2523cfde975dd6685c7a136d73
7
+ data.tar.gz: 3a8010027974f00f4c708e8b0356233c3ccddb7eb525df660b9d9aefbcc535870118dbf727b1658b1271bc5afddc9a93b13a4ce0c496fc22ba9c8db18c84d630
data/Gemfile CHANGED
@@ -17,7 +17,8 @@ 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
- gem "sqlite3", platform: :ruby
20
+ # 1.7.0 dropped support for ruby < 3.0, remove later after upgrading craft setup
21
+ gem "sqlite3", "1.6.9", platform: :ruby
21
22
  end
22
23
 
23
24
  if rails_version >= Gem::Version.new("7.2.0.alpha")
@@ -35,12 +36,7 @@ gem "sprockets-rails"
35
36
 
36
37
  gem "sidekiq"
37
38
 
38
- gem "rspec", "~> 3.0"
39
- gem "rspec-retry"
40
39
  gem "rspec-rails", "~> 4.0"
41
- gem 'simplecov'
42
- gem "simplecov-cobertura", "~> 1.4"
43
- gem "rexml"
44
40
 
45
41
  ruby_version = Gem::Version.new(RUBY_VERSION)
46
42
 
@@ -50,20 +46,9 @@ if ruby_version < Gem::Version.new("2.5.0")
50
46
  gem "loofah", "2.20.0"
51
47
  end
52
48
 
53
- if ruby_version >= Gem::Version.new("2.6.0")
54
- gem "debug", github: "ruby/debug", platform: :ruby
55
- gem "irb"
56
-
57
- if ruby_version >= Gem::Version.new("3.0.0")
58
- gem "ruby-lsp-rspec"
59
- end
60
- end
61
-
62
- gem "rake", "~> 12.0"
63
-
64
- gem "pry"
65
-
66
49
  gem "benchmark-ips"
67
50
  gem "benchmark_driver"
68
51
  gem "benchmark-ipsa"
69
52
  gem "benchmark-memory"
53
+
54
+ eval_gemfile File.expand_path("../Gemfile", __dir__)
@@ -12,7 +12,7 @@ module Sentry
12
12
  @excluded_exceptions = @excluded_exceptions.concat(Sentry::Rails::IGNORE_DEFAULT)
13
13
 
14
14
  if ::Rails.logger
15
- if ::Rails.logger.respond_to?(:broadcasts)
15
+ if defined?(::ActiveSupport::BroadcastLogger) && ::Rails.logger.is_a?(::ActiveSupport::BroadcastLogger)
16
16
  dupped_broadcasts = ::Rails.logger.broadcasts.map(&:dup)
17
17
  @logger = ::ActiveSupport::BroadcastLogger.new(*dupped_broadcasts)
18
18
  else
@@ -40,6 +40,7 @@ module Sentry
40
40
 
41
41
  configure_project_root
42
42
  configure_trusted_proxies
43
+ configure_cron_timezone
43
44
  extend_controller_methods if defined?(ActionController)
44
45
  patch_background_worker if defined?(ActiveRecord)
45
46
  override_streaming_reporter if defined?(ActionView)
@@ -70,6 +71,11 @@ module Sentry
70
71
  Sentry.configuration.trusted_proxies += Array(::Rails.application.config.action_dispatch.trusted_proxies)
71
72
  end
72
73
 
74
+ def configure_cron_timezone
75
+ tz_info = ::ActiveSupport::TimeZone.find_tzinfo(::Rails.application.config.time_zone)
76
+ Sentry.configuration.cron.default_timezone = tz_info.name
77
+ end
78
+
73
79
  def extend_controller_methods
74
80
  require "sentry/rails/controller_methods"
75
81
  require "sentry/rails/controller_transaction"
@@ -1,5 +1,5 @@
1
1
  module Sentry
2
2
  module Rails
3
- VERSION = "5.13.0"
3
+ VERSION = "5.16.1"
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.13.0"
26
+ spec.add_dependency "sentry-ruby", "~> 5.16.1"
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.13.0
4
+ version: 5.16.1
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-11-09 00:00:00.000000000 Z
11
+ date: 2024-01-09 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.13.0
33
+ version: 5.16.1
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.13.0
40
+ version: 5.16.1
41
41
  description: A gem that provides Rails integration for the Sentry error logger
42
42
  email: accounts@sentry.io
43
43
  executables: []