resque-multi-step 2.0.4 → 2.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/VERSION +1 -1
- data/lib/resque/plugins/multi_step_task.rb +1 -2
- data/resque-multi-step.gemspec +2 -2
- data/spec/acceptance/job_handling_spec.rb +7 -6
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d1794b10d2f426d7d62711eca2007782647f9cbd
|
|
4
|
+
data.tar.gz: 0264e2ea8fe55486665a19abb224010f67baed83
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 65d03594740c68fb89d8a4ae27c4741fc832c3910789853b0bf017cee24e347c946b5d51ab26dd7f84614ca30dde3dbdc5e77cd04cfd85b2c0b008cb9913f0da
|
|
7
|
+
data.tar.gz: fea175fd5a309002b88e2263f3e8a0237d9a21416fead13738b1e8ad81ffa68f86382efb942b86b21252d6d7175e3e6e25344be39503b46a0c84afbdc5ca94bb
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.0.
|
|
1
|
+
2.0.5
|
|
@@ -69,7 +69,7 @@ module Resque
|
|
|
69
69
|
mst.finalizable!
|
|
70
70
|
end
|
|
71
71
|
|
|
72
|
-
mst
|
|
72
|
+
mst.start
|
|
73
73
|
end
|
|
74
74
|
|
|
75
75
|
# Prevent calling MultiStepTask.new
|
|
@@ -272,7 +272,6 @@ module Resque
|
|
|
272
272
|
# that just kicks off the finalization process
|
|
273
273
|
assure_finalization if normal_job_count == 0
|
|
274
274
|
end
|
|
275
|
-
start
|
|
276
275
|
end
|
|
277
276
|
|
|
278
277
|
def assure_finalization
|
data/resque-multi-step.gemspec
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = "resque-multi-step"
|
|
8
|
-
s.version = "2.0.
|
|
8
|
+
s.version = "2.0.5"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
|
-
s.authors = ["Peter Williams", "Morgan Whitney"]
|
|
11
|
+
s.authors = ["Peter Williams", "Morgan Whitney", "Cameron Mauch"]
|
|
12
12
|
s.date = "2014-09-09"
|
|
13
13
|
s.description = "Provides multi-step tasks with finalization and progress tracking"
|
|
14
14
|
s.email = "pezra@barelyenough.org"
|
|
@@ -150,16 +150,17 @@ end
|
|
|
150
150
|
|
|
151
151
|
describe "Acceptance: Finalization always runs" do
|
|
152
152
|
let(:task) do
|
|
153
|
-
Resque::Plugins::MultiStepTask.create("testing")
|
|
153
|
+
Resque::Plugins::MultiStepTask.create("testing") do |task|
|
|
154
|
+
task.add_job MultiStepAcceptance::CounterJob, "testing counter"
|
|
155
|
+
task.add_job MultiStepAcceptance::CounterJob, "testing counter"
|
|
156
|
+
task.add_finalization_job MultiStepAcceptance::CounterJob, "testing counter"
|
|
157
|
+
sleep 1
|
|
158
|
+
end
|
|
154
159
|
end
|
|
155
160
|
|
|
156
161
|
before do
|
|
157
162
|
Resque.redis.del "testing"
|
|
158
|
-
task
|
|
159
|
-
task.add_job MultiStepAcceptance::CounterJob, "testing counter"
|
|
160
|
-
task.add_finalization_job MultiStepAcceptance::CounterJob, "testing counter"
|
|
161
|
-
sleep 1
|
|
162
|
-
task.finalizable!
|
|
163
|
+
task
|
|
163
164
|
sleep 1
|
|
164
165
|
end
|
|
165
166
|
|
metadata
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: resque-multi-step
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Peter Williams
|
|
8
8
|
- Morgan Whitney
|
|
9
|
+
- Cameron Mauch
|
|
9
10
|
autorequire:
|
|
10
11
|
bindir: bin
|
|
11
12
|
cert_chain: []
|