activejob 7.1.0 → 7.1.2

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: 06565d1267b4596e11732d12bd80c67c2c56804d5dc147e8d95aaa4e6ae76377
4
+ data.tar.gz: da0d32071a22e4db4011275e44c1feddba2a5812686c0ff5e8f813bdfc05e49e
5
5
  SHA512:
6
- metadata.gz: cc485b5172365cc9bb88655d9cdc904c4a0929151be800b426e2004f3bcb9a6aa70aa967cd900c9b5d22bf680e686445d5d23435ccc29d3644a132a2763dcfe0
7
- data.tar.gz: bf649dcdec1cf137c24a42fdd77469c79a0eb47c3e1d059f404a4508e31e2f7f3c54d3ea27f3123216851990999387ff289f34668e0887f8e4a13b0e608ab9a2
6
+ metadata.gz: 68d94c0c68bb56b61f558c8e03df5c888c1968348512995f00ea40dbb5eb84776244ace807e764573da394c2b4b9631c01dff57f14f4c8a64ccdf3ad9974c0d3
7
+ data.tar.gz: 13d3f3921e071c93e7b22b02338b616663a6fb79284cec4a3bce01caef46974f704cc660bb1da8801627584538baa11f74eca5c3ffe30abc669c9196faa254f7
data/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## Rails 7.1.2 (November 10, 2023) ##
2
+
3
+ * No changes.
4
+
5
+
6
+ ## Rails 7.1.1 (October 11, 2023) ##
7
+
8
+ * Don't log enqueuing details when the job wasn't enqueued.
9
+
10
+ *Dustin Brown*
11
+
12
+
1
13
  ## Rails 7.1.0 (October 05, 2023) ##
2
14
 
3
15
  * No changes.
@@ -98,7 +98,7 @@ module ActiveJob
98
98
  Primitive serialization of BigDecimal job arguments is deprecated as it may serialize via .to_s using certain queue adapters.
99
99
  Enable config.active_job.use_big_decimal_serializer to use BigDecimalSerializer instead, which will be mandatory in Rails 7.2.
100
100
 
101
- Note that if you application has multiple replicas, you should only enable this setting after successfully deploying your app to Rails 7.1 first.
101
+ Note that if your application has multiple replicas, you should only enable this setting after successfully deploying your app to Rails 7.1 first.
102
102
  This will ensure that during your deployment all replicas are capable of deserializing arguments serialized with BigDecimalSerializer.
103
103
  MSG
104
104
  return argument
@@ -9,7 +9,7 @@ module ActiveJob
9
9
  module VERSION
10
10
  MAJOR = 7
11
11
  MINOR = 1
12
- TINY = 0
12
+ TINY = 2
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
@@ -33,7 +33,7 @@ module ActiveJob
33
33
  delay = timestamp - Time.current.to_f
34
34
  JobWrapper.perform_in delay, job.serialize
35
35
  else
36
- raise NotImplementedError, "sucker_punch 1.0 does not support `enqueued_at`. Please upgrade to version ~> 2.0.0 to enable this behavior."
36
+ raise NotImplementedError, "sucker_punch 1.0 does not support `enqueue_at`. Please upgrade to version ~> 2.0.0 to enable this behavior."
37
37
  end
38
38
  end
39
39
 
@@ -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.2
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-11-10 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.2
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.2
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.2/activejob/CHANGELOG.md
106
+ documentation_uri: https://api.rubyonrails.org/v7.1.2/
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.2/activejob
109
109
  rubygems_mfa_required: 'true'
110
110
  post_install_message:
111
111
  rdoc_options: []