lib/stalker.rb in stalker-0.4.1 vs lib/stalker.rb in stalker-0.4.2

- old
+ new

@@ -27,9 +27,10 @@ class NoJobsDefined < RuntimeError; end class NoSuchJob < RuntimeError; end def prep(jobs=nil) raise NoJobsDefined unless defined?(@@handlers) + @@error_handler = nil unless defined?(@@error_handler) jobs ||= all_jobs jobs.each do |job| raise(NoSuchJob, job) unless @@handlers[job]