activejob 6.1.0 → 6.1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +31 -0
- data/README.md +1 -1
- data/lib/active_job/execution.rb +1 -1
- data/lib/active_job/gem_version.rb +2 -2
- data/lib/active_job/instrumentation.rb +4 -1
- data/lib/active_job/queue_adapter.rb +1 -1
- data/lib/active_job/test_helper.rb +3 -0
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6ad35f2f17e3e415f9a0ab6d5a30969886b46987e8d0d9109af802c55a2f79d
|
4
|
+
data.tar.gz: 54fa1c9aaa61623e5372db847171d8e80753e6c75c4d878d30cc13c76364119a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5658e92e6b9608e4f0d313363ed9143bf31177f5e9ced083c82603c329d2b08fa9ca428b88e3b7a908c137e06fbfe6f8ea2b0dbd62446bfe52a328a6914cb65
|
7
|
+
data.tar.gz: a6b928c2f7bb5b161dd54a0e7f73d0f99b5bb70ad904e1d4feb177cf89a18db1783fcbaaa94f66566afe54bb90a51e722aa77ac825282352c8bf2cb033fe395d
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,34 @@
|
|
1
|
+
## Rails 6.1.3.1 (March 26, 2021) ##
|
2
|
+
|
3
|
+
* No changes.
|
4
|
+
|
5
|
+
|
6
|
+
## Rails 6.1.3 (February 17, 2021) ##
|
7
|
+
|
8
|
+
* No changes.
|
9
|
+
|
10
|
+
|
11
|
+
## Rails 6.1.2.1 (February 10, 2021) ##
|
12
|
+
|
13
|
+
* No changes.
|
14
|
+
|
15
|
+
|
16
|
+
## Rails 6.1.2 (February 09, 2021) ##
|
17
|
+
|
18
|
+
* No changes.
|
19
|
+
|
20
|
+
|
21
|
+
## Rails 6.1.1 (January 07, 2021) ##
|
22
|
+
|
23
|
+
* Make `retry_job` return the job that was created.
|
24
|
+
|
25
|
+
*Rafael Mendonça França*
|
26
|
+
|
27
|
+
* Include `ActiveSupport::Testing::Assertions` in `ActiveJob::TestHelpers`.
|
28
|
+
|
29
|
+
*Mikkel Malmberg*
|
30
|
+
|
31
|
+
|
1
32
|
## Rails 6.1.0 (December 09, 2020) ##
|
2
33
|
|
3
34
|
* Recover nano precision when serializing `Time`, `TimeWithZone` and `DateTime` objects.
|
data/README.md
CHANGED
@@ -106,7 +106,7 @@ The latest version of Active Job can be installed with RubyGems:
|
|
106
106
|
|
107
107
|
Source code can be downloaded as part of the Rails project on GitHub:
|
108
108
|
|
109
|
-
* https://github.com/rails/rails/tree/
|
109
|
+
* https://github.com/rails/rails/tree/main/activejob
|
110
110
|
|
111
111
|
|
112
112
|
## License
|
data/lib/active_job/execution.rb
CHANGED
@@ -29,7 +29,7 @@ module ActiveJob
|
|
29
29
|
|
30
30
|
# Performs the job immediately. The job is not sent to the queuing adapter
|
31
31
|
# but directly executed by blocking the execution of others until it's finished.
|
32
|
-
#
|
32
|
+
# +perform_now+ returns the value of your job's +perform+ method.
|
33
33
|
#
|
34
34
|
# class MyJob < ActiveJob::Base
|
35
35
|
# def perform
|
@@ -18,11 +18,14 @@ module ActiveJob
|
|
18
18
|
private
|
19
19
|
def instrument(operation, payload = {}, &block)
|
20
20
|
enhanced_block = ->(event_payload) do
|
21
|
-
block.call if block
|
21
|
+
value = block.call if block
|
22
|
+
|
22
23
|
if defined?(@_halted_callback_hook_called) && @_halted_callback_hook_called
|
23
24
|
event_payload[:aborted] = true
|
24
25
|
@_halted_callback_hook_called = nil
|
25
26
|
end
|
27
|
+
|
28
|
+
value
|
26
29
|
end
|
27
30
|
|
28
31
|
ActiveSupport::Notifications.instrument \
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require "active_support/core_ext/class/subclasses"
|
4
|
+
require "active_support/testing/assertions"
|
4
5
|
|
5
6
|
module ActiveJob
|
6
7
|
# Provides helper methods for testing Active Job
|
@@ -9,6 +10,8 @@ module ActiveJob
|
|
9
10
|
:performed_jobs, :performed_jobs=,
|
10
11
|
to: :queue_adapter
|
11
12
|
|
13
|
+
include ActiveSupport::Testing::Assertions
|
14
|
+
|
12
15
|
module TestQueueAdapter
|
13
16
|
extend ActiveSupport::Concern
|
14
17
|
|
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: 6.1.
|
4
|
+
version: 6.1.3.1
|
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:
|
11
|
+
date: 2021-03-26 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: 6.1.
|
19
|
+
version: 6.1.3.1
|
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: 6.1.
|
26
|
+
version: 6.1.3.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: globalid
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -99,10 +99,10 @@ licenses:
|
|
99
99
|
- MIT
|
100
100
|
metadata:
|
101
101
|
bug_tracker_uri: https://github.com/rails/rails/issues
|
102
|
-
changelog_uri: https://github.com/rails/rails/blob/v6.1.
|
103
|
-
documentation_uri: https://api.rubyonrails.org/v6.1.
|
102
|
+
changelog_uri: https://github.com/rails/rails/blob/v6.1.3.1/activejob/CHANGELOG.md
|
103
|
+
documentation_uri: https://api.rubyonrails.org/v6.1.3.1/
|
104
104
|
mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
|
105
|
-
source_code_uri: https://github.com/rails/rails/tree/v6.1.
|
105
|
+
source_code_uri: https://github.com/rails/rails/tree/v6.1.3.1/activejob
|
106
106
|
post_install_message:
|
107
107
|
rdoc_options: []
|
108
108
|
require_paths:
|
@@ -118,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
118
118
|
- !ruby/object:Gem::Version
|
119
119
|
version: '0'
|
120
120
|
requirements: []
|
121
|
-
rubygems_version: 3.1.
|
121
|
+
rubygems_version: 3.1.2
|
122
122
|
signing_key:
|
123
123
|
specification_version: 4
|
124
124
|
summary: Job framework with pluggable queues.
|