activejob 6.1.0.rc1 → 6.1.2.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 +23 -2
- data/README.md +1 -1
- data/lib/active_job/gem_version.rb +2 -2
- data/lib/active_job/instrumentation.rb +4 -1
- data/lib/active_job/queue_adapters/inline_adapter.rb +1 -1
- data/lib/active_job/test_helper.rb +3 -0
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc0253f7821dd766d7c739138c6cf41ae11d40f7319ec71c40bba77b92b3b070
|
4
|
+
data.tar.gz: b3b78bc71d73e08219c4ad3702cb2d4d962d52e0ee4ee396dcab3cb36b91747b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aaaa96f185e3086583b49885c737d58796af783e0cd4076b954584afb55d701d9cb6621f25126ef3793c289f021de7e9ce12f74c0b1aab94e5e6222de8493df5
|
7
|
+
data.tar.gz: e3ba493abb02f761217c44d4822e48512e904963d2a158bdad01ebd73e4caa2e8374720d9aecde428309828d26ecddf7a6afb7e22cca7a7e8d1efb8b267cdad3
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,25 @@
|
|
1
|
-
## Rails 6.1.
|
1
|
+
## Rails 6.1.2.1 (February 10, 2021) ##
|
2
|
+
|
3
|
+
* No changes.
|
4
|
+
|
5
|
+
|
6
|
+
## Rails 6.1.2 (February 09, 2021) ##
|
7
|
+
|
8
|
+
* No changes.
|
9
|
+
|
10
|
+
|
11
|
+
## Rails 6.1.1 (January 07, 2021) ##
|
12
|
+
|
13
|
+
* Make `retry_job` return the job that was created.
|
14
|
+
|
15
|
+
*Rafael Mendonça França*
|
16
|
+
|
17
|
+
* Include `ActiveSupport::Testing::Assertions` in `ActiveJob::TestHelpers`.
|
18
|
+
|
19
|
+
*Mikkel Malmberg*
|
20
|
+
|
21
|
+
|
22
|
+
## Rails 6.1.0 (December 09, 2020) ##
|
2
23
|
|
3
24
|
* Recover nano precision when serializing `Time`, `TimeWithZone` and `DateTime` objects.
|
4
25
|
|
@@ -73,7 +94,7 @@
|
|
73
94
|
```
|
74
95
|
|
75
96
|
A new message will be logged in case a job couldn't be enqueued, either because the callback chain was halted or
|
76
|
-
because an exception happened during
|
97
|
+
because an exception happened during enqueuing. (i.e. Redis is down when you try to enqueue your job)
|
77
98
|
|
78
99
|
*Edouard Chin*
|
79
100
|
|
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
|
@@ -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.2.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-02-10 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.2.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.2.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.2.1/activejob/CHANGELOG.md
|
103
|
+
documentation_uri: https://api.rubyonrails.org/v6.1.2.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.2.1/activejob
|
106
106
|
post_install_message:
|
107
107
|
rdoc_options: []
|
108
108
|
require_paths:
|
@@ -114,11 +114,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
114
114
|
version: 2.5.0
|
115
115
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
116
116
|
requirements:
|
117
|
-
- - "
|
117
|
+
- - ">="
|
118
118
|
- !ruby/object:Gem::Version
|
119
|
-
version:
|
119
|
+
version: '0'
|
120
120
|
requirements: []
|
121
|
-
rubygems_version: 3.
|
121
|
+
rubygems_version: 3.0.3
|
122
122
|
signing_key:
|
123
123
|
specification_version: 4
|
124
124
|
summary: Job framework with pluggable queues.
|