activejob 5.0.0.rc1 → 5.0.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of activejob might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/active_job/arguments.rb +3 -2
- data/lib/active_job/execution.rb +1 -1
- data/lib/active_job/gem_version.rb +1 -1
- data/lib/active_job/logging.rb +1 -1
- data/lib/active_job/test_helper.rb +14 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5334241ce5e9bff0d246220313fdedde392bd41
|
4
|
+
data.tar.gz: e6d9dc15fcdd47de4107af08fa093d95db1120f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e74cc0eaedd7b85ac835a115c64867d33ae29128b00a30e4b5dd56fcdaa5efa9a251d9b55d8a0fab1f2d3bf472a94b649bddffd8121d839a25f341899007e15d
|
7
|
+
data.tar.gz: 909ebed4ed171fd33578ad13860044a242a1faa6227d416807368e6bcac0cb39b061e03e95912f1c148a09de5b5cc60f33547ff91aa4e7c10b7e9bea61232f76
|
data/CHANGELOG.md
CHANGED
data/lib/active_job/arguments.rb
CHANGED
@@ -24,7 +24,7 @@ module ActiveJob
|
|
24
24
|
end
|
25
25
|
|
26
26
|
# Raised when an unsupported argument type is set as a job argument. We
|
27
|
-
# currently support NilClass, Fixnum, Float, String, TrueClass, FalseClass,
|
27
|
+
# currently support NilClass, Integer, Fixnum, Float, String, TrueClass, FalseClass,
|
28
28
|
# Bignum, BigDecimal, and objects that can be represented as GlobalIDs (ex: Active Record).
|
29
29
|
# Raised if you set the key for a Hash something else than a string or
|
30
30
|
# a symbol. Also raised when trying to serialize an object which can't be
|
@@ -34,7 +34,8 @@ module ActiveJob
|
|
34
34
|
module Arguments
|
35
35
|
extend self
|
36
36
|
# :nodoc:
|
37
|
-
|
37
|
+
# Calls #uniq since Integer, Fixnum, and Bignum are all the same class on Ruby 2.4+
|
38
|
+
TYPE_WHITELIST = [ NilClass, String, Integer, Fixnum, Bignum, Float, BigDecimal, TrueClass, FalseClass ].uniq
|
38
39
|
|
39
40
|
# Serializes a set of arguments. Whitelisted types are returned
|
40
41
|
# as-is. Arrays/Hashes are serialized element by element.
|
data/lib/active_job/execution.rb
CHANGED
data/lib/active_job/logging.rb
CHANGED
@@ -9,7 +9,7 @@ module ActiveJob
|
|
9
9
|
to: :queue_adapter
|
10
10
|
|
11
11
|
def before_setup # :nodoc:
|
12
|
-
test_adapter =
|
12
|
+
test_adapter = queue_adapter_for_test
|
13
13
|
|
14
14
|
@old_queue_adapters = (ActiveJob::Base.subclasses << ActiveJob::Base).select do |klass|
|
15
15
|
# only override explicitly set adapters, a quirk of `class_attribute`
|
@@ -32,6 +32,19 @@ module ActiveJob
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
+
# Specifies the queue adapter to use with all active job test helpers.
|
36
|
+
#
|
37
|
+
# Returns an instance of the queue adapter and defaults to
|
38
|
+
# <tt>ActiveJob::QueueAdapters::TestAdapter</tt>.
|
39
|
+
#
|
40
|
+
# Note: The adapter provided by this method must provide some additional
|
41
|
+
# methods from those expected of a standard <tt>ActiveJob::QueueAdapter</tt>
|
42
|
+
# in order to be used with the active job test helpers. Refer to
|
43
|
+
# <tt>ActiveJob::QueueAdapters::TestAdapter</tt>.
|
44
|
+
def queue_adapter_for_test
|
45
|
+
ActiveJob::QueueAdapters::TestAdapter.new
|
46
|
+
end
|
47
|
+
|
35
48
|
# Asserts that the number of enqueued jobs matches the given number.
|
36
49
|
#
|
37
50
|
# def test_jobs
|
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: 5.0.0.
|
4
|
+
version: 5.0.0.rc2
|
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: 2016-
|
11
|
+
date: 2016-06-22 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: 5.0.0.
|
19
|
+
version: 5.0.0.rc2
|
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: 5.0.0.
|
26
|
+
version: 5.0.0.rc2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: globalid
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
101
101
|
version: 1.3.1
|
102
102
|
requirements: []
|
103
103
|
rubyforge_project:
|
104
|
-
rubygems_version: 2.
|
104
|
+
rubygems_version: 2.6.4
|
105
105
|
signing_key:
|
106
106
|
specification_version: 4
|
107
107
|
summary: Job framework with pluggable queues.
|