activejob 4.2.2 → 4.2.3.rc1
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a4eed617ffc1a14345913f0d0795f9d46199176
|
4
|
+
data.tar.gz: f800bb8892721384a427b3ad15f3091de08fd527
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f90f2791cc73767728434eff159ed6388980de333ae95aa7cabf1585940f1cb7220fe8f458a0b98c603243dab17d84c6450f53d47b61492850582e17e547fbc
|
7
|
+
data.tar.gz: 35f4ae8b335fe07656c9277e7cedfc97970ea8d254a27b56bba1d1e576e0c7f148ae484a3b433e0fe350e0bd91ac002fd5fe0b3893f0ddf1b0af4a50c6ea38f2
|
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,18 @@
|
|
1
|
+
## Rails 4.2.3 (June 22, 2015) ##
|
2
|
+
|
3
|
+
* `assert_enqueued_jobs` and `assert_performed_jobs` in block form use the
|
4
|
+
given number as expected value. This makes the error message much easier to
|
5
|
+
understand.
|
6
|
+
|
7
|
+
*y-yagi*
|
8
|
+
|
9
|
+
|
1
10
|
## Rails 4.2.2 (June 16, 2015) ##
|
2
11
|
|
3
12
|
* No Changes *
|
4
13
|
|
5
14
|
|
6
|
-
## Rails 4.2.1 (March 19,
|
15
|
+
## Rails 4.2.1 (March 19, 2015) ##
|
7
16
|
|
8
17
|
* Allow keyword arguments to be used with Active Job.
|
9
18
|
|
@@ -27,7 +27,6 @@ module ActiveJob
|
|
27
27
|
# | Sneakers | Yes | Yes | No | Queue | Queue | No |
|
28
28
|
# | Sucker Punch | Yes | Yes | No | No | No | No |
|
29
29
|
# | Active Job Inline | No | Yes | N/A | N/A | N/A | N/A |
|
30
|
-
# | Active Job | Yes | Yes | Yes | No | No | No |
|
31
30
|
#
|
32
31
|
# NOTE:
|
33
32
|
# queue_classic does not support Job scheduling. However you can implement this
|
@@ -20,6 +20,7 @@ module ActiveJob
|
|
20
20
|
#Sidekiq::Client does not support symbols as keys
|
21
21
|
Sidekiq::Client.push \
|
22
22
|
'class' => JobWrapper,
|
23
|
+
'wrapped' => job.class.to_s,
|
23
24
|
'queue' => job.queue_name,
|
24
25
|
'args' => [ job.serialize ]
|
25
26
|
end
|
@@ -27,6 +28,7 @@ module ActiveJob
|
|
27
28
|
def enqueue_at(job, timestamp) #:nodoc:
|
28
29
|
Sidekiq::Client.push \
|
29
30
|
'class' => JobWrapper,
|
31
|
+
'wrapped' => job.class.to_s,
|
30
32
|
'queue' => job.queue_name,
|
31
33
|
'args' => [ job.serialize ],
|
32
34
|
'at' => timestamp
|
@@ -47,7 +47,7 @@ module ActiveJob
|
|
47
47
|
original_count = enqueued_jobs.size
|
48
48
|
yield
|
49
49
|
new_count = enqueued_jobs.size
|
50
|
-
assert_equal
|
50
|
+
assert_equal number, new_count - original_count,
|
51
51
|
"#{number} jobs expected, but #{new_count - original_count} were enqueued"
|
52
52
|
else
|
53
53
|
enqueued_jobs_size = enqueued_jobs.size
|
@@ -114,7 +114,7 @@ module ActiveJob
|
|
114
114
|
original_count = performed_jobs.size
|
115
115
|
perform_enqueued_jobs { yield }
|
116
116
|
new_count = performed_jobs.size
|
117
|
-
assert_equal
|
117
|
+
assert_equal number, new_count - original_count,
|
118
118
|
"#{number} jobs expected, but #{new_count - original_count} were performed"
|
119
119
|
else
|
120
120
|
performed_jobs_size = performed_jobs.size
|
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.3.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-06-
|
11
|
+
date: 2015-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: 4.2.
|
19
|
+
version: 4.2.3.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.3.rc1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: globalid
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -92,9 +92,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
92
92
|
version: 1.9.3
|
93
93
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
|
-
- - "
|
95
|
+
- - ">"
|
96
96
|
- !ruby/object:Gem::Version
|
97
|
-
version:
|
97
|
+
version: 1.3.1
|
98
98
|
requirements: []
|
99
99
|
rubyforge_project:
|
100
100
|
rubygems_version: 2.4.5
|