honeybadger 6.5.4 → 6.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 571dc332260b16e09a566f0ee42ebf8ed956321dcac363c6646279d6024a04ea
4
- data.tar.gz: e71439a2d19c1d4752538db619e39ae48c7661cf82922aaba659c980cb7f9d89
3
+ metadata.gz: 32b6968a27f3e3c308b19652275db73fb2b3a5479350208de10cee284b20a242
4
+ data.tar.gz: 62f11e347123c65354d985e0c4d3136910571e00bc72f196adb5908a13c254c6
5
5
  SHA512:
6
- metadata.gz: 420e92bb6025dd883b7914738ae38e83b06a412f6d15bc12266f89e8f738c285fe94a83c94231fefead1e968daf043574af2e62e27b066e7aa150edc2bd83580
7
- data.tar.gz: 6e9bfd5f2ff420c0bb80846417d7c5485c547312db6e3c84a2c6a5830d2e5ffbee6d89b524e1a9e42fe46ed0b7624b5839d45525992951503ff45e7c67ea3af5
6
+ metadata.gz: ac81d07e6fe9da9694e1cdcd822666fd86415e5a6a64b51e3a1060aec9d738d8036a0c2b11fbea1d10253f77a270939bbf254cab99035db646b674bbdbc8de7d
7
+ data.tar.gz: b2d6e2772c34584f945c04f616cfba2d012198bed14a79b8c4932809c2fb3cfe38bd982e4aced65eb4bf5a8614c6c659e0c52a58f960112b799ceae9687a2d2e
data/CHANGELOG.md CHANGED
@@ -1,6 +1,21 @@
1
1
  # Change Log
2
2
 
3
3
 
4
+ ## [6.5.6](https://github.com/honeybadger-io/honeybadger-ruby/compare/v6.5.5...v6.5.6) (2026-05-04)
5
+
6
+
7
+ ### Bug Fixes
8
+
9
+ * attach environment and hostname to metric events ([#815](https://github.com/honeybadger-io/honeybadger-ruby/issues/815)) ([0762115](https://github.com/honeybadger-io/honeybadger-ruby/commit/0762115e6f396e4d2d5389394c845b75dc1796c8))
10
+
11
+ ## [6.5.5](https://github.com/honeybadger-io/honeybadger-ruby/compare/v6.5.4...v6.5.5) (2026-04-08)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * preserve API key path segment when parsing check_in URLs ([#803](https://github.com/honeybadger-io/honeybadger-ruby/issues/803)) ([229bbd2](https://github.com/honeybadger-io/honeybadger-ruby/commit/229bbd2895475c44180d71df64bc848ca130afe9))
17
+ * remove Sidekiq server configuration from payloads ([#768](https://github.com/honeybadger-io/honeybadger-ruby/issues/768)) ([2425c6b](https://github.com/honeybadger-io/honeybadger-ruby/commit/2425c6b9917fd63f66c5c9562ea9b76d4e4d1f24)), closes [#767](https://github.com/honeybadger-io/honeybadger-ruby/issues/767)
18
+
4
19
  ## [6.5.4](https://github.com/honeybadger-io/honeybadger-ruby/compare/v6.5.3...v6.5.4) (2026-04-06)
5
20
 
6
21
 
@@ -205,8 +205,12 @@ module Honeybadger
205
205
  # @return [Boolean] true if the check in was successful and false
206
206
  # otherwise.
207
207
  def check_in(id)
208
- # this is to allow check ins even if a url is passed
209
- check_in_id = id.to_s.strip.gsub(/\/$/, "").split("/").last
208
+ id_str = id.to_s.strip.gsub(/\/$/, "")
209
+ check_in_id = if id_str.include?("/check_in/")
210
+ id_str.sub(%r{.*/check_in/}, "")
211
+ else
212
+ id_str.split("/").last
213
+ end
210
214
  response = backend.check_in(check_in_id)
211
215
  response.success?
212
216
  end
@@ -23,11 +23,11 @@ module Honeybadger
23
23
  @event_type = event_type_or_payload
24
24
  @payload = payload
25
25
  elsif event_type_or_payload.is_a?(Hash)
26
- @event_type = event_type_or_payload[:event_type] || event_type_or_payload["event_type"]
27
- @payload = event_type_or_payload
26
+ @payload = payload.merge(event_type_or_payload)
27
+ @event_type = @payload[:event_type] || @payload["event_type"]
28
28
  end
29
29
 
30
- @ts = payload[:ts] || Time.now.utc.strftime("%FT%T.%LZ")
30
+ @ts = @payload[:ts] || Time.now.utc.strftime("%FT%T.%LZ")
31
31
  @halted = false
32
32
  end
33
33
 
@@ -84,18 +84,8 @@ module Honeybadger
84
84
 
85
85
  if defined?(::Sidekiq::VERSION) && ::Sidekiq::VERSION > "3"
86
86
  ::Sidekiq.configure_server do |sidekiq|
87
- sidekiq_default_configuration = (::Sidekiq::VERSION > "7") ?
88
- ::Sidekiq.default_configuration : Class.new
89
-
90
- sidekiq.error_handlers << lambda { |ex, sidekiq_params, sidekiq_config = sidekiq_default_configuration|
87
+ sidekiq.error_handlers << lambda { |ex, sidekiq_params, _sidekiq_config = nil|
91
88
  params = sidekiq_params.dup
92
- if defined?(::Sidekiq::Config)
93
- params[:_config] = if params[:_config].is_a?(::Sidekiq::Config) # Sidekiq > 6 and < 7.1.5
94
- params[:_config].instance_variable_get(:@options)
95
- else # Sidekiq >= 7.1.5
96
- sidekiq_config.instance_variable_get(:@options)
97
- end
98
- end
99
89
 
100
90
  job = params[:job] || params
101
91
 
@@ -143,6 +133,7 @@ module Honeybadger
143
133
 
144
134
  class SidekiqClusterCollectionChecker
145
135
  include ::Sidekiq::Component
136
+
146
137
  def initialize(config)
147
138
  @config = config
148
139
  end
@@ -1,4 +1,4 @@
1
1
  module Honeybadger
2
2
  # The current String Honeybadger version.
3
- VERSION = "6.5.4".freeze
3
+ VERSION = "6.5.6".freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: honeybadger
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.5.4
4
+ version: 6.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Honeybadger Industries LLC