lib/deputy.rb in deputy-0.1.55 vs lib/deputy.rb in deputy-0.1.56

- old
+ new

@@ -3,10 +3,14 @@ require 'cgi' require "socket" def eval_and_fetch_constants(x) old = Module.constants.map{|c| c.to_s} - eval(x) + begin + eval(x) + rescue Exception => e + raise e unless Deputy.config['silent_on_errors'] + end new = (Module.constants.map{|c| c.to_s} - old) new = new.select{|c| c.to_s =~ /^TEMP/ } # do not fetch required libs, just user-defined new.map{|c| const_get(c) } end