ez_logs_agent 0.1.3 → 0.1.4

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: 3d6d21c6716856cbf2ff0bf1763565fa2f2aef94802ff9ada561fbba3839cdcb
4
- data.tar.gz: 3b0555da8da3a83642314babea1671846ae958f2b20ccafbf0959d2ca0d0e5f6
3
+ metadata.gz: 3edfe639cbf53d13c7b902ae2795687878c6898affaac8cd1b2d4610d9e357ae
4
+ data.tar.gz: ceef7660ed54a8693e8090d03acae9bdc524b4c6993c810f2fda5507a0e691e3
5
5
  SHA512:
6
- metadata.gz: ee5df5ac6dac348c9a19ef586d5539b0589a5f22ec9be5f94ddbd2025c733939b1dcd506dd9abd1af939e80d97840b0cc089e084d8f607a1b9687084f4c213c3
7
- data.tar.gz: 510b88d85e9a8c8e62360cb219e642b24aa60c77799eccd0c9df64ae47bdfcfd5ff65d54b8b3e25b2f42ae8bc300bda4d1ff1086d1ca7b053a24b69d59667088
6
+ metadata.gz: db1c93abdea22ac379936498fee9c9d873f676741e704267898890ad83324dd0f2b26cc0e0c12a0713f6e8ed4b1e0f7535baab8650b17b088c666a45947a18b8
7
+ data.tar.gz: 50d06b7f6035e01032f4d6066ed9477304851d7273ad25c352719c66be5e6f1ba0f641aad8e8710df754f4bed6b8e205524ae424037af16756af7f9f8297778b
data/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [0.1.4] — 2026-05-17
6
+
7
+ ### Fixed
8
+ - `ActiveJobCapturer#sidekiq_adapter?` no longer triggers Rails to
9
+ autoload `ActiveJob::QueueAdapters::SidekiqAdapter`. Rails registers
10
+ that constant for lazy autoload even when sidekiq isn't in the host's
11
+ bundle; the old `is_a?` check forced the adapter file to load, which
12
+ `require`s sidekiq and raised `Gem::LoadError: sidekiq is not part of
13
+ the bundle` on every job run for hosts using SolidQueue, GoodJob, or
14
+ any other non-Sidekiq adapter. The check now compares the adapter
15
+ class name string and never references the constant.
16
+
5
17
  ## [0.1.3] — 2026-05-17
6
18
 
7
19
  ### Fixed
@@ -176,12 +176,17 @@ module EzLogsAgent
176
176
 
177
177
  # Checks if job uses Sidekiq adapter.
178
178
  #
179
+ # Compares by class name string rather than `is_a?` against the
180
+ # SidekiqAdapter constant. Rails registers `ActiveJob::QueueAdapters::SidekiqAdapter`
181
+ # for lazy autoload even when sidekiq isn't in the bundle; touching
182
+ # the constant triggers Zeitwerk to load the adapter file, which
183
+ # `require`s sidekiq and raises Gem::LoadError on hosts running a
184
+ # different adapter (e.g. SolidQueue).
185
+ #
179
186
  # @param job [ActiveJob::Base] The job instance
180
187
  # @return [Boolean] true if Sidekiq adapter, false otherwise
181
188
  def sidekiq_adapter?(job)
182
- return false unless defined?(ActiveJob::QueueAdapters::SidekiqAdapter)
183
-
184
- job.class.queue_adapter.is_a?(ActiveJob::QueueAdapters::SidekiqAdapter)
189
+ job.class.queue_adapter.class.name == "ActiveJob::QueueAdapters::SidekiqAdapter"
185
190
  rescue StandardError
186
191
  false
187
192
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EzLogsAgent
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ez_logs_agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - dezsirazvan