gruf-sentry 1.3.0 → 1.5.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: a8f10ec71ba89c2017838ec9e941e6c5354a5c0a1b0a0e05bc8ef8848c3f5474
4
- data.tar.gz: e033a3f5aa0bd78cf8a2c037e96f4ef150f2c0378776b2d752b30a01befdb01e
3
+ metadata.gz: 5369fef092491cd23da94619257a183c88414261091327a313f3f7d3e5744837
4
+ data.tar.gz: 2742fac0bbe38bdf883b1366eefc956da98dde4ae81b5b095c6c534d1f582086
5
5
  SHA512:
6
- metadata.gz: 1cf64ae2a61837767c73775b613a3ad00e578dd8e76956180a12b75f78443c63cf6612f044ae713d1ae0d61c8ea12581a2638740c5db6bc624ef5364d94fd429
7
- data.tar.gz: c9ee9ba9753a5c7f36a0945d1a3bc9342c2476013e1e1299dba4b6d496fec3894bb80f3fa50cff732445fc3f8d14773b6e6a2851185a315e060353836f715669
6
+ metadata.gz: 8ee4d80327c4d59d055aac94fe10729c0fbcceb0296f6aa2285c7e6933c20db79147aa3e637de9f6c5c3ae74ddf59d1397fff8d03b2589ae63404075b9b8f140
7
+ data.tar.gz: ce6c54043f602d6afda9c5239b116dc297556ed3a93608c24a31d3a9038bb4baa99f6224cb0d9fde8413cccd5692cf967028840229f6a378bc913f19d0a86f9b
data/CHANGELOG.md CHANGED
@@ -2,35 +2,45 @@ Changelog for the gruf-sentry gem.
2
2
 
3
3
  ### Pending release
4
4
 
5
+ ### 1.5.0
6
+
7
+ - Add support for Ruby 3.2
8
+ - Drop support for Ruby 2.7 (EOL March 2023)
9
+
10
+ ### 1.4.0
11
+
12
+ * Remove `GRPC::FailedPrecondition` from default error classes (equivalent is HTTP 412, so not an internal error)
13
+ * Remove `Raven` compatibility layer; you must be on sentry-ruby now
14
+
5
15
  ### 1.3.0
6
16
 
7
- - Upgrade to sentry-ruby 5.x
17
+ * Upgrade to sentry-ruby 5.x
8
18
 
9
19
  ### 1.2.0
10
20
 
11
- - Add Ruby 3.1 support
12
- - Drop Ruby 2.6 support
21
+ * Add Ruby 3.1 support
22
+ * Drop Ruby 2.6 support
13
23
 
14
24
  ### 1.1.0
15
25
 
16
- - Update Gruf::Sentry::ClientInterceptor for new sentry-ruby format
26
+ * Update Gruf::Sentry::ClientInterceptor for new sentry-ruby format
17
27
 
18
28
  ### 1.0.1
19
29
 
20
- - Update Sentry.capture_exception to work with new sentry-ruby format
30
+ * Update Sentry.capture_exception to work with new sentry-ruby format
21
31
 
22
32
  ### 1.0.0
23
33
 
24
- - Update to sentry-ruby
34
+ * Update to sentry-ruby
25
35
 
26
36
  ### 0.2.0
27
37
 
28
- - Add support for Ruby 3.0
29
- - Remove support for < Ruby 2.6
38
+ * Add support for Ruby 3.0
39
+ * Remove support for < Ruby 2.6
30
40
 
31
41
  ### 0.1.1
32
42
 
33
- - Fix issue with options reference in ErrorParser [#1]
43
+ * Fix issue with options reference in ErrorParser [#1]
34
44
 
35
45
  ### 0.1.0
36
46
 
data/gruf-sentry.gemspec CHANGED
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
30
30
  spec.description = spec.summary
31
31
  spec.homepage = 'https://github.com/bigcommerce/gruf-sentry'
32
32
 
33
- spec.required_ruby_version = '>= 2.7'
33
+ spec.required_ruby_version = '>= 3.0', '< 4'
34
34
 
35
35
  spec.files = Dir['README.md', 'CHANGELOG.md', 'CODE_OF_CONDUCT.md', 'lib/**/*', 'gruf-sentry.gemspec']
36
36
  spec.require_paths = ['lib']
@@ -24,7 +24,7 @@ module Gruf
24
24
  VALID_CONFIG_KEYS = {
25
25
  grpc_error_classes: ::ENV.fetch(
26
26
  'GRUF_SENTRY_GRPC_ERROR_CLASSES',
27
- 'GRPC::Unknown,GRPC::Internal,GRPC::DataLoss,GRPC::FailedPrecondition,GRPC::Unavailable,GRPC::DeadlineExceeded,GRPC::Cancelled'
27
+ 'GRPC::Unknown,GRPC::Internal,GRPC::DataLoss,GRPC::Unavailable,GRPC::DeadlineExceeded,GRPC::Cancelled'
28
28
  ).to_s.split(',').map(&:strip),
29
29
  default_error_code: ::ENV.fetch('GRUF_SENTRY_DEFAULT_ERROR_CODE', GRPC::Core::StatusCodes::INTERNAL).to_i,
30
30
  ignore_methods: ::ENV.fetch('GRUF_SENTRY_IGNORE_METHODS', '').split(',').map(&:strip) || []
@@ -17,6 +17,6 @@
17
17
  #
18
18
  module Gruf
19
19
  module Sentry
20
- VERSION = '1.3.0'
20
+ VERSION = '1.5.0'
21
21
  end
22
22
  end
data/lib/gruf/sentry.rb CHANGED
@@ -18,9 +18,6 @@
18
18
  require 'gruf'
19
19
  require 'sentry-ruby'
20
20
 
21
- # backwards-compatibly patch for sentry-raven users
22
- ::Raven = ::Sentry unless defined?(::Raven)
23
-
24
21
  # use Zeitwerk to lazily autoload all the files in the lib directory
25
22
  require 'zeitwerk'
26
23
  root_path = File.dirname(__dir__)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gruf-sentry
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shaun McCormick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-05 00:00:00.000000000 Z
11
+ date: 2023-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler-audit
@@ -186,14 +186,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
186
186
  requirements:
187
187
  - - ">="
188
188
  - !ruby/object:Gem::Version
189
- version: '2.7'
189
+ version: '3.0'
190
+ - - "<"
191
+ - !ruby/object:Gem::Version
192
+ version: '4'
190
193
  required_rubygems_version: !ruby/object:Gem::Requirement
191
194
  requirements:
192
195
  - - ">="
193
196
  - !ruby/object:Gem::Version
194
197
  version: '0'
195
198
  requirements: []
196
- rubygems_version: 3.3.4
199
+ rubygems_version: 3.4.1
197
200
  signing_key:
198
201
  specification_version: 4
199
202
  summary: Automatically report gruf failures as sentry errors