activejob 7.1.0.rc2 → 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: d95076eb165c16b44e30c4f98c72bce402b3124c5754e76ad6b86f1e4e02b81e
4
- data.tar.gz: e9f4bb0bd99471a34abd21723776a66913b593c605dcd8f84079c029f74cfbc7
3
+ metadata.gz: ea637a7b6239a6e228de7f98860427f9688184709e48543590f372c8bcd2d57c
4
+ data.tar.gz: e7bc63d30c136ea1d99fd6758b24d82c95757255607171e3dd619c0f53252ed8
5
5
  SHA512:
6
- metadata.gz: 70fc9872437f7ebb6161686b3b4ed66acd79e8d1b3e750f84384f1818ea213c0a1b038a9b435cc6c727790eb2334d7ea2458810e90b321485b25dec6c6c3d944
7
- data.tar.gz: ea5ae1a2c0ae70db9c44935f7da32344fd84519de9e7b570815f7194e0b780a6c9aba811128a8740fbefac252e2844760bf7c6aec62653fc84dc86f24fdf8adb
6
+ metadata.gz: 3eb3f4d04a225659584e7c0b22c71478a3494591b0f8a3ec97f08cfbfc0a8f006929343e0e59cc772b9bed8f5197909ad0712a4065c127d99efdcd43b112d3f1
7
+ data.tar.gz: 25a57f8304b995f9ac2c73313eec271838d381ceb76a11e43787e7ac4cbeeab24c505c325ba43aa9a6aa511e6eaccab1ccbb4070573d0e5642ce18b4daa19056
data/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
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
+
8
+ ## Rails 7.1.0 (October 05, 2023) ##
9
+
10
+ * No changes.
11
+
12
+
1
13
  ## Rails 7.1.0.rc2 (October 01, 2023) ##
2
14
 
3
15
  * Make sure `scheduled_at` is a Time object when asserting enqueued jobs.
@@ -9,8 +9,8 @@ module ActiveJob
9
9
  module VERSION
10
10
  MAJOR = 7
11
11
  MINOR = 1
12
- TINY = 0
13
- PRE = "rc2"
12
+ TINY = 1
13
+ PRE = nil
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
@@ -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.rc2
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-01 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.rc2
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.rc2
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.rc2/activejob/CHANGELOG.md
106
- documentation_uri: https://api.rubyonrails.org/v7.1.0.rc2/
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.rc2/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: []
@@ -118,9 +118,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
118
118
  version: 2.7.0
119
119
  required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  requirements:
121
- - - ">"
121
+ - - ">="
122
122
  - !ruby/object:Gem::Version
123
- version: 1.3.1
123
+ version: '0'
124
124
  requirements: []
125
125
  rubygems_version: 3.4.18
126
126
  signing_key: