activejob 7.2.2.2 → 7.2.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0a2390c1955018c6243653b53de10aa09d9ee14c8ceaffecd870a685eff4d78e
4
- data.tar.gz: db849d1f578ddea77262327b69dabe082e39fe97aa763e9c270d577267ac403a
3
+ metadata.gz: 4f76db92910f325154aa9d955728c51e2707232f2db258198ef3128d3f07ad26
4
+ data.tar.gz: 3c68ce1d7ff44d94a9c877923e8f82de2f747d1a889e57c2bed0bd4fc71a41d5
5
5
  SHA512:
6
- metadata.gz: 24bfa68902eefca79d00e99ad691c06ba9fe95fe991ed45ab169897faf40a0a631b9145a20ad94d3cf698c0258365e4115b20cb56820cffa5271be873442e9ff
7
- data.tar.gz: e8ef2ef58a11be2345d4e9ebbd9dd9fbbd56e402ac0c9e39330028c50f008fc65d49042e55f25e0419ef783b34ddd1ceb8d7d0253e0cc3e93b4cae1a4fd5bb82
6
+ metadata.gz: 8af4d3675c132bf94582a852445b7aca33b7fdd44bea30c17e6ac7823c12c5d8857e712dc7f487ce1f5ab2fec1445bd94b0556aad19af66ccf6c5190c7c9f3e8
7
+ data.tar.gz: 3560f91b6101294422260c4dfa4106d6588fccd7aa7b8ef94eaa3fbbf17b5380001ed6667d0619a68a6258612193c1677dd5e7e3a1613f9d1ff21368562687e8
data/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## Rails 7.2.3 (October 28, 2025) ##
2
+
3
+ * Include the actual Active Job locale when serializing rather than I18n locale.
4
+
5
+ *Adrien S*
6
+
7
+ * Avoid crashing in Active Job logger when logging enqueueing errors
8
+
9
+ `ActiveJob.perform_all_later` could fail with a `TypeError` when all
10
+ provided jobs failed to be enqueueed.
11
+
12
+ *Efstathios Stivaros*
13
+
14
+
1
15
  ## Rails 7.2.2.2 (August 13, 2025) ##
2
16
 
3
17
  * No changes.
@@ -86,7 +100,7 @@
86
100
 
87
101
  *Rafael Mendonça França*
88
102
 
89
- * Deprecate `Rails.application.config.active_job.use_big_decimal_serialize`.
103
+ * Deprecate `Rails.application.config.active_job.use_big_decimal_serializer`.
90
104
 
91
105
  *Rafael Mendonça França*
92
106
 
data/README.md CHANGED
@@ -126,6 +126,6 @@ Bug reports for the Ruby on \Rails project can be filed here:
126
126
 
127
127
  * https://github.com/rails/rails/issues
128
128
 
129
- Feature requests should be discussed on the rails-core mailing list here:
129
+ Feature requests should be discussed on the rubyonrails-core forum here:
130
130
 
131
131
  * https://discuss.rubyonrails.org/c/rubyonrails-core
@@ -40,7 +40,7 @@ module ActiveJob # :nodoc:
40
40
  # end
41
41
  #
42
42
  # Records that are passed in are serialized/deserialized using Global
43
- # ID. More information can be found in Arguments.
43
+ # ID. More information can be found in ActiveJob::Arguments.
44
44
  #
45
45
  # To enqueue a job to be performed as soon as the queuing system is free:
46
46
  #
@@ -50,7 +50,7 @@ module ActiveJob # :nodoc:
50
50
  #
51
51
  # ProcessPhotoJob.set(wait_until: Date.tomorrow.noon).perform_later(photo)
52
52
  #
53
- # More information can be found in ActiveJob::Core::ClassMethods#set
53
+ # More information can be found in ActiveJob::Core::ClassMethods#set.
54
54
  #
55
55
  # A job can also be processed immediately without sending to the queue:
56
56
  #
@@ -14,9 +14,5 @@ module ActiveJob
14
14
  def perform_later(...)
15
15
  @job_class.new(...).enqueue @options
16
16
  end
17
-
18
- def perform_all_later(multi_args)
19
- @job_class.perform_all_later(multi_args, options: @options)
20
- end
21
17
  end
22
18
  end
@@ -114,7 +114,7 @@ module ActiveJob
114
114
  "arguments" => serialize_arguments_if_needed(arguments),
115
115
  "executions" => executions,
116
116
  "exception_executions" => exception_executions,
117
- "locale" => I18n.locale.to_s,
117
+ "locale" => locale || I18n.locale.to_s,
118
118
  "timezone" => timezone,
119
119
  "enqueued_at" => Time.now.utc.iso8601(9),
120
120
  "scheduled_at" => scheduled_at ? scheduled_at.utc.iso8601(9) : nil,
@@ -150,7 +150,8 @@ module ActiveJob
150
150
  # end
151
151
  def retry_job(options = {})
152
152
  instrument :enqueue_retry, options.slice(:error, :wait) do
153
- enqueue options
153
+ job = dup
154
+ job.enqueue options
154
155
  end
155
156
  end
156
157
 
@@ -9,8 +9,8 @@ module ActiveJob
9
9
  module VERSION
10
10
  MAJOR = 7
11
11
  MINOR = 2
12
- TINY = 2
13
- PRE = "2"
12
+ TINY = 3
13
+ PRE = nil
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
@@ -50,7 +50,7 @@ module ActiveJob
50
50
  info do
51
51
  jobs = event.payload[:jobs]
52
52
  adapter = event.payload[:adapter]
53
- enqueued_count = event.payload[:enqueued_count]
53
+ enqueued_count = event.payload[:enqueued_count].to_i
54
54
 
55
55
  if enqueued_count == jobs.size
56
56
  enqueued_jobs_message(adapter, jobs)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activejob
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.2.2.2
4
+ version: 7.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - '='
17
17
  - !ruby/object:Gem::Version
18
- version: 7.2.2.2
18
+ version: 7.2.3
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - '='
24
24
  - !ruby/object:Gem::Version
25
- version: 7.2.2.2
25
+ version: 7.2.3
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: globalid
28
28
  requirement: !ruby/object:Gem::Requirement
@@ -103,10 +103,10 @@ licenses:
103
103
  - MIT
104
104
  metadata:
105
105
  bug_tracker_uri: https://github.com/rails/rails/issues
106
- changelog_uri: https://github.com/rails/rails/blob/v7.2.2.2/activejob/CHANGELOG.md
107
- documentation_uri: https://api.rubyonrails.org/v7.2.2.2/
106
+ changelog_uri: https://github.com/rails/rails/blob/v7.2.3/activejob/CHANGELOG.md
107
+ documentation_uri: https://api.rubyonrails.org/v7.2.3/
108
108
  mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
109
- source_code_uri: https://github.com/rails/rails/tree/v7.2.2.2/activejob
109
+ source_code_uri: https://github.com/rails/rails/tree/v7.2.3/activejob
110
110
  rubygems_mfa_required: 'true'
111
111
  rdoc_options: []
112
112
  require_paths: