aws-activejob-sqs 1.1.0 → 1.1.1

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: d1b770d150d33bd540df6ee1c10c1546ccd93590d7ad09706856e60f6b6cae47
4
- data.tar.gz: 38cb019b97c6b630d396116b105a6c8df30c9f16318cf82cccd25f8f85fef587
3
+ metadata.gz: 733e9f1e9e56f0bf7052035f5b983890a9a29ddc67d668b5a83e609411151375
4
+ data.tar.gz: cb5c4d63e714b6abbf79c947a39c2f2176fd1be5631baf775383ac2d3f01e7f8
5
5
  SHA512:
6
- metadata.gz: 8a4fe7cc814506be5d6b667e44150c5abf6fd7badfaa565fc448bb976380e16ac594abc601333571faebc6ac964c885a98eebb67722476885f9f4d8d2ca01282
7
- data.tar.gz: b4986768479fb9e0a92db2769a3a19b576184bcefe6491abe4aa501568d9aa8672988847587741cf391e4062d514a5f85a66f45919bdb7a8e13c8ebf026f7066
6
+ metadata.gz: 789be54e545ee534377e3e2129911a35a789df7f5b6de0791f075e21beb8f5fcbc804430f2f4b98518ea97559939453594d8f8f47724c0f6f475410456f1d247
7
+ data.tar.gz: ebb107e7a92d5ec1643f709b6d913ea8a47ee712e70981760ab87517e28c0c9673a4aa5d79f4d99b229e3799a12825744d846388e6fcddb721b96a57d395c052
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ 1.1.1 (2026-08-12)
2
+ ------------------
3
+
4
+ * Issue - Fixed an empty or blank `job_class_allowlist` causing every job to be rejected and deleted. A blank allowlist is now treated as no allowlist, so all jobs run.
5
+
1
6
  1.1.0 (2026-08-11)
2
7
  ------------------
3
8
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.1.1
@@ -151,11 +151,15 @@ module Aws
151
151
  # Using this option, job_id is implicitly added to the keys.
152
152
  #
153
153
  # @option options [Array<Class, String>, String, nil] :job_class_allowlist (nil)
154
- # An optional list of job classes permitted to be executed. When set,
155
- # only classes in this list are dispatched; when nil, any class
154
+ # An optional list of job classes permitted to be executed. When set
155
+ # to a non-empty list, only classes in it are dispatched and any
156
+ # other class is rejected; when nil, blank, or empty, any class
156
157
  # inheriting from ActiveJob::Base is allowed. Entries may be Class
157
158
  # objects or class name Strings (in code/YAML), or a comma-separated
158
- # String of class names (from ENV), and are compared by class name.
159
+ # String of class names (from ENV), and are compared by class name. A
160
+ # blank or empty value (a declared-but-empty environment variable or
161
+ # an empty list) is treated the same as unset, allowing all classes,
162
+ # not as "allow nothing".
159
163
 
160
164
  def initialize(options = {})
161
165
  opts = env_options.deep_merge(options)
@@ -78,8 +78,11 @@ module Aws
78
78
  # (from ENV). Normalize all forms to an Array of class name Strings.
79
79
  def normalized_allowlist
80
80
  allowlist = Aws::ActiveJob::SQS.config.job_class_allowlist
81
+ return if allowlist.nil?
82
+
81
83
  allowlist = allowlist.split(',') if allowlist.is_a?(String)
82
- allowlist&.map { |entry| entry.to_s.strip }
84
+ normalized = allowlist.map { |entry| entry.to_s.strip }.reject(&:empty?)
85
+ normalized unless normalized.empty?
83
86
  end
84
87
  end
85
88
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-activejob-sqs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services