job_boss 0.7.8 → 0.7.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/job_boss.gemspec +1 -1
  2. data/lib/job_boss/job.rb +6 -0
  3. metadata +3 -3
data/job_boss.gemspec CHANGED
@@ -4,7 +4,7 @@ $:.unshift lib unless $:.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "job_boss"
7
- s.version = '0.7.8'
7
+ s.version = '0.7.9'
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.authors = ["Brian Underwood"]
10
10
  s.email = ["ml+job_boss@semi-sentient.com"]
data/lib/job_boss/job.rb CHANGED
@@ -219,6 +219,12 @@ module JobBoss
219
219
  end
220
220
  end
221
221
 
222
+ def cancel(jobs = nil)
223
+ if jobs
224
+ jobs.each(&:cancel)
225
+ end
226
+ end
227
+
222
228
  # Given a time object
223
229
  # Delete all jobs which were completed earlier than that time
224
230
  def delete_jobs_before(time)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: job_boss
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
- - 8
10
- version: 0.7.8
9
+ - 9
10
+ version: 0.7.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Brian Underwood