sentry-ruby 4.1.5.pre.beta.0 → 4.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -1
  3. metadata +7 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 86308e7f3445ce4567e7bf20e9d6d4ded1388fc8b1ddcb38a0b3e75d5c31952f
4
- data.tar.gz: c02aa2dee269bf6d5be4518e3c7fdef9003bd57cac8fb80bdb165db81ac96351
3
+ metadata.gz: 7cdabfd3ae3762fc2940760298daa15499a136d1cd71cca9f4e0bb64e30ee68e
4
+ data.tar.gz: 282e1a0bbfa3b45f5d4ecad1d8a30630e27b8d1eeb965a11eeaaf4dd110b70c6
5
5
  SHA512:
6
- metadata.gz: a72d696a63fbe3a766b6d44f75af5dc85dc6f401b3a197c7dbcca10bf13d69510961aa5cc382b3f05caba069b9188dd95abebb2b46fbdf790eb144ff6b85bae7
7
- data.tar.gz: dd3cb8715eb0d69d29efa54373ee876182e1688f8bf05d03c7e987ee911995ea5e241720caa8d5b8bfb37adc3b73687a87e807c194f7421f286f6320adacd8f4
6
+ metadata.gz: 259c3b62a98ff599bb79f836ccf161149e4fe63da5e186f1d596c8e511d2861aeb197e57b9c142abc89171f4366ea70d4a5d0c489b0ff7c7bd9b935656eadc96
7
+ data.tar.gz: 8d2feeec4eb23fd6fbf6090e7084494921365a3401a11ba5f6b5b8d9826d9199719bb80bbec1a048694cf1320fa9f389ce77969ff743320338645deb5b7f82c0
data/README.md CHANGED
@@ -28,6 +28,8 @@ The official Ruby-language client and integration layer for the [Sentry](https:/
28
28
 
29
29
  We test on Ruby 2.4, 2.5, 2.6 and 2.7 at the latest patchlevel/teeny version. We also support JRuby 9.0.
30
30
 
31
+ If you use self-hosted Sentry, please also make sure its version is above `20.6.0`.
32
+
31
33
  ## Migrate From sentry-raven
32
34
 
33
35
  If you're using `sentry-raven`, we recommend you to migrate to this new SDK. You can find the benefits of migrating and how to do it in our [migration guide](https://docs.sentry.io/platforms/ruby/migration/).
@@ -158,6 +160,7 @@ config.async = lambda { |event, hint| SentryJob.perform_later(event, hint) }
158
160
 
159
161
  class SentryJob < ActiveJob::Base
160
162
  queue_as :default
163
+ discard_on ActiveJob::DeserializationError # this will prevent infinite loop when there's an issue deserializing SentryJob
161
164
 
162
165
  def perform(event, hint)
163
166
  Sentry.send_event(event, hint)
@@ -165,8 +168,13 @@ class SentryJob < ActiveJob::Base
165
168
  end
166
169
  ```
167
170
 
171
+ If you also use `sentry-rails`, you can directly use the job we defined for you:
172
+
173
+ ```ruby
174
+ config.async = lambda { |event, hint| Sentry::SendEventJob.perform_later(event, hint) }
175
+ ```
168
176
 
169
- **After version 4.1.0**, `sentry-ruby` sends events asynchronously by default. The functionality works like this:
177
+ **After version 4.1.0**, `sentry-ruby` sends events asynchronously by default. The functionality works like this:
170
178
 
171
179
  1. When the SDK is initialized, a `Sentry::BackgroundWorker` will be initialized too.
172
180
  2. When an event is passed to `Client#capture_event`, instead of sending it directly with `Client#send_event`, we'll let the worker do it.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sentry-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.5.pre.beta.0
4
+ version: 4.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sentry Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-21 00:00:00.000000000 Z
11
+ date: 2021-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sentry-ruby-core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 4.1.5.pre.beta.0
19
+ version: 4.2.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 4.1.5.pre.beta.0
26
+ version: 4.2.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: faraday
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -74,7 +74,7 @@ licenses:
74
74
  metadata:
75
75
  homepage_uri: https://github.com/getsentry/sentry-ruby
76
76
  source_code_uri: https://github.com/getsentry/sentry-ruby
77
- changelog_uri: https://github.com/getsentry/sentry-ruby/blob/master/CHANGELOG.md
77
+ changelog_uri: https://github.com/getsentry/sentry-ruby/blob/master/sentry-ruby/CHANGELOG.md
78
78
  post_install_message:
79
79
  rdoc_options: []
80
80
  require_paths:
@@ -86,9 +86,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
86
86
  version: '2.4'
87
87
  required_rubygems_version: !ruby/object:Gem::Requirement
88
88
  requirements:
89
- - - ">"
89
+ - - ">="
90
90
  - !ruby/object:Gem::Version
91
- version: 1.3.1
91
+ version: '0'
92
92
  requirements: []
93
93
  rubygems_version: 3.0.3
94
94
  signing_key: