exception_handling 3.1.0.pre.tstarck.2 → 3.1.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: 2b3c85b3faec57b40c8bfc019759a154c1c5fecf6f98366fb3afdb362b0494d6
4
- data.tar.gz: a560619e54e1556483609a9771f8ea0f81ce1fb074802b6e9db51d3f14edba43
3
+ metadata.gz: e619b34f5cd132a9ded02fce1be65833465be407a3238107bdd4df7a9c361ddd
4
+ data.tar.gz: aceeffa2a29bfacd76f7bde369ca1983bb36a8f077d08d9c140b755d188d472a
5
5
  SHA512:
6
- metadata.gz: 9a5925753dd29aa55e4d2c8275fcd5b457f7530309ba95d4f657e6afa7447b5e24d448ca2fd3383fb9599b7aa3b536c21004a87a8fc7b6ea28f9d9b2e63a3349
7
- data.tar.gz: 81bf2bb4fced6b18987ddd9254918bbf22e8586ffa626d9608107275ef7766474906b5a45f9760f3f88cf7a1808e10f413d8021c48108800b8f045dc2578258d
6
+ metadata.gz: ad914730d551f98251d760d171fbaf74ffe9aa7c52ffc8c51c9e27dba74b77496c0c545f69b642f4bfeecca3ead9b6531c49d9c7410b3d829bf6df4df54a7a65
7
+ data.tar.gz: 2212b464deb413f632bc66b81273eb3016a4e9c36cf33496316fd1da27a973891000258e0ceea249d00b5b7e44495e4479bbc74eb3c8283765c881e6706db555
data/CHANGELOG.md CHANGED
@@ -4,7 +4,7 @@ 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.0] - Unreleased
7
+ ## [3.1.0] - 2024-03-12
8
8
  ### Added
9
9
  - Add interface for tagging exceptions sent to honeybadger with values from the log context.
10
10
  - `ExceptionHandling.add_honeybadger_tag_from_log_context`
@@ -12,6 +12,10 @@ Inspired by [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
12
12
  ### Changed
13
13
  - Require ruby version 2.7 or greater
14
14
 
15
+ ## [3.0.1] - 2024-03-07
16
+ ### Changed
17
+ - Allow newer versions of the `psych` gem to be used to avoid conflicts with the default version pulled in by ruby 3.2+
18
+
15
19
  ## [3.0.0] - 2024-03-01
16
20
  ### Added
17
21
  - Added explicit testing and support for Ruby 3.2 and 3.3
data/Gemfile CHANGED
@@ -6,6 +6,7 @@ gemspec
6
6
 
7
7
  gem 'activesupport'
8
8
  gem 'appraisal', '~> 2.2'
9
+ gem 'gem-release'
9
10
  gem 'honeybadger', '~> 4.11'
10
11
  gem 'pry'
11
12
  gem 'pry-byebug'
data/Gemfile.lock CHANGED
@@ -1,12 +1,12 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- exception_handling (3.1.0.pre.tstarck.2)
4
+ exception_handling (3.1.0)
5
5
  activesupport (>= 5.2)
6
6
  contextual_logger (~> 1.0)
7
7
  escalate (~> 0.3)
8
8
  invoca-utils (~> 0.3)
9
- psych (~> 3.0)
9
+ psych (>= 3.2)
10
10
 
11
11
  GEM
12
12
  remote: https://rubygems.org/
@@ -30,6 +30,7 @@ GEM
30
30
  json
31
31
  diff-lcs (1.5.0)
32
32
  escalate (0.3.0)
33
+ gem-release (2.2.2)
33
34
  honeybadger (4.11.0)
34
35
  i18n (1.10.0)
35
36
  concurrent-ruby (~> 1.0)
@@ -41,14 +42,15 @@ GEM
41
42
  parallel (1.17.0)
42
43
  parser (2.7.1.3)
43
44
  ast (~> 2.4.0)
44
- power_assert (1.2.0)
45
+ power_assert (2.0.3)
45
46
  pry (0.14.2)
46
47
  coderay (~> 1.1)
47
48
  method_source (~> 1.0)
48
49
  pry-byebug (3.8.0)
49
50
  byebug (~> 11.0)
50
51
  pry (~> 0.10)
51
- psych (3.3.4)
52
+ psych (5.1.2)
53
+ stringio
52
54
  rainbow (3.0.0)
53
55
  rake (13.0.1)
54
56
  regexp_parser (2.9.0)
@@ -80,6 +82,7 @@ GEM
80
82
  rubocop-ast (0.2.0)
81
83
  parser (>= 2.7.0.1)
82
84
  ruby-progressbar (1.13.0)
85
+ stringio (3.1.0)
83
86
  test-unit (3.6.1)
84
87
  power_assert
85
88
  thor (1.0.1)
@@ -96,6 +99,7 @@ DEPENDENCIES
96
99
  activesupport
97
100
  appraisal (~> 2.2)
98
101
  exception_handling!
102
+ gem-release
99
103
  honeybadger (~> 4.11)
100
104
  pry
101
105
  pry-byebug
@@ -1,4 +1,4 @@
1
- --- !map:HashWithIndifferentAccess
1
+ ---
2
2
  Test Exception:
3
3
  error: "Some Exception"
4
4
  notes: "this is used by a test"
@@ -25,5 +25,5 @@ Gem::Specification.new do |spec|
25
25
  spec.add_dependency 'contextual_logger', '~> 1.0'
26
26
  spec.add_dependency 'escalate', '~> 0.3'
27
27
  spec.add_dependency 'invoca-utils', '~> 0.3'
28
- spec.add_dependency 'psych', '~> 3.0'
28
+ spec.add_dependency 'psych', '>= 3.2'
29
29
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ExceptionHandling
4
- VERSION = '3.1.0.pre.tstarck.2'
4
+ VERSION = '3.1.0'
5
5
  end
@@ -379,7 +379,7 @@ module ExceptionHandling # never included
379
379
  if @honeybadger_log_context_tags
380
380
  @honeybadger_log_context_tags.map do |tag_name, tag_path|
381
381
  if (value_from_log_context = honeybadger_context_data.dig(:log_context, *tag_path))
382
- "#{tag_name}:#{value_from_log_context}"
382
+ "#{tag_name}--#{value_from_log_context}"
383
383
  end
384
384
  end.compact
385
385
  else
@@ -1091,7 +1091,7 @@ describe ExceptionHandling do
1091
1091
  context "when error is logged within a log context that matches the path" do
1092
1092
  it "notifies honeybadger with the tags from the log context" do
1093
1093
  ExceptionHandling.logger.with_context("kubernetes" => { "context" => "local" }) do
1094
- expect(Honeybadger).to receive(:notify).with(hash_including({ tags: "kubernetes_context:local" }))
1094
+ expect(Honeybadger).to receive(:notify).with(hash_including({ tags: "kubernetes_context--local" }))
1095
1095
  ExceptionHandling.log_error(StandardError.new("Error"), nil)
1096
1096
  end
1097
1097
  end
@@ -1123,7 +1123,7 @@ describe ExceptionHandling do
1123
1123
  end
1124
1124
 
1125
1125
  it "combines all the tags from different sources" do
1126
- expect(Honeybadger).to receive(:notify).with(hash_including({ tags: "auto-tag inline-tag log-context:tag" }))
1126
+ expect(Honeybadger).to receive(:notify).with(hash_including({ tags: "auto-tag inline-tag log-context--tag" }))
1127
1127
  ExceptionHandling.logger.with_context("inside" => { "context" => "tag" }) do
1128
1128
  log_error
1129
1129
  end
@@ -1133,7 +1133,7 @@ describe ExceptionHandling do
1133
1133
  let(:inline_tags) { ["auto-tag"] }
1134
1134
 
1135
1135
  it "notifies honeybadger with the set of tags" do
1136
- expect(Honeybadger).to receive(:notify).with(hash_including({ tags: "auto-tag log-context:tag" }))
1136
+ expect(Honeybadger).to receive(:notify).with(hash_including({ tags: "auto-tag log-context--tag" }))
1137
1137
  ExceptionHandling.logger.with_context("inside" => { "context" => "tag" }) do
1138
1138
  log_error
1139
1139
  end
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.0.pre.tstarck.2
4
+ version: 3.1.0
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-05 00:00:00.000000000 Z
11
+ date: 2024-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -70,16 +70,16 @@ dependencies:
70
70
  name: psych
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '3.0'
75
+ version: '3.2'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: '3.0'
82
+ version: '3.2'
83
83
  description: Exception handling logger
84
84
  email:
85
85
  - development@invoca.com
@@ -142,9 +142,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
142
142
  version: '2.7'
143
143
  required_rubygems_version: !ruby/object:Gem::Requirement
144
144
  requirements:
145
- - - ">"
145
+ - - ">="
146
146
  - !ruby/object:Gem::Version
147
- version: 1.3.1
147
+ version: '0'
148
148
  requirements: []
149
149
  rubygems_version: 3.3.7
150
150
  signing_key: