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 +4 -4
- data/CHANGELOG.md +9 -3
- data/README.md +1 -1
- data/lib/active_job/base.rb +2 -2
- data/lib/active_job/configured_job.rb +0 -4
- data/lib/active_job/core.rb +11 -3
- data/lib/active_job/exceptions.rb +2 -1
- data/lib/active_job/gem_version.rb +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd83b074127046f406525380f3021fae2cd3ddb36ce9ae8ef44768e63a315b39
|
4
|
+
data.tar.gz: 6df6eb7459e16314d5819aac1966f9ecf596ed17c5590d4229b92de444f70d4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d59029dbd69e9b803af9319161888de3569574b6105e0550bda39f0632b7686f97fbac1c0f4694c00b7e9d76bc17f70570a88e7262ae1c5a6864d810fbce02e8
|
7
|
+
data.tar.gz: c7ac883680b1cbe1f7da6b6aa9243ae33dbed2c296ebdaba279349af6f87fe6b9fbf148923f849e578deb76fe4804d401c632bbaac2860f0cbd6bbe458fc90c4
|
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,15 @@
|
|
1
|
-
## Rails 8.0.
|
1
|
+
## Rails 8.0.3 (September 22, 2025) ##
|
2
2
|
|
3
|
-
*
|
3
|
+
* Include the actual Active Job locale when serializing rather than I18n locale.
|
4
4
|
|
5
|
+
*Adrien S*
|
5
6
|
|
6
|
-
|
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
|
129
|
+
Feature requests should be discussed on the rubyonrails-core forum here:
|
130
130
|
|
131
131
|
* https://discuss.rubyonrails.org/c/rubyonrails-core
|
data/lib/active_job/base.rb
CHANGED
@@ -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
|
#
|
data/lib/active_job/core.rb
CHANGED
@@ -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 =
|
161
|
-
self.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
|
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.
|
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.
|
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.
|
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.
|
107
|
-
documentation_uri: https://api.rubyonrails.org/v8.0.
|
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.
|
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:
|