taskinator 0.3.11 → 0.3.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +58 -59
- data/lib/taskinator/version.rb +1 -1
- data/spec/examples/queue_adapter_examples.rb +4 -4
- data/spec/spec_helper.rb +1 -4
- data/spec/taskinator/queues/sidekiq_spec.rb +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de83b4e334813a063bb91d02651a7b9b40a430f2
|
4
|
+
data.tar.gz: 598a25c5c2d629a2b1e366b18c24e6a7a4768843
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21adc2f0d71960247e2c7c198f817ca53771cf06ba6c42b9ae0f359cc2f3d11c547ffe59367472889b42c6c6ba6200564a5067b2f9897c679a1727fcf645a1c6
|
7
|
+
data.tar.gz: 9c1f23667320a6ccd50095b91f3f0fe5e381fb37a57e007387d0831b33fea074f72b8a6171d7465d17bf8970a963ab91b817d2dd708b9169a001844b47bdf6f5
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
taskinator (0.3.
|
4
|
+
taskinator (0.3.12)
|
5
5
|
builder (>= 3.2.2)
|
6
6
|
connection_pool (>= 2.2.0)
|
7
7
|
globalid (~> 0.3)
|
@@ -14,54 +14,53 @@ PATH
|
|
14
14
|
GEM
|
15
15
|
remote: https://rubygems.org/
|
16
16
|
specs:
|
17
|
-
activesupport (4.2.
|
17
|
+
activesupport (4.2.9)
|
18
18
|
i18n (~> 0.7)
|
19
|
-
json (~> 1.7, >= 1.7.7)
|
20
19
|
minitest (~> 5.1)
|
21
20
|
thread_safe (~> 0.3, >= 0.3.4)
|
22
21
|
tzinfo (~> 1.1)
|
23
|
-
builder (3.2.
|
24
|
-
byebug (9.0
|
25
|
-
coderay (1.1.
|
26
|
-
concurrent-ruby (1.0.
|
27
|
-
connection_pool (2.2.
|
28
|
-
coveralls (0.8.
|
22
|
+
builder (3.2.3)
|
23
|
+
byebug (9.1.0)
|
24
|
+
coderay (1.1.2)
|
25
|
+
concurrent-ruby (1.0.5)
|
26
|
+
connection_pool (2.2.1)
|
27
|
+
coveralls (0.8.21)
|
29
28
|
json (>= 1.8, < 3)
|
30
|
-
simplecov (~> 0.
|
29
|
+
simplecov (~> 0.14.1)
|
31
30
|
term-ansicolor (~> 1.3)
|
32
|
-
thor (~> 0.19.
|
33
|
-
tins (
|
34
|
-
delayed_job (4.1.
|
35
|
-
activesupport (>= 3.0, < 5.
|
36
|
-
diff-lcs (1.
|
31
|
+
thor (~> 0.19.4)
|
32
|
+
tins (~> 1.6)
|
33
|
+
delayed_job (4.1.3)
|
34
|
+
activesupport (>= 3.0, < 5.2)
|
35
|
+
diff-lcs (1.3)
|
37
36
|
docile (1.1.5)
|
38
37
|
fakeredis (0.6.0)
|
39
38
|
redis (~> 3.2)
|
40
|
-
globalid (0.
|
41
|
-
activesupport (>= 4.
|
42
|
-
i18n (0.
|
43
|
-
json (1.
|
39
|
+
globalid (0.4.0)
|
40
|
+
activesupport (>= 4.2.0)
|
41
|
+
i18n (0.8.6)
|
42
|
+
json (2.1.0)
|
44
43
|
method_source (0.8.2)
|
45
|
-
minitest (5.
|
44
|
+
minitest (5.10.3)
|
46
45
|
mono_logger (1.1.0)
|
47
|
-
multi_json (1.12.
|
48
|
-
|
46
|
+
multi_json (1.12.2)
|
47
|
+
mustermann (1.0.1)
|
48
|
+
pry (0.11.0)
|
49
49
|
coderay (~> 1.1.0)
|
50
50
|
method_source (~> 0.8.1)
|
51
|
-
|
52
|
-
|
53
|
-
byebug (~> 9.0)
|
51
|
+
pry-byebug (3.5.0)
|
52
|
+
byebug (~> 9.1)
|
54
53
|
pry (~> 0.10)
|
55
|
-
rack (
|
56
|
-
rack-protection (
|
54
|
+
rack (2.0.3)
|
55
|
+
rack-protection (2.0.0)
|
57
56
|
rack
|
58
|
-
rake (
|
59
|
-
redis (3.3.
|
60
|
-
redis-namespace (1.5.
|
57
|
+
rake (12.1.0)
|
58
|
+
redis (3.3.3)
|
59
|
+
redis-namespace (1.5.3)
|
61
60
|
redis (~> 3.0, >= 3.0.4)
|
62
61
|
redis-semaphore (0.3.1)
|
63
62
|
redis
|
64
|
-
resque (1.
|
63
|
+
resque (1.27.4)
|
65
64
|
mono_logger (~> 1.0)
|
66
65
|
multi_json (~> 1.0)
|
67
66
|
redis-namespace (~> 1.3)
|
@@ -72,45 +71,45 @@ GEM
|
|
72
71
|
rspec-core (>= 3.0.0)
|
73
72
|
rspec-expectations (>= 3.0.0)
|
74
73
|
rspec-mocks (>= 3.0.0)
|
75
|
-
rspec (3.
|
76
|
-
rspec-core (~> 3.
|
77
|
-
rspec-expectations (~> 3.
|
78
|
-
rspec-mocks (~> 3.
|
79
|
-
rspec-core (3.
|
80
|
-
rspec-support (~> 3.
|
81
|
-
rspec-expectations (3.
|
74
|
+
rspec (3.6.0)
|
75
|
+
rspec-core (~> 3.6.0)
|
76
|
+
rspec-expectations (~> 3.6.0)
|
77
|
+
rspec-mocks (~> 3.6.0)
|
78
|
+
rspec-core (3.6.0)
|
79
|
+
rspec-support (~> 3.6.0)
|
80
|
+
rspec-expectations (3.6.0)
|
82
81
|
diff-lcs (>= 1.2.0, < 2.0)
|
83
|
-
rspec-support (~> 3.
|
84
|
-
rspec-mocks (3.
|
82
|
+
rspec-support (~> 3.6.0)
|
83
|
+
rspec-mocks (3.6.0)
|
85
84
|
diff-lcs (>= 1.2.0, < 2.0)
|
86
|
-
rspec-support (~> 3.
|
87
|
-
rspec-sidekiq (
|
88
|
-
rspec (~> 3.0, >= 3.0.0)
|
85
|
+
rspec-support (~> 3.6.0)
|
86
|
+
rspec-sidekiq (3.0.3)
|
87
|
+
rspec-core (~> 3.0, >= 3.0.0)
|
89
88
|
sidekiq (>= 2.4.0)
|
90
|
-
rspec-support (3.
|
91
|
-
sidekiq (
|
89
|
+
rspec-support (3.6.0)
|
90
|
+
sidekiq (5.0.4)
|
92
91
|
concurrent-ruby (~> 1.0)
|
93
92
|
connection_pool (~> 2.2, >= 2.2.0)
|
94
93
|
rack-protection (>= 1.5.0)
|
95
|
-
redis (~> 3.
|
96
|
-
simplecov (0.
|
94
|
+
redis (~> 3.3, >= 3.3.3)
|
95
|
+
simplecov (0.14.1)
|
97
96
|
docile (~> 1.1.0)
|
98
97
|
json (>= 1.8, < 3)
|
99
98
|
simplecov-html (~> 0.10.0)
|
100
|
-
simplecov-html (0.10.
|
101
|
-
sinatra (
|
102
|
-
|
103
|
-
rack
|
104
|
-
|
105
|
-
|
99
|
+
simplecov-html (0.10.2)
|
100
|
+
sinatra (2.0.0)
|
101
|
+
mustermann (~> 1.0)
|
102
|
+
rack (~> 2.0)
|
103
|
+
rack-protection (= 2.0.0)
|
104
|
+
tilt (~> 2.0)
|
106
105
|
statsd-ruby (1.2.1)
|
107
|
-
term-ansicolor (1.
|
106
|
+
term-ansicolor (1.6.0)
|
108
107
|
tins (~> 1.0)
|
109
|
-
thor (0.19.
|
110
|
-
thread_safe (0.3.
|
111
|
-
tilt (2.0.
|
112
|
-
tins (1.
|
113
|
-
tzinfo (1.2.
|
108
|
+
thor (0.19.4)
|
109
|
+
thread_safe (0.3.6)
|
110
|
+
tilt (2.0.8)
|
111
|
+
tins (1.15.0)
|
112
|
+
tzinfo (1.2.3)
|
114
113
|
thread_safe (~> 0.1)
|
115
114
|
vegas (0.1.11)
|
116
115
|
rack (>= 1.0.0)
|
data/lib/taskinator/version.rb
CHANGED
@@ -14,9 +14,9 @@ shared_examples_for "a queue adapter" do |adapter_name, adapter_type|
|
|
14
14
|
it { expect(subject).to respond_to(:enqueue_create_process) }
|
15
15
|
|
16
16
|
it "should enqueue a create process" do
|
17
|
-
expect
|
17
|
+
expect(
|
18
18
|
subject.enqueue_create_process(double('definition', :name => 'definition', :queue => nil), 'xx-xx-xx-xx', :foo => :bar)
|
19
|
-
|
19
|
+
).to_not be_nil
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
@@ -24,9 +24,9 @@ shared_examples_for "a queue adapter" do |adapter_name, adapter_type|
|
|
24
24
|
it { expect(subject).to respond_to(:enqueue_task) }
|
25
25
|
|
26
26
|
it "should enqueue a task" do
|
27
|
-
expect
|
27
|
+
expect(
|
28
28
|
subject.enqueue_task(double('task', :uuid => 'xx-xx-xx-xx', :queue => nil))
|
29
|
-
|
29
|
+
).to_not be_nil
|
30
30
|
end
|
31
31
|
end
|
32
32
|
|
data/spec/spec_helper.rb
CHANGED
@@ -60,10 +60,7 @@ RSpec.configure do |config|
|
|
60
60
|
end
|
61
61
|
|
62
62
|
config.before(:each, :redis => true) do
|
63
|
-
Taskinator.redis = { :namespace =>
|
64
|
-
Taskinator.redis do |conn|
|
65
|
-
conn.flushdb
|
66
|
-
end
|
63
|
+
Taskinator.redis = { :namespace => "taskinator:test:#{SecureRandom.uuid}" }
|
67
64
|
end
|
68
65
|
|
69
66
|
config.before(:each, :sidekiq => true) do
|
@@ -18,7 +18,7 @@ describe Taskinator::Queues::SidekiqAdapter, :sidekiq do
|
|
18
18
|
worker = adapter::CreateProcessWorker
|
19
19
|
definition = MockDefinition.create
|
20
20
|
subject.enqueue_create_process(definition, uuid, :foo => :bar)
|
21
|
-
expect(worker).to
|
21
|
+
expect(worker).to have_enqueued_sidekiq_job(definition.name, uuid, args)
|
22
22
|
end
|
23
23
|
|
24
24
|
it "enqueues to specified queue" do
|
@@ -38,7 +38,7 @@ describe Taskinator::Queues::SidekiqAdapter, :sidekiq do
|
|
38
38
|
worker = adapter::ProcessWorker
|
39
39
|
process = double('process', :uuid => uuid, :queue => nil)
|
40
40
|
subject.enqueue_process(process)
|
41
|
-
expect(worker).to
|
41
|
+
expect(worker).to have_enqueued_sidekiq_job(process.uuid)
|
42
42
|
end
|
43
43
|
|
44
44
|
it "enqueues process to specified queue" do
|
@@ -57,7 +57,7 @@ describe Taskinator::Queues::SidekiqAdapter, :sidekiq do
|
|
57
57
|
worker = adapter::TaskWorker
|
58
58
|
task = double('task', :uuid => uuid, :queue => nil)
|
59
59
|
subject.enqueue_task(task)
|
60
|
-
expect(worker).to
|
60
|
+
expect(worker).to have_enqueued_sidekiq_job(task.uuid)
|
61
61
|
end
|
62
62
|
|
63
63
|
it "enqueues task to specified queue" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: taskinator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Stefano
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redis
|
@@ -233,7 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
233
233
|
version: '0'
|
234
234
|
requirements: []
|
235
235
|
rubyforge_project:
|
236
|
-
rubygems_version: 2.
|
236
|
+
rubygems_version: 2.6.13
|
237
237
|
signing_key:
|
238
238
|
specification_version: 4
|
239
239
|
summary: A simple orchestration library for running complex processes or workflows
|