resque-multi-step 2.0.4 → 2.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d6d2c398ee76b64007f81d35964f4ac066bdc107
4
- data.tar.gz: 6e37fc56ecc6b3de66fb723bad899862116fd420
3
+ metadata.gz: d1794b10d2f426d7d62711eca2007782647f9cbd
4
+ data.tar.gz: 0264e2ea8fe55486665a19abb224010f67baed83
5
5
  SHA512:
6
- metadata.gz: f57191578c45b3c7e8c7a8d6c0eebf69e60a3769472ef1e2b701ef3bb671e5cc20005b6323c7f331cdafcc5fc84c675e8fc90b28cad86a80c9a7552daecc23a5
7
- data.tar.gz: 166077bb0374f0c0f7f70ead61dea736c52985aea7dbee361a3759be8b04cac3294a64feb1214171669beff48e5284ee20a5942d8f0ccb3ba8a019a5534c7a98
6
+ metadata.gz: 65d03594740c68fb89d8a4ae27c4741fc832c3910789853b0bf017cee24e347c946b5d51ab26dd7f84614ca30dde3dbdc5e77cd04cfd85b2c0b008cb9913f0da
7
+ data.tar.gz: fea175fd5a309002b88e2263f3e8a0237d9a21416fead13738b1e8ad81ffa68f86382efb942b86b21252d6d7175e3e6e25344be39503b46a0c84afbdc5ca94bb
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.4
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
@@ -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.4"
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.add_job MultiStepAcceptance::CounterJob, "testing counter"
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
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: []