sentry-rails 5.15.1 → 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: c29c319098ff3e3c26aabb5bda0ce2d43b4a0e55736a6c27705dcec4b9a4048b
4
- data.tar.gz: ad4574fdc69a4fcf10cf9bcfda0a83a9b4d7301c200fcf67237839582335c1b2
3
+ metadata.gz: 7ee07f40f442adc566067614916895a02d753d2a44c518a78d78528c6d967e1e
4
+ data.tar.gz: 71004c34b4c2798d8022a3d11dbda9daf19f9f9a39a9d4b9a8bdac0332a0b39f
5
5
  SHA512:
6
- metadata.gz: 2fd6a85cf24071c88a2e5cd2cdb5f3bf5136c0a547611935f5f5e5d8bf465bb1cb92a4d65005f7163bbc4820c77ccff3b5735acc6b73d637b0351fa54c7d798e
7
- data.tar.gz: cb58a367507943d3f8182a7fcdd51615905bf1eefe4b993ee42864675a00e963c4911cc187b781968a3f1ff2ccd58ae62017f254acfd906a5cd406df3349f423
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")
@@ -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.15.1"
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.15.1"
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.15.1
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-12-14 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.15.1
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.15.1
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: []