exception_handling 3.1.0.pre.2 → 3.1.0.pre.3

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: 31594865f3096183f28bd10c1310bbca3df0170b97b09f51dd1231f02736e50f
4
- data.tar.gz: 0b638eff8f75896da524b9c1ced003e72e95b5576c0dcba7db0e1e2c8f80b5e8
3
+ metadata.gz: 7aff231e873dafc7b83dc6964ecdf114b2835274eb9f89bddbcdc1ae63bbc60a
4
+ data.tar.gz: 2e222182ea8bbd8e58367a3d8d25bd1b8e98537613beeefe1b5a54276d81126b
5
5
  SHA512:
6
- metadata.gz: 5300573e63bd5d9039676ab35b4299812d0a870f60eb63b6039546df8eecdc92d30931537e96a4105295968b87183746d46abeaaa67cdd47d94bd347d8b7631b
7
- data.tar.gz: 444bde3024de65b88ea660392c22dd624298c362e96a2af8ad4a94fd3f6513d7ed6f32709cdc9244cd8532410529cd0b923f9cb4086e7faf2e2c11a571116bf0
6
+ metadata.gz: 7b7c9465523f12ffec924d1bee6ca90f56effedb6a89d5b34c5a33550fe79003b294c3662a7e8500c5a3d570973b61daea2123c6868afc367d244ec3ce952d9b
7
+ data.tar.gz: a3e8b41353b6711916152d04f474734d04fc41b8384eff0debbae0d16884dab7bd7f266a1042f2f688765b2d3ab71653ffe1432116fbeaf71d122786c767fe87
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- exception_handling (3.1.0.pre.2)
4
+ exception_handling (3.1.0.pre.3)
5
5
  activesupport (>= 5.2)
6
6
  contextual_logger (~> 1.0)
7
7
  escalate (~> 0.3)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ExceptionHandling
4
- VERSION = '3.1.0.pre.2'
4
+ VERSION = '3.1.0.pre.3'
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.2
4
+ version: 3.1.0.pre.3
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