activejob 7.1.0.rc1 → 7.1.0

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: 6afc607e83451a80e5538b8289eb78a3d4256a82648d2fc364c00b35d86652a1
4
- data.tar.gz: 66372474efc76dc1bcb4e4bc7e32bc6ccfbf62242bd394bfa0b6982a65a48133
3
+ metadata.gz: 1b38c992f363a4bca3ee27a5f6c33d5512dd76d134f47db1cd2b56cfa433c3e4
4
+ data.tar.gz: f071efc562e0f0bd4549d9ebaeb7b23a886b629dab68bf01a0e7f21a81b82ac6
5
5
  SHA512:
6
- metadata.gz: d3ec6a49ca490b307c258df58fa5d6885d7be0ecd3d7db615096a06696ea718e129002198603cd46be21a3c2c7e43146e22e0f3350da69c3a828945a3785cff8
7
- data.tar.gz: 1d051b0f106d489def667bf37f5801a452269742c25029fd392eb826a02830762730bae3fb556f8a175b79f91b57bb43e49c6d1f69d74ed4d40edea03abe2c1f
6
+ metadata.gz: cc485b5172365cc9bb88655d9cdc904c4a0929151be800b426e2004f3bcb9a6aa70aa967cd900c9b5d22bf680e686445d5d23435ccc29d3644a132a2763dcfe0
7
+ data.tar.gz: bf649dcdec1cf137c24a42fdd77469c79a0eb47c3e1d059f404a4508e31e2f7f3c54d3ea27f3123216851990999387ff289f34668e0887f8e4a13b0e608ab9a2
data/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## Rails 7.1.0 (October 05, 2023) ##
2
+
3
+ * No changes.
4
+
5
+
6
+ ## Rails 7.1.0.rc2 (October 01, 2023) ##
7
+
8
+ * Make sure `scheduled_at` is a Time object when asserting enqueued jobs.
9
+
10
+ *Rafael Mendonça França*
11
+
12
+
1
13
  ## Rails 7.1.0.rc1 (September 27, 2023) ##
2
14
 
3
15
  * Set `scheduled_at` attribute as a Time object instead of epoch seconds, and serialize and deserialize the value
@@ -21,6 +21,9 @@ module ActiveJob
21
21
  # You can also pass a block that'll be invoked if the retry attempts fail for custom logic rather than letting
22
22
  # the exception bubble up. This block is yielded with the job instance as the first and the error instance as the second parameter.
23
23
  #
24
+ # `retry_on` and `discard_on` handlers are searched from bottom to top, and up the class hierarchy. The handler of the first class for
25
+ # which <tt>exception.is_a?(klass)</tt> holds true is the one invoked, if any.
26
+ #
24
27
  # ==== Options
25
28
  # * <tt>:wait</tt> - Re-enqueues the job with a delay specified either in seconds (default: 3 seconds),
26
29
  # as a computing proc that takes the number of executions so far as an argument, or as a symbol reference of
@@ -87,6 +90,9 @@ module ActiveJob
87
90
  #
88
91
  # You can also pass a block that'll be invoked. This block is yielded with the job instance as the first and the error instance as the second parameter.
89
92
  #
93
+ # `retry_on` and `discard_on` handlers are searched from bottom to top, and up the class hierarchy. The handler of the first class for
94
+ # which <tt>exception.is_a?(klass)</tt> holds true is the one invoked, if any.
95
+ #
90
96
  # ==== Example
91
97
  #
92
98
  # class SearchIndexingJob < ActiveJob::Base
@@ -10,7 +10,7 @@ module ActiveJob
10
10
  MAJOR = 7
11
11
  MINOR = 1
12
12
  TINY = 0
13
- PRE = "rc1"
13
+ PRE = nil
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
@@ -730,7 +730,7 @@ module ActiveJob
730
730
 
731
731
  def instantiate_job(payload, skip_deserialize_arguments: false)
732
732
  job = payload[:job].deserialize(payload)
733
- job.scheduled_at = payload[:at] if payload.key?(:at)
733
+ job.scheduled_at = Time.at(payload[:at]) if payload.key?(:at)
734
734
  job.send(:deserialize_arguments_if_needed) unless skip_deserialize_arguments
735
735
  job
736
736
  end
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.rc1
4
+ version: 7.1.0
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-09-27 00:00:00.000000000 Z
11
+ date: 2023-10-05 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.rc1
19
+ version: 7.1.0
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.rc1
26
+ version: 7.1.0
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.rc1/activejob/CHANGELOG.md
106
- documentation_uri: https://api.rubyonrails.org/v7.1.0.rc1/
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/
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.rc1/activejob
108
+ source_code_uri: https://github.com/rails/rails/tree/v7.1.0/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: