activejob 7.0.4.3 → 7.0.6
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 +26 -0
- data/README.md +2 -2
- data/lib/active_job/arguments.rb +1 -1
- data/lib/active_job/exceptions.rb +4 -3
- data/lib/active_job/execution.rb +6 -0
- data/lib/active_job/gem_version.rb +2 -2
- data/lib/active_job/queue_adapters/delayed_job_adapter.rb +2 -0
- data/lib/active_job/queue_name.rb +1 -2
- data/lib/active_job/railtie.rb +1 -1
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 273b70789f100959d303b4b290edc5e24c97dd8f7dfaeb6b5d14935fc720591a
|
4
|
+
data.tar.gz: 0e1de8c8b9fa20510f1a4a07f7f606dc191eaaf7d35fc52f78c0c3c29cb6ef22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e22c13a2f2b022ea98b5d525014f2c699c8a888ca34a26e8e937a07fcb9e5b0e125ecb6273841814f3158c6c3c88146902484ca1ee33202e1075942d84003324
|
7
|
+
data.tar.gz: 667204b55ba9fbabbf5dc2c69bd5bc861eaefb449702d30976874902164a2f3cf2f35ab84da2128aefd03e8648bffca788acfd546cd54c412aac69aa7ba08271
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,29 @@
|
|
1
|
+
## Rails 7.0.6 (June 29, 2023) ##
|
2
|
+
|
3
|
+
* Fix error Active Job passed class with `permitted?`.
|
4
|
+
|
5
|
+
*Alex Baldwin*
|
6
|
+
|
7
|
+
|
8
|
+
## Rails 7.0.5.1 (June 26, 2023) ##
|
9
|
+
|
10
|
+
* No changes.
|
11
|
+
|
12
|
+
|
13
|
+
## Rails 7.0.5 (May 24, 2023) ##
|
14
|
+
|
15
|
+
* Make delayed job `display_name` failsafe.
|
16
|
+
|
17
|
+
*codez*
|
18
|
+
|
19
|
+
* Don't double log the `job` when using `ActiveRecord::QueryLog`
|
20
|
+
|
21
|
+
Previously if you set `config.active_record.query_log_tags` to an array that included
|
22
|
+
`:job`, the job name would get logged twice. This bug has been fixed.
|
23
|
+
|
24
|
+
*Alex Ghiculescu*
|
25
|
+
|
26
|
+
|
1
27
|
## Rails 7.0.4.3 (March 13, 2023) ##
|
2
28
|
|
3
29
|
* No changes.
|
data/README.md
CHANGED
@@ -104,7 +104,7 @@ The latest version of Active Job can be installed with RubyGems:
|
|
104
104
|
$ gem install activejob
|
105
105
|
```
|
106
106
|
|
107
|
-
Source code can be downloaded as part of the Rails project on GitHub:
|
107
|
+
Source code can be downloaded as part of the \Rails project on GitHub:
|
108
108
|
|
109
109
|
* https://github.com/rails/rails/tree/main/activejob
|
110
110
|
|
@@ -122,7 +122,7 @@ API documentation is at:
|
|
122
122
|
|
123
123
|
* https://api.rubyonrails.org
|
124
124
|
|
125
|
-
Bug reports for the Ruby on Rails project can be filed here:
|
125
|
+
Bug reports for the Ruby on \Rails project can be filed here:
|
126
126
|
|
127
127
|
* https://github.com/rails/rails/issues
|
128
128
|
|
data/lib/active_job/arguments.rb
CHANGED
@@ -112,7 +112,7 @@ module ActiveJob
|
|
112
112
|
result = serialize_hash(argument)
|
113
113
|
result[aj_hash_key] = symbol_keys
|
114
114
|
result
|
115
|
-
when -> (arg) { arg.respond_to?(:permitted?) }
|
115
|
+
when -> (arg) { arg.respond_to?(:permitted?) && arg.respond_to?(:to_h) }
|
116
116
|
serialize_indifferent_hash(argument.to_h)
|
117
117
|
else
|
118
118
|
Serializers.serialize(argument)
|
@@ -100,9 +100,10 @@ module ActiveJob
|
|
100
100
|
end
|
101
101
|
end
|
102
102
|
|
103
|
-
# Reschedules the job to be re-executed. This is useful in combination
|
104
|
-
#
|
105
|
-
# you can ask Active Job to retry
|
103
|
+
# Reschedules the job to be re-executed. This is useful in combination with
|
104
|
+
# {rescue_from}[rdoc-ref:ActiveSupport::Rescuable::ClassMethods#rescue_from].
|
105
|
+
# When you rescue an exception from your job you can ask Active Job to retry
|
106
|
+
# performing your job.
|
106
107
|
#
|
107
108
|
# ==== Options
|
108
109
|
# * <tt>:wait</tt> - Enqueues the job with the specified delay in seconds
|
data/lib/active_job/execution.rb
CHANGED
@@ -4,6 +4,12 @@ require "active_support/rescuable"
|
|
4
4
|
require "active_job/arguments"
|
5
5
|
|
6
6
|
module ActiveJob
|
7
|
+
# = Active Job \Execution
|
8
|
+
#
|
9
|
+
# Provides methods to execute jobs immediately, and wraps job execution so
|
10
|
+
# that exceptions configured with
|
11
|
+
# {rescue_from}[rdoc-ref:ActiveSupport::Rescuable::ClassMethods#rescue_from]
|
12
|
+
# are handled.
|
7
13
|
module Execution
|
8
14
|
extend ActiveSupport::Concern
|
9
15
|
include ActiveSupport::Rescuable
|
@@ -19,8 +19,7 @@ module ActiveJob
|
|
19
19
|
# end
|
20
20
|
#
|
21
21
|
# Can be given a block that will evaluate in the context of the job
|
22
|
-
#
|
23
|
-
# can be applied:
|
22
|
+
# so that a dynamic queue name can be applied:
|
24
23
|
#
|
25
24
|
# class PublishToFeedJob < ApplicationJob
|
26
25
|
# queue_as do
|
data/lib/active_job/railtie.rb
CHANGED
@@ -63,7 +63,7 @@ module ActiveJob
|
|
63
63
|
app.config.active_job.log_query_tags_around_perform
|
64
64
|
|
65
65
|
if query_logs_tags_enabled
|
66
|
-
app.config.active_record.query_log_tags
|
66
|
+
app.config.active_record.query_log_tags |= [:job]
|
67
67
|
|
68
68
|
ActiveSupport.on_load(:active_record) do
|
69
69
|
ActiveRecord::QueryLogs.taggings[:job] = ->(context) { context[:job].class.name if context[:job] }
|
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.0.
|
4
|
+
version: 7.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-06-29 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.0.
|
19
|
+
version: 7.0.6
|
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.0.
|
26
|
+
version: 7.0.6
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: globalid
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,12 +100,12 @@ licenses:
|
|
100
100
|
- MIT
|
101
101
|
metadata:
|
102
102
|
bug_tracker_uri: https://github.com/rails/rails/issues
|
103
|
-
changelog_uri: https://github.com/rails/rails/blob/v7.0.
|
104
|
-
documentation_uri: https://api.rubyonrails.org/v7.0.
|
103
|
+
changelog_uri: https://github.com/rails/rails/blob/v7.0.6/activejob/CHANGELOG.md
|
104
|
+
documentation_uri: https://api.rubyonrails.org/v7.0.6/
|
105
105
|
mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
|
106
|
-
source_code_uri: https://github.com/rails/rails/tree/v7.0.
|
106
|
+
source_code_uri: https://github.com/rails/rails/tree/v7.0.6/activejob
|
107
107
|
rubygems_mfa_required: 'true'
|
108
|
-
post_install_message:
|
108
|
+
post_install_message:
|
109
109
|
rdoc_options: []
|
110
110
|
require_paths:
|
111
111
|
- lib
|
@@ -120,8 +120,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
120
|
- !ruby/object:Gem::Version
|
121
121
|
version: '0'
|
122
122
|
requirements: []
|
123
|
-
rubygems_version: 3.4.
|
124
|
-
signing_key:
|
123
|
+
rubygems_version: 3.4.13
|
124
|
+
signing_key:
|
125
125
|
specification_version: 4
|
126
126
|
summary: Job framework with pluggable queues.
|
127
127
|
test_files: []
|