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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1b38c992f363a4bca3ee27a5f6c33d5512dd76d134f47db1cd2b56cfa433c3e4
4
- data.tar.gz: f071efc562e0f0bd4549d9ebaeb7b23a886b629dab68bf01a0e7f21a81b82ac6
3
+ metadata.gz: ea637a7b6239a6e228de7f98860427f9688184709e48543590f372c8bcd2d57c
4
+ data.tar.gz: e7bc63d30c136ea1d99fd6758b24d82c95757255607171e3dd619c0f53252ed8
5
5
  SHA512:
6
- metadata.gz: cc485b5172365cc9bb88655d9cdc904c4a0929151be800b426e2004f3bcb9a6aa70aa967cd900c9b5d22bf680e686445d5d23435ccc29d3644a132a2763dcfe0
7
- data.tar.gz: bf649dcdec1cf137c24a42fdd77469c79a0eb47c3e1d059f404a4508e31e2f7f3c54d3ea27f3123216851990999387ff289f34668e0887f8e4a13b0e608ab9a2
6
+ metadata.gz: 3eb3f4d04a225659584e7c0b22c71478a3494591b0f8a3ec97f08cfbfc0a8f006929343e0e59cc772b9bed8f5197909ad0712a4065c127d99efdcd43b112d3f1
7
+ data.tar.gz: 25a57f8304b995f9ac2c73313eec271838d381ceb76a11e43787e7ac4cbeeab24c505c325ba43aa9a6aa511e6eaccab1ccbb4070573d0e5642ce18b4daa19056
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## Rails 7.1.1 (October 11, 2023) ##
2
+
3
+ * Don't log enqueuing details when the job wasn't enqueued.
4
+
5
+ *Dustin Brown*
6
+
7
+
1
8
  ## Rails 7.1.0 (October 05, 2023) ##
2
9
 
3
10
  * No changes.
@@ -9,7 +9,7 @@ module ActiveJob
9
9
  module VERSION
10
10
  MAJOR = 7
11
11
  MINOR = 1
12
- TINY = 0
12
+ TINY = 1
13
13
  PRE = nil
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
@@ -76,7 +76,9 @@ module ActiveJob
76
76
  def perform_start(event)
77
77
  info do
78
78
  job = event.payload[:job]
79
- "Performing #{job.class.name} (Job ID: #{job.job_id}) from #{queue_name(event)} enqueued at #{job.enqueued_at.utc.iso8601(9)}" + args_info(job)
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
- # Specifies the queue adapter to use with all Active Job test helpers.
58
- #
59
- # Returns an instance of the queue adapter and defaults to
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 run jobs enqueued to run
604
- # immediately or before the given time
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 an adapter other than the test adapter is in use, this method just yields.
607
- # See queue_adapter_for_test for more information.
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.0
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-05 00:00:00.000000000 Z
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.0
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.0
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.0/activejob/CHANGELOG.md
106
- documentation_uri: https://api.rubyonrails.org/v7.1.0/
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.0/activejob
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: []