exception_handling 3.1.1 → 3.1.2

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: a8107c2d7f6cf04a39a6f642eb27b327d605eb2fdd2e04762d248ab577b45e02
4
- data.tar.gz: e9cfa08279d74c8a40b05ca29bd3129d621d89447c1d981e6443d23454e51822
3
+ metadata.gz: 2233f129161cf047d7859362e4801aab61ee8f5c6a91224733b92c5c0222120c
4
+ data.tar.gz: 16c764f0a44dac9de1774cdc5716a81e80488664f7b5e2d658dd2435f8dcfc8b
5
5
  SHA512:
6
- metadata.gz: 2773644ac06df5431f1a7b0c523beebae6168361a807453a1727d3b2d53dacb29fc8a07f9e362dcc4bc5140dae8cbc513bec5a1d3aea3584b4c91c08301f0ce2
7
- data.tar.gz: 05eeae5bd5a88bd9388802b9351d5a3d1810ed1ce97bf2399513947e2c9ae3ca7536ffdd68ea0febc48ecdfa369ddfa44b6c98237aed46fff58bded2f33b8817
6
+ metadata.gz: acd751fa75679ea47611198b450caa91a2d46e9b36766f070d8344a499370004da310b54df8b841220fe74a35b36498317cdf7a333d84c7c7abcc374ef95ef17
7
+ data.tar.gz: 25af611bb83d53bd23e038f38b5a5bf33f99b166d14e4dfd080a4824429b1d334a57560c8e739a6e6b5fdc4aa9776f6c18a0110b1452f08345ea2d3647d8104a
@@ -0,0 +1,26 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: bundler
4
+ directory: "/"
5
+ registries: "*"
6
+ schedule:
7
+ interval: weekly
8
+ day: monday
9
+ time: "08:00"
10
+ timezone: PST8PDT
11
+ open-pull-requests-limit: 10
12
+ versioning-strategy: auto
13
+ commit-message:
14
+ prefix: non-production
15
+ include: scope
16
+ groups:
17
+ minor-patch-versions: # Group together minor / patch updates.
18
+ applies-to: "version-updates"
19
+ update-types:
20
+ - "minor"
21
+ - "patch"
22
+ minor-patch-security:
23
+ applies-to: "security-updates"
24
+ update-types:
25
+ - "minor"
26
+ - "patch"
@@ -0,0 +1,17 @@
1
+ name: Dependabot auto-merge
2
+ on: pull_request
3
+
4
+ permissions:
5
+ contents: write
6
+ pull-requests: write
7
+
8
+ jobs:
9
+ dependabot:
10
+ runs-on: ubuntu-latest
11
+ if: github.actor == 'dependabot[bot]'
12
+ steps:
13
+ - name: Enable auto-merge for Dependabot PRs
14
+ run: gh pr merge --auto --merge "$PR_URL"
15
+ env:
16
+ PR_URL: ${{github.event.pull_request.html_url}}
17
+ GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
@@ -11,18 +11,10 @@ jobs:
11
11
  ruby: [2.7, '3.0', 3.1, 3.2, 3.3]
12
12
  gemfile:
13
13
  - Gemfile
14
- - gemfiles/rails_5.gemfile
15
- - gemfiles/rails_6.gemfile
16
- - gemfiles/rails_7.gemfile
17
- exclude:
18
- - gemfile: gemfiles/rails_5.gemfile
19
- ruby: '3.0'
20
- - gemfile: gemfiles/rails_5.gemfile
21
- ruby: 3.1
22
- - gemfile: gemfiles/rails_5.gemfile
23
- ruby: 3.2
24
- - gemfile: gemfiles/rails_5.gemfile
25
- ruby: 3.3
14
+ - gemfiles/rails_6_0.gemfile
15
+ - gemfiles/rails_6_1.gemfile
16
+ - gemfiles/rails_7_0.gemfile
17
+ - gemfiles/rails_7_1.gemfile
26
18
  env:
27
19
  BUNDLE_GEMFILE: ${{ matrix.gemfile }}
28
20
  steps:
data/Appraisals CHANGED
@@ -1,13 +1,17 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- appraise "rails-5" do
4
- gem 'activesupport', '~> 5.2'
3
+ appraise "rails-6-0" do
4
+ gem 'activesupport', '~> 6.0.0'
5
5
  end
6
6
 
7
- appraise "rails-6" do
8
- gem 'activesupport', '~> 6.0'
7
+ appraise "rails-6-1" do
8
+ gem 'activesupport', '~> 6.1.0'
9
9
  end
10
10
 
11
- appraise "rails-7" do
12
- gem 'activesupport', '~> 7.0'
11
+ appraise "rails-7-0" do
12
+ gem 'activesupport', '~> 7.0.0'
13
+ end
14
+
15
+ appraise "rails-7-1" do
16
+ gem 'activesupport', '~> 7.1.0'
13
17
  end
data/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@ Inspired by [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
4
4
 
5
5
  **Note:** this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [3.1.2] - 2024-05-08
8
+ ### Fixed
9
+ - Fixed deprecation warnings that were coming from usage of `silence` when using this gem with Rails 7.1
10
+
7
11
  ## [3.1.1] - 2024-03-19
8
12
  ### Changed
9
13
  - Changed how the `honeybadger_tag_from_log_context` to now combine the tag name with the value using a colon `:` instead of two hyphens `--`.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- exception_handling (3.1.1)
4
+ exception_handling (3.1.2)
5
5
  activesupport (>= 5.2)
6
6
  contextual_logger (~> 1.0)
7
7
  escalate (~> 0.3)
@@ -11,86 +11,98 @@ PATH
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
- activesupport (6.0.4.7)
14
+ activesupport (7.1.3.2)
15
+ base64
16
+ bigdecimal
15
17
  concurrent-ruby (~> 1.0, >= 1.0.2)
16
- i18n (>= 0.7, < 2)
17
- minitest (~> 5.1)
18
- tzinfo (~> 1.1)
19
- zeitwerk (~> 2.2, >= 2.2.2)
18
+ connection_pool (>= 2.2.5)
19
+ drb
20
+ i18n (>= 1.6, < 2)
21
+ minitest (>= 5.1)
22
+ mutex_m
23
+ tzinfo (~> 2.0)
20
24
  appraisal (2.5.0)
21
25
  bundler
22
26
  rake
23
27
  thor (>= 0.14.0)
24
- ast (2.4.0)
28
+ ast (2.4.2)
29
+ base64 (0.2.0)
30
+ bigdecimal (3.1.8)
25
31
  byebug (11.1.3)
26
32
  coderay (1.1.3)
27
- concurrent-ruby (1.1.10)
28
- contextual_logger (1.3.0)
29
- activesupport (< 7.1)
33
+ concurrent-ruby (1.2.3)
34
+ connection_pool (2.4.1)
35
+ contextual_logger (1.2.0)
36
+ activesupport
30
37
  json
31
- diff-lcs (1.5.0)
38
+ diff-lcs (1.5.1)
39
+ drb (2.2.1)
32
40
  escalate (0.3.0)
33
41
  gem-release (2.2.2)
34
- honeybadger (4.11.0)
35
- i18n (1.10.0)
42
+ honeybadger (4.12.2)
43
+ i18n (1.14.5)
36
44
  concurrent-ruby (~> 1.0)
37
45
  invoca-utils (0.5.1)
38
46
  activesupport (>= 5.0)
39
- json (2.7.1)
40
- method_source (1.0.0)
41
- minitest (5.15.0)
42
- parallel (1.17.0)
43
- parser (2.7.1.3)
44
- ast (~> 2.4.0)
47
+ json (2.7.2)
48
+ language_server-protocol (3.17.0.3)
49
+ method_source (1.1.0)
50
+ minitest (5.22.3)
51
+ mutex_m (0.2.0)
52
+ parallel (1.24.0)
53
+ parser (3.3.1.0)
54
+ ast (~> 2.4.1)
55
+ racc
45
56
  power_assert (2.0.3)
46
57
  pry (0.14.2)
47
58
  coderay (~> 1.1)
48
59
  method_source (~> 1.0)
49
- pry-byebug (3.8.0)
60
+ pry-byebug (3.10.1)
50
61
  byebug (~> 11.0)
51
- pry (~> 0.10)
62
+ pry (>= 0.13, < 0.15)
52
63
  psych (5.1.2)
53
64
  stringio
54
- rainbow (3.0.0)
55
- rake (13.0.1)
65
+ racc (1.7.3)
66
+ rainbow (3.1.1)
67
+ rake (13.2.1)
56
68
  regexp_parser (2.9.0)
57
69
  rexml (3.2.6)
58
- rspec (3.9.0)
59
- rspec-core (~> 3.9.0)
60
- rspec-expectations (~> 3.9.0)
61
- rspec-mocks (~> 3.9.0)
62
- rspec-core (3.9.3)
63
- rspec-support (~> 3.9.3)
64
- rspec-expectations (3.9.2)
70
+ rspec (3.13.0)
71
+ rspec-core (~> 3.13.0)
72
+ rspec-expectations (~> 3.13.0)
73
+ rspec-mocks (~> 3.13.0)
74
+ rspec-core (3.13.0)
75
+ rspec-support (~> 3.13.0)
76
+ rspec-expectations (3.13.0)
65
77
  diff-lcs (>= 1.2.0, < 2.0)
66
- rspec-support (~> 3.9.0)
67
- rspec-mocks (3.9.1)
78
+ rspec-support (~> 3.13.0)
79
+ rspec-mocks (3.13.0)
68
80
  diff-lcs (>= 1.2.0, < 2.0)
69
- rspec-support (~> 3.9.0)
70
- rspec-support (3.9.4)
81
+ rspec-support (~> 3.13.0)
82
+ rspec-support (3.13.1)
71
83
  rspec_junit_formatter (0.6.0)
72
84
  rspec-core (>= 2, < 4, != 2.12.0)
73
- rubocop (0.89.0)
85
+ rubocop (1.63.4)
86
+ json (~> 2.3)
87
+ language_server-protocol (>= 3.17.0)
74
88
  parallel (~> 1.10)
75
- parser (>= 2.7.1.1)
89
+ parser (>= 3.3.0.2)
76
90
  rainbow (>= 2.2.2, < 4.0)
77
- regexp_parser (>= 1.7)
78
- rexml
79
- rubocop-ast (>= 0.1.0, < 1.0)
91
+ regexp_parser (>= 1.8, < 3.0)
92
+ rexml (>= 3.2.5, < 4.0)
93
+ rubocop-ast (>= 1.31.1, < 2.0)
80
94
  ruby-progressbar (~> 1.7)
81
- unicode-display_width (>= 1.4.0, < 2.0)
82
- rubocop-ast (0.2.0)
83
- parser (>= 2.7.0.1)
95
+ unicode-display_width (>= 2.4.0, < 3.0)
96
+ rubocop-ast (1.31.3)
97
+ parser (>= 3.3.1.0)
84
98
  ruby-progressbar (1.13.0)
85
99
  stringio (3.1.0)
86
- test-unit (3.6.1)
100
+ test-unit (3.6.2)
87
101
  power_assert
88
- thor (1.0.1)
89
- thread_safe (0.3.6)
90
- tzinfo (1.2.9)
91
- thread_safe (~> 0.1)
92
- unicode-display_width (1.6.0)
93
- zeitwerk (2.5.4)
102
+ thor (1.3.1)
103
+ tzinfo (2.0.6)
104
+ concurrent-ruby (~> 1.0)
105
+ unicode-display_width (2.5.0)
94
106
 
95
107
  PLATFORMS
96
108
  ruby
@@ -2,8 +2,9 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "activesupport", "~> 5.2"
5
+ gem "activesupport", "~> 6.0.0"
6
6
  gem "appraisal", "~> 2.2"
7
+ gem "gem-release"
7
8
  gem "honeybadger", "~> 4.11"
8
9
  gem "pry"
9
10
  gem "pry-byebug"
@@ -2,8 +2,9 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "activesupport", "~> 6.0"
5
+ gem "activesupport", "~> 6.1.0"
6
6
  gem "appraisal", "~> 2.2"
7
+ gem "gem-release"
7
8
  gem "honeybadger", "~> 4.11"
8
9
  gem "pry"
9
10
  gem "pry-byebug"
@@ -2,8 +2,9 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "activesupport", "~> 7.0"
5
+ gem "activesupport", "~> 7.0.0"
6
6
  gem "appraisal", "~> 2.2"
7
+ gem "gem-release"
7
8
  gem "honeybadger", "~> 4.11"
8
9
  gem "pry"
9
10
  gem "pry-byebug"
@@ -0,0 +1,17 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activesupport", "~> 7.1.0"
6
+ gem "appraisal", "~> 2.2"
7
+ gem "gem-release"
8
+ gem "honeybadger", "~> 4.11"
9
+ gem "pry"
10
+ gem "pry-byebug"
11
+ gem "rake"
12
+ gem "rspec"
13
+ gem "rspec_junit_formatter"
14
+ gem "rubocop"
15
+ gem "test-unit"
16
+
17
+ gemspec path: "../"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ExceptionHandling
4
- VERSION = '3.1.1'
4
+ VERSION = '3.1.2'
5
5
  end
@@ -192,7 +192,7 @@ module ExceptionHandling # never included
192
192
  # Write an exception out to the log file using our own custom format.
193
193
  #
194
194
  def write_exception_to_log(ex, exception_context, timestamp, log_context = {})
195
- ActiveSupport::Deprecation.silence do
195
+ with_deprecations_silenced do
196
196
  log_message = "#{exception_context}\n#{ex.class}: (#{encode_utf8(ex.message.to_s)}):\n " + clean_backtrace(ex).join("\n ") + "\n\n"
197
197
 
198
198
  if ex.is_a?(Warning)
@@ -352,6 +352,14 @@ module ExceptionHandling # never included
352
352
 
353
353
  private
354
354
 
355
+ def with_deprecations_silenced(&block)
356
+ if ActiveSupport.version >= Gem::Version.new('7.1.0')
357
+ ActiveSupport.deprecator.silence(&block)
358
+ else
359
+ ActiveSupport::Deprecation.silence(&block)
360
+ end
361
+ end
362
+
355
363
  # @param exception_info [ExceptionInfo]
356
364
  #
357
365
  # @return [Array<String>]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exception_handling
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1
4
+ version: 3.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Invoca
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-19 00:00:00.000000000 Z
11
+ date: 2024-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -88,6 +88,8 @@ extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
90
  - ".github/CODEOWNERS"
91
+ - ".github/dependabot.yml"
92
+ - ".github/workflows/dependabot_automerge.yml"
91
93
  - ".github/workflows/pipeline.yml"
92
94
  - ".gitignore"
93
95
  - ".rspec"
@@ -103,9 +105,10 @@ files:
103
105
  - Rakefile
104
106
  - config/exception_filters.yml
105
107
  - exception_handling.gemspec
106
- - gemfiles/rails_5.gemfile
107
- - gemfiles/rails_6.gemfile
108
- - gemfiles/rails_7.gemfile
108
+ - gemfiles/rails_6_0.gemfile
109
+ - gemfiles/rails_6_1.gemfile
110
+ - gemfiles/rails_7_0.gemfile
111
+ - gemfiles/rails_7_1.gemfile
109
112
  - lib/exception_handling.rb
110
113
  - lib/exception_handling/escalate_callback.rb
111
114
  - lib/exception_handling/exception_catalog.rb
@@ -146,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
149
  - !ruby/object:Gem::Version
147
150
  version: '0'
148
151
  requirements: []
149
- rubygems_version: 3.3.7
152
+ rubygems_version: 3.4.21
150
153
  signing_key:
151
154
  specification_version: 4
152
155
  summary: Invoca's exception handling logger layer, based on exception_notifier.