activejob 7.1.0 → 7.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/active_job/gem_version.rb +1 -1
- data/lib/active_job/log_subscriber.rb +3 -1
- data/lib/active_job/test_helper.rb +9 -13
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea637a7b6239a6e228de7f98860427f9688184709e48543590f372c8bcd2d57c
|
4
|
+
data.tar.gz: e7bc63d30c136ea1d99fd6758b24d82c95757255607171e3dd619c0f53252ed8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3eb3f4d04a225659584e7c0b22c71478a3494591b0f8a3ec97f08cfbfc0a8f006929343e0e59cc772b9bed8f5197909ad0712a4065c127d99efdcd43b112d3f1
|
7
|
+
data.tar.gz: 25a57f8304b995f9ac2c73313eec271838d381ceb76a11e43787e7ac4cbeeab24c505c325ba43aa9a6aa511e6eaccab1ccbb4070573d0e5642ce18b4daa19056
|
data/CHANGELOG.md
CHANGED
@@ -76,7 +76,9 @@ module ActiveJob
|
|
76
76
|
def perform_start(event)
|
77
77
|
info do
|
78
78
|
job = event.payload[:job]
|
79
|
-
|
79
|
+
enqueue_info = job.enqueued_at.present? ? " enqueued at #{job.enqueued_at.utc.iso8601(9)}" : ""
|
80
|
+
|
81
|
+
"Performing #{job.class.name} (Job ID: #{job.job_id}) from #{queue_name(event)}" + enqueue_info + args_info(job)
|
80
82
|
end
|
81
83
|
end
|
82
84
|
subscribe_log_level :perform_start, :info
|
@@ -54,15 +54,10 @@ module ActiveJob
|
|
54
54
|
queue_adapter_changed_jobs.each { |klass| klass.disable_test_adapter }
|
55
55
|
end
|
56
56
|
|
57
|
-
#
|
58
|
-
#
|
59
|
-
#
|
60
|
-
# ActiveJob::QueueAdapters::TestAdapter.
|
61
|
-
#
|
62
|
-
# Note: The adapter provided by this method must provide some additional
|
63
|
-
# methods from those expected of a standard ActiveJob::QueueAdapter
|
64
|
-
# in order to be used with the active job test helpers. Refer to
|
65
|
-
# ActiveJob::QueueAdapters::TestAdapter.
|
57
|
+
# Returns a queue adapter instance to use with all Active Job test helpers.
|
58
|
+
# By default, returns an instance of ActiveJob::QueueAdapters::TestAdapter.
|
59
|
+
# Override this method to specify a different adapter. The adapter must
|
60
|
+
# implement the same interface as ActiveJob::QueueAdapters::TestAdapter.
|
66
61
|
def queue_adapter_for_test
|
67
62
|
ActiveJob::QueueAdapters::TestAdapter.new
|
68
63
|
end
|
@@ -600,11 +595,12 @@ module ActiveJob
|
|
600
595
|
# assert_performed_jobs 1
|
601
596
|
# end
|
602
597
|
#
|
603
|
-
# If the +:at+ option is specified, then only
|
604
|
-
#
|
598
|
+
# If the +:at+ option is specified, then only jobs that have been enqueued
|
599
|
+
# to run at or before the given time will be performed. This includes jobs
|
600
|
+
# that have been enqueued without a time.
|
605
601
|
#
|
606
|
-
# If
|
607
|
-
#
|
602
|
+
# If queue_adapter_for_test is overridden to return a different adapter,
|
603
|
+
# +perform_enqueued_jobs+ will merely execute the block.
|
608
604
|
def perform_enqueued_jobs(only: nil, except: nil, queue: nil, at: nil, &block)
|
609
605
|
return flush_enqueued_jobs(only: only, except: except, queue: queue, at: at) unless block_given?
|
610
606
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activejob
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.1.
|
4
|
+
version: 7.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-10-
|
11
|
+
date: 2023-10-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 7.1.
|
19
|
+
version: 7.1.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 7.1.
|
26
|
+
version: 7.1.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: globalid
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -102,10 +102,10 @@ licenses:
|
|
102
102
|
- MIT
|
103
103
|
metadata:
|
104
104
|
bug_tracker_uri: https://github.com/rails/rails/issues
|
105
|
-
changelog_uri: https://github.com/rails/rails/blob/v7.1.
|
106
|
-
documentation_uri: https://api.rubyonrails.org/v7.1.
|
105
|
+
changelog_uri: https://github.com/rails/rails/blob/v7.1.1/activejob/CHANGELOG.md
|
106
|
+
documentation_uri: https://api.rubyonrails.org/v7.1.1/
|
107
107
|
mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
|
108
|
-
source_code_uri: https://github.com/rails/rails/tree/v7.1.
|
108
|
+
source_code_uri: https://github.com/rails/rails/tree/v7.1.1/activejob
|
109
109
|
rubygems_mfa_required: 'true'
|
110
110
|
post_install_message:
|
111
111
|
rdoc_options: []
|