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 +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws/active_job/sqs/configuration.rb +7 -3
- data/lib/aws/active_job/sqs/job_runner.rb +4 -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: 733e9f1e9e56f0bf7052035f5b983890a9a29ddc67d668b5a83e609411151375
|
|
4
|
+
data.tar.gz: cb5c4d63e714b6abbf79c947a39c2f2176fd1be5631baf775383ac2d3f01e7f8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 789be54e545ee534377e3e2129911a35a789df7f5b6de0791f075e21beb8f5fcbc804430f2f4b98518ea97559939453594d8f8f47724c0f6f475410456f1d247
|
|
7
|
+
data.tar.gz: ebb107e7a92d5ec1643f709b6d913ea8a47ee712e70981760ab87517e28c0c9673a4aa5d79f4d99b229e3799a12825744d846388e6fcddb721b96a57d395c052
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
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
|
|
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
|
|
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
|