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 +4 -4
- data/CHANGELOG.md +12 -0
- data/lib/ez_logs_agent/capturers/active_job_capturer.rb +8 -3
- data/lib/ez_logs_agent/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3edfe639cbf53d13c7b902ae2795687878c6898affaac8cd1b2d4610d9e357ae
|
|
4
|
+
data.tar.gz: ceef7660ed54a8693e8090d03acae9bdc524b4c6993c810f2fda5507a0e691e3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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
|