activejob 4.2.3 → 4.2.4.rc1
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 -0
- data/lib/active_job/base.rb +2 -0
- data/lib/active_job/core.rb +6 -1
- data/lib/active_job/gem_version.rb +2 -2
- data/lib/active_job/queue_adapters.rb +14 -15
- data/lib/active_job/translation.rb +11 -0
- metadata +9 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f016eb293bdc0030f2c1859c6695a0e6b667b1c3
|
|
4
|
+
data.tar.gz: 136dc5bc6220ae854ffe8a8e81d611288a445199
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dd0d5381bd6ba8367bf0d495e09ec9621593c540c347ed2cc53f0433feb2fa67f3dcb978c9f43d5be2230f0d77c1d4dc2ae6c04b137bf62ec3ddf804dc507344
|
|
7
|
+
data.tar.gz: 9a435badb17ff2a9deb586c84d496aa3bf408542b6102330bbc886b81b0971d449a40afe689621393afafd91d58cac951cb5c854fc28a57ef48e2d795090bdf3
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## Rails 4.2.4 (August 14, 2015) ##
|
|
2
|
+
|
|
3
|
+
* Include I18n.locale into job serialization/deserialization and use it around
|
|
4
|
+
`perform`.
|
|
5
|
+
|
|
6
|
+
Fixes #20799.
|
|
7
|
+
|
|
8
|
+
*Johannes Opper*
|
|
9
|
+
|
|
1
10
|
## Rails 4.2.3 (June 25, 2015) ##
|
|
2
11
|
|
|
3
12
|
* `assert_enqueued_jobs` and `assert_performed_jobs` in block form use the
|
data/lib/active_job/base.rb
CHANGED
|
@@ -5,6 +5,7 @@ require 'active_job/enqueuing'
|
|
|
5
5
|
require 'active_job/execution'
|
|
6
6
|
require 'active_job/callbacks'
|
|
7
7
|
require 'active_job/logging'
|
|
8
|
+
require 'active_job/translation'
|
|
8
9
|
|
|
9
10
|
module ActiveJob #:nodoc:
|
|
10
11
|
# = Active Job
|
|
@@ -60,6 +61,7 @@ module ActiveJob #:nodoc:
|
|
|
60
61
|
include Execution
|
|
61
62
|
include Callbacks
|
|
62
63
|
include Logging
|
|
64
|
+
include Translation
|
|
63
65
|
|
|
64
66
|
ActiveSupport.run_load_hooks(:active_job, self)
|
|
65
67
|
end
|
data/lib/active_job/core.rb
CHANGED
|
@@ -15,6 +15,9 @@ module ActiveJob
|
|
|
15
15
|
|
|
16
16
|
# Queue in which the job will reside.
|
|
17
17
|
attr_writer :queue_name
|
|
18
|
+
|
|
19
|
+
# I18n.locale to be used during the job.
|
|
20
|
+
attr_accessor :locale
|
|
18
21
|
end
|
|
19
22
|
|
|
20
23
|
# These methods will be included into any Active Job object, adding
|
|
@@ -26,6 +29,7 @@ module ActiveJob
|
|
|
26
29
|
job.job_id = job_data['job_id']
|
|
27
30
|
job.queue_name = job_data['queue_name']
|
|
28
31
|
job.serialized_arguments = job_data['arguments']
|
|
32
|
+
job.locale = job_data['locale'] || I18n.locale
|
|
29
33
|
job
|
|
30
34
|
end
|
|
31
35
|
|
|
@@ -65,7 +69,8 @@ module ActiveJob
|
|
|
65
69
|
'job_class' => self.class.name,
|
|
66
70
|
'job_id' => job_id,
|
|
67
71
|
'queue_name' => queue_name,
|
|
68
|
-
'arguments' => serialize_arguments(arguments)
|
|
72
|
+
'arguments' => serialize_arguments(arguments),
|
|
73
|
+
'locale' => I18n.locale
|
|
69
74
|
}
|
|
70
75
|
end
|
|
71
76
|
|
|
@@ -15,23 +15,22 @@ module ActiveJob
|
|
|
15
15
|
#
|
|
16
16
|
# === Backends Features
|
|
17
17
|
#
|
|
18
|
-
# | | Async | Queues | Delayed
|
|
19
|
-
#
|
|
20
|
-
# | Backburner | Yes | Yes | Yes
|
|
21
|
-
# | Delayed Job | Yes | Yes | Yes
|
|
22
|
-
# | Qu | Yes | Yes | No
|
|
23
|
-
# | Que | Yes | Yes | Yes
|
|
24
|
-
# | queue_classic | Yes | Yes |
|
|
25
|
-
# | Resque | Yes | Yes | Yes (Gem)
|
|
26
|
-
# | Sidekiq | Yes | Yes | Yes
|
|
27
|
-
# | Sneakers | Yes | Yes | No
|
|
28
|
-
# | Sucker Punch | Yes | Yes | No
|
|
29
|
-
# | Active Job Inline | No | Yes | N/A
|
|
18
|
+
# | | Async | Queues | Delayed | Priorities | Timeout | Retries |
|
|
19
|
+
# |-------------------|-------|--------|------------|------------|---------|---------|
|
|
20
|
+
# | Backburner | Yes | Yes | Yes | Yes | Job | Global |
|
|
21
|
+
# | Delayed Job | Yes | Yes | Yes | Job | Global | Global |
|
|
22
|
+
# | Qu | Yes | Yes | No | No | No | Global |
|
|
23
|
+
# | Que | Yes | Yes | Yes | Job | No | Job |
|
|
24
|
+
# | queue_classic | Yes | Yes | Yes* | No | No | No |
|
|
25
|
+
# | Resque | Yes | Yes | Yes (Gem) | Queue | Global | Yes |
|
|
26
|
+
# | Sidekiq | Yes | Yes | Yes | Queue | No | Job |
|
|
27
|
+
# | Sneakers | Yes | Yes | No | Queue | Queue | No |
|
|
28
|
+
# | Sucker Punch | Yes | Yes | No | No | No | No |
|
|
29
|
+
# | Active Job Inline | No | Yes | N/A | N/A | N/A | N/A |
|
|
30
30
|
#
|
|
31
31
|
# NOTE:
|
|
32
|
-
# queue_classic
|
|
33
|
-
#
|
|
34
|
-
# ActiveJob::QueueAdapters::QueueClassicAdapter.
|
|
32
|
+
# queue_classic supports job scheduling since version 3.1.
|
|
33
|
+
# For older versions you can use the queue_classic-later gem.
|
|
35
34
|
#
|
|
36
35
|
module QueueAdapters
|
|
37
36
|
extend ActiveSupport::Autoload
|
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: 4.2.
|
|
4
|
+
version: 4.2.4.rc1
|
|
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: 2015-
|
|
11
|
+
date: 2015-08-14 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: 4.2.
|
|
19
|
+
version: 4.2.4.rc1
|
|
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: 4.2.
|
|
26
|
+
version: 4.2.4.rc1
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: globalid
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -74,6 +74,7 @@ files:
|
|
|
74
74
|
- lib/active_job/railtie.rb
|
|
75
75
|
- lib/active_job/test_case.rb
|
|
76
76
|
- lib/active_job/test_helper.rb
|
|
77
|
+
- lib/active_job/translation.rb
|
|
77
78
|
- lib/active_job/version.rb
|
|
78
79
|
- lib/rails/generators/job/job_generator.rb
|
|
79
80
|
- lib/rails/generators/job/templates/job.rb
|
|
@@ -92,13 +93,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
92
93
|
version: 1.9.3
|
|
93
94
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
95
|
requirements:
|
|
95
|
-
- - "
|
|
96
|
+
- - ">"
|
|
96
97
|
- !ruby/object:Gem::Version
|
|
97
|
-
version:
|
|
98
|
+
version: 1.3.1
|
|
98
99
|
requirements: []
|
|
99
100
|
rubyforge_project:
|
|
100
|
-
rubygems_version: 2.4.
|
|
101
|
+
rubygems_version: 2.4.7
|
|
101
102
|
signing_key:
|
|
102
103
|
specification_version: 4
|
|
103
104
|
summary: Job framework with pluggable queues.
|
|
104
105
|
test_files: []
|
|
106
|
+
has_rdoc:
|