activejob 8.0.2.1 → 8.0.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: 3c02e749103c9735fd2df2554980ae11eb1e79fe023f034528f6481f7d7b3bbd
4
- data.tar.gz: 4a8b3a0585aa1523ffd7404640ee7562f72ce85c1865c71da599b5c07136bcb6
3
+ metadata.gz: cd83b074127046f406525380f3021fae2cd3ddb36ce9ae8ef44768e63a315b39
4
+ data.tar.gz: 6df6eb7459e16314d5819aac1966f9ecf596ed17c5590d4229b92de444f70d4c
5
5
  SHA512:
6
- metadata.gz: 9a6c0e84aca264905887fce990ba85938abefd87c97f03eabbc821c114b515f0d2eb5b91c30fa5c83b6feafa60977dedd44e9fac11f22494574f4f37d04ebba6
7
- data.tar.gz: 03ae4188df409f83db411a67353cfcca270f39642a989ebd044d352ed6207e681f018fee9124aa812022c0e3be114ac749d5db6737f9756d763abd6a08efaa52
6
+ metadata.gz: d59029dbd69e9b803af9319161888de3569574b6105e0550bda39f0632b7686f97fbac1c0f4694c00b7e9d76bc17f70570a88e7262ae1c5a6864d810fbce02e8
7
+ data.tar.gz: c7ac883680b1cbe1f7da6b6aa9243ae33dbed2c296ebdaba279349af6f87fe6b9fbf148923f849e578deb76fe4804d401c632bbaac2860f0cbd6bbe458fc90c4
data/CHANGELOG.md CHANGED
@@ -1,9 +1,15 @@
1
- ## Rails 8.0.2.1 (August 13, 2025) ##
1
+ ## Rails 8.0.3 (September 22, 2025) ##
2
2
 
3
- * No changes.
3
+ * Include the actual Active Job locale when serializing rather than I18n locale.
4
4
 
5
+ *Adrien S*
5
6
 
6
- ## Rails 8.0.2 (March 12, 2025) ##
7
+ * Fix `retry_job` instrumentation when using `:test` adapter for Active Job.
8
+
9
+ *fatkodima*
10
+
11
+
12
+ ## Rails 8.0.2.1 (August 13, 2025) ##
7
13
 
8
14
  * No changes.
9
15
 
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,
@@ -157,8 +157,8 @@ module ActiveJob
157
157
  self.exception_executions = job_data["exception_executions"]
158
158
  self.locale = job_data["locale"] || I18n.locale.to_s
159
159
  self.timezone = job_data["timezone"] || Time.zone&.name
160
- self.enqueued_at = Time.iso8601(job_data["enqueued_at"]) if job_data["enqueued_at"]
161
- self.scheduled_at = Time.iso8601(job_data["scheduled_at"]) if job_data["scheduled_at"]
160
+ self.enqueued_at = deserialize_time(job_data["enqueued_at"]) if job_data["enqueued_at"]
161
+ self.scheduled_at = deserialize_time(job_data["scheduled_at"]) if job_data["scheduled_at"]
162
162
  end
163
163
 
164
164
  # Configures the job with the given options.
@@ -198,5 +198,13 @@ module ActiveJob
198
198
  def arguments_serialized?
199
199
  @serialized_arguments
200
200
  end
201
+
202
+ def deserialize_time(time)
203
+ if time.is_a?(Time)
204
+ time
205
+ else
206
+ Time.iso8601(time)
207
+ end
208
+ end
201
209
  end
202
210
  end
@@ -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 = 8
11
11
  MINOR = 0
12
- TINY = 2
13
- PRE = "1"
12
+ TINY = 3
13
+ PRE = nil
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
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: 8.0.2.1
4
+ version: 8.0.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: 8.0.2.1
18
+ version: 8.0.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: 8.0.2.1
25
+ version: 8.0.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/v8.0.2.1/activejob/CHANGELOG.md
107
- documentation_uri: https://api.rubyonrails.org/v8.0.2.1/
106
+ changelog_uri: https://github.com/rails/rails/blob/v8.0.3/activejob/CHANGELOG.md
107
+ documentation_uri: https://api.rubyonrails.org/v8.0.3/
108
108
  mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
109
- source_code_uri: https://github.com/rails/rails/tree/v8.0.2.1/activejob
109
+ source_code_uri: https://github.com/rails/rails/tree/v8.0.3/activejob
110
110
  rubygems_mfa_required: 'true'
111
111
  rdoc_options: []
112
112
  require_paths: