actionable 0.0.4 → 0.0.5
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/lib/actionable/memory_store/action.rb +1 -0
- data/lib/actionable/recurrence.rb +2 -2
- data/lib/actionable/sweep.rb +1 -1
- data/lib/actionable/version.rb +1 -1
- data/spec/job_spec.rb +1 -1
- data/spec/spec_helper.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: aba5c2dd61d34960608b12a00742c86eddeb904e
|
|
4
|
+
data.tar.gz: 0c9d7ab01b25b32b973c7a69e8cf254999a46eaf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b83923f9cde4a28559ac389a02f634541947c320cfe36655a3d42756ad400df0b6f419708ad1141ceaf82e4bce9959260b044ec73eea0f93580f733ad1492261
|
|
7
|
+
data.tar.gz: e8ad792fcfb39c41ee9f1edc8f71000b6a8018b4bc21d7686b6148deaf642ff47ed5232f63b1dc8ca52682a2b7b49ec133dc6191d334c6632faf57b3b03cffc2
|
|
@@ -22,7 +22,7 @@ module Actionable
|
|
|
22
22
|
end
|
|
23
23
|
|
|
24
24
|
def next_scheduled?
|
|
25
|
-
Actionable::Action.where(status
|
|
25
|
+
Actionable::Action.where(:status.in => [:scheduled,:late,:enqueued,:working], target_id: id).exists?
|
|
26
26
|
end
|
|
27
27
|
|
|
28
28
|
def ensure_scheduled
|
|
@@ -32,7 +32,7 @@ module Actionable
|
|
|
32
32
|
private
|
|
33
33
|
|
|
34
34
|
def next_run_time
|
|
35
|
-
Rufus::CronLine.new(recurrence_string).next_time.to_datetime
|
|
35
|
+
Rufus::CronLine.new(recurrence_string).next_time.to_datetime.utc
|
|
36
36
|
end
|
|
37
37
|
|
|
38
38
|
def job_class
|
data/lib/actionable/sweep.rb
CHANGED
data/lib/actionable/version.rb
CHANGED
data/spec/job_spec.rb
CHANGED
|
@@ -52,7 +52,7 @@ describe Actionable::Job do
|
|
|
52
52
|
Resque.inline = false
|
|
53
53
|
end
|
|
54
54
|
|
|
55
|
-
it "should be executed by a worker in another processes" do
|
|
55
|
+
it "should be executed by a worker in another processes", :no do
|
|
56
56
|
id = target.id
|
|
57
57
|
run_test_worker(id)
|
|
58
58
|
expect(TestModel.find(id).number).to eq(6)
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: actionable
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daniel Luxemburg
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-04-
|
|
11
|
+
date: 2013-04-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|