resque-multi-step 2.0.2 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in resque-job-logger.gemspec
4
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,53 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ resque-multi-step (2.0.3)
5
+ redis-namespace
6
+ resque
7
+ resque-fairly
8
+ resque-multi-step
9
+ yajl-ruby
10
+
11
+ GEM
12
+ remote: https://rubygems.org/
13
+ specs:
14
+ diff-lcs (1.2.2)
15
+ mono_logger (1.0.0)
16
+ multi_json (1.7.2)
17
+ rack (1.5.2)
18
+ rack-protection (1.5.0)
19
+ rack
20
+ redis (3.0.3)
21
+ redis-namespace (1.2.1)
22
+ redis (~> 3.0.0)
23
+ resque (1.24.1)
24
+ mono_logger (~> 1.0)
25
+ multi_json (~> 1.0)
26
+ redis-namespace (~> 1.2)
27
+ sinatra (>= 0.9.2)
28
+ vegas (~> 0.1.2)
29
+ resque-fairly (1.1.0)
30
+ resque (~> 1.0)
31
+ rspec (2.13.0)
32
+ rspec-core (~> 2.13.0)
33
+ rspec-expectations (~> 2.13.0)
34
+ rspec-mocks (~> 2.13.0)
35
+ rspec-core (2.13.1)
36
+ rspec-expectations (2.13.0)
37
+ diff-lcs (>= 1.1.3, < 2.0)
38
+ rspec-mocks (2.13.0)
39
+ sinatra (1.4.3)
40
+ rack (~> 1.4)
41
+ rack-protection (~> 1.4)
42
+ tilt (~> 1.3, >= 1.3.4)
43
+ tilt (1.4.1)
44
+ vegas (0.1.11)
45
+ rack (>= 1.0.0)
46
+ yajl-ruby (1.1.0)
47
+
48
+ PLATFORMS
49
+ ruby
50
+
51
+ DEPENDENCIES
52
+ resque-multi-step!
53
+ rspec
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) OpenLogic, Peter Williams
1
+ Copyright (c) OpenLogic, Inc.
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -144,4 +144,4 @@ The archive can be found at <http://librelist.com/browser/resquemultistep/>.
144
144
  Copyright
145
145
  -----
146
146
 
147
- Copyright (c) OpenLogic, Peter Williams. See LICENSE for details.
147
+ Copyright (c) OpenLogic, Inc. See LICENSE for details.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.2
1
+ 2.0.3
@@ -252,9 +252,16 @@ module Resque
252
252
  if synchronous?
253
253
  maybe_finalize
254
254
  else
255
- Resque::Job.create(queue_name, AssureFinalization, self.task_id)
255
+ # finalization happens after normal jobs, but in the wierd case where
256
+ # there are only finalization jobs, we need to add a fake normal job
257
+ # that just kicks off the finalization process
258
+ assure_finalization if normal_job_count == 0
256
259
  end
257
260
  end
261
+
262
+ def assure_finalization
263
+ Resque::Job.create(queue_name, AssureFinalization, self.task_id)
264
+ end
258
265
 
259
266
  # Finalize this job group. Finalization entails running all
260
267
  # finalization jobs serially in the order they were defined.
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "resque-multi-step"
8
- s.version = "2.0.2"
8
+ s.version = "2.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Peter Williams", "Morgan Whitney"]
12
- s.date = "2013-04-03"
12
+ s.date = "2014-02-05"
13
13
  s.description = "Provides multi-step tasks with finalization and progress tracking"
14
14
  s.email = "pezra@barelyenough.org"
15
15
  s.extra_rdoc_files = [
@@ -18,6 +18,8 @@ Gem::Specification.new do |s|
18
18
  ]
19
19
  s.files = [
20
20
  ".document",
21
+ "Gemfile",
22
+ "Gemfile.lock",
21
23
  "History.txt",
22
24
  "LICENSE",
23
25
  "README.md",
@@ -42,7 +44,7 @@ Gem::Specification.new do |s|
42
44
  ]
43
45
  s.homepage = "http://github.com/pezra/resque-multi-step"
44
46
  s.require_paths = ["lib"]
45
- s.rubygems_version = "1.8.24"
47
+ s.rubygems_version = "1.8.23"
46
48
  s.summary = "Provides multi-step tasks with finalization and progress tracking"
47
49
 
48
50
  if s.respond_to? :specification_version then
@@ -51,6 +53,8 @@ Gem::Specification.new do |s|
51
53
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
52
54
  s.add_runtime_dependency(%q<resque-multi-step>, [">= 0"])
53
55
  s.add_development_dependency(%q<rspec>, [">= 0"])
56
+ s.add_development_dependency(%q<rspec>, [">= 0"])
57
+ s.add_development_dependency(%q<rspec>, [">= 0"])
54
58
  s.add_runtime_dependency(%q<redis-namespace>, [">= 0"])
55
59
  s.add_runtime_dependency(%q<yajl-ruby>, [">= 0"])
56
60
  s.add_runtime_dependency(%q<resque>, [">= 0"])
@@ -58,6 +62,8 @@ Gem::Specification.new do |s|
58
62
  else
59
63
  s.add_dependency(%q<resque-multi-step>, [">= 0"])
60
64
  s.add_dependency(%q<rspec>, [">= 0"])
65
+ s.add_dependency(%q<rspec>, [">= 0"])
66
+ s.add_dependency(%q<rspec>, [">= 0"])
61
67
  s.add_dependency(%q<redis-namespace>, [">= 0"])
62
68
  s.add_dependency(%q<yajl-ruby>, [">= 0"])
63
69
  s.add_dependency(%q<resque>, [">= 0"])
@@ -66,6 +72,8 @@ Gem::Specification.new do |s|
66
72
  else
67
73
  s.add_dependency(%q<resque-multi-step>, [">= 0"])
68
74
  s.add_dependency(%q<rspec>, [">= 0"])
75
+ s.add_dependency(%q<rspec>, [">= 0"])
76
+ s.add_dependency(%q<rspec>, [">= 0"])
69
77
  s.add_dependency(%q<redis-namespace>, [">= 0"])
70
78
  s.add_dependency(%q<yajl-ruby>, [">= 0"])
71
79
  s.add_dependency(%q<resque>, [">= 0"])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque-multi-step
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-04-03 00:00:00.000000000 Z
13
+ date: 2014-02-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: resque-multi-step
@@ -44,6 +44,38 @@ dependencies:
44
44
  - - ! '>='
45
45
  - !ruby/object:Gem::Version
46
46
  version: '0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: rspec
49
+ requirement: !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ! '>='
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
63
+ - !ruby/object:Gem::Dependency
64
+ name: rspec
65
+ requirement: !ruby/object:Gem::Requirement
66
+ none: false
67
+ requirements:
68
+ - - ! '>='
69
+ - !ruby/object:Gem::Version
70
+ version: '0'
71
+ type: :development
72
+ prerelease: false
73
+ version_requirements: !ruby/object:Gem::Requirement
74
+ none: false
75
+ requirements:
76
+ - - ! '>='
77
+ - !ruby/object:Gem::Version
78
+ version: '0'
47
79
  - !ruby/object:Gem::Dependency
48
80
  name: redis-namespace
49
81
  requirement: !ruby/object:Gem::Requirement
@@ -117,6 +149,8 @@ extra_rdoc_files:
117
149
  - README.md
118
150
  files:
119
151
  - .document
152
+ - Gemfile
153
+ - Gemfile.lock
120
154
  - History.txt
121
155
  - LICENSE
122
156
  - README.md
@@ -163,4 +197,3 @@ signing_key:
163
197
  specification_version: 3
164
198
  summary: Provides multi-step tasks with finalization and progress tracking
165
199
  test_files: []
166
- has_rdoc: