stormtroopers 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -25,12 +25,11 @@ module Stormtroopers
25
25
  logger.info "Ludicrous speed? Sir! we have never gone that fast before, I dont know if the ship can take it! Whats the matter Colonel Sanders? CHICKEN?!"
26
26
  puts "Ludicrous speed? Sir! we have never gone that fast before, I dont know if the ship can take it! Whats the matter Colonel Sanders? CHICKEN?!"
27
27
  Delayed::Backend::Mongoid::Job.class_eval do
28
- def self.reserve(worker, max_run_time = Worker.max_run_time)
28
+ def self.reserve(worker, max_run_time = Delayed::Worker.max_run_time)
29
29
  where(failed_at: nil, locked_at: nil).find_and_modify({"$set" => {locked_at: db_time_now, locked_by: worker.name}}, new: true)
30
30
  end
31
31
  end
32
- end
33
-
32
+ end
34
33
 
35
34
  while managing? do
36
35
  assigned = armies.map(&:manage)
@@ -1,3 +1,3 @@
1
1
  module Stormtroopers
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stormtroopers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: