active_scheduler 0.1.0 → 0.2.0
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c723aa094616a7530ea528c8910f5abfe695d91b
|
4
|
+
data.tar.gz: a8286d5ebc009739893d72912fc3534158161dbe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42cc510cc65ff67895469f65ee436024faeaf4b064bf2e18e2264219ba89b55603c6f0f489008838db3e8c6bf107dcbc771d986d0e1599ab4e19b41e751ba4d3
|
7
|
+
data.tar.gz: 71cba03ce129f5a22a5b948f71a3cc3428d0a09939c0df418c77ce364e43d3251a6f2aae43c3639c1c9a0c38425e6d44ce0e0e7d89c58cbc9d0e46a93b73ba2f
|
data/CHANGELOG.markdown
CHANGED
@@ -20,6 +20,14 @@ module ActiveScheduler
|
|
20
20
|
next unless class_name.constantize <= ActiveJob::Base
|
21
21
|
|
22
22
|
queue = opts[:queue] || 'default'
|
23
|
+
args = opts[:args]
|
24
|
+
|
25
|
+
if !args && opts.has_key?(:arguments)
|
26
|
+
warn 'active_scheduler: [DEPRECATION] using the `arguments` key in ' \
|
27
|
+
'your resque schedule will soon be deprecated. Please revert to ' \
|
28
|
+
'the resque standard `args` key.'
|
29
|
+
args = opts[:arguments]
|
30
|
+
end
|
23
31
|
|
24
32
|
schedule[job] = {
|
25
33
|
class: 'ActiveScheduler::ResqueWrapper',
|
@@ -27,7 +35,7 @@ module ActiveScheduler
|
|
27
35
|
args: [{
|
28
36
|
job_class: class_name,
|
29
37
|
queue_name: queue,
|
30
|
-
arguments:
|
38
|
+
arguments: args
|
31
39
|
}]
|
32
40
|
}
|
33
41
|
|
@@ -18,7 +18,7 @@ describe ActiveScheduler::ResqueWrapper do
|
|
18
18
|
"args" => [{
|
19
19
|
"job_class" => "SimpleJob",
|
20
20
|
"queue_name" => "simple",
|
21
|
-
"arguments" =>
|
21
|
+
"arguments" => ['foo-arg-1', 'foo-arg-2'],
|
22
22
|
}]
|
23
23
|
)
|
24
24
|
end
|
@@ -31,7 +31,7 @@ describe ActiveScheduler::ResqueWrapper do
|
|
31
31
|
"queue" => "simple",
|
32
32
|
"description" => "It's a simple job.",
|
33
33
|
"every" => "30s",
|
34
|
-
"args" => [
|
34
|
+
"args" => ['foo-arg-1', 'foo-arg-2'],
|
35
35
|
)
|
36
36
|
end
|
37
37
|
end
|
@@ -50,7 +50,7 @@ describe ActiveScheduler::ResqueWrapper do
|
|
50
50
|
"args" => [{
|
51
51
|
"job_class" => "SimpleJob",
|
52
52
|
"queue_name" => "simple",
|
53
|
-
"arguments" =>
|
53
|
+
"arguments" => "foo-argument",
|
54
54
|
}]
|
55
55
|
)
|
56
56
|
end
|
@@ -98,7 +98,7 @@ describe ActiveScheduler::ResqueWrapper do
|
|
98
98
|
"args" => [{
|
99
99
|
"job_class" => "MyScheduleNameIsClassNameJob",
|
100
100
|
"queue_name" => "myscheduledjobqueue",
|
101
|
-
"arguments" => nil
|
101
|
+
"arguments" => [nil]
|
102
102
|
}]
|
103
103
|
)
|
104
104
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_scheduler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Aiken
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activejob
|