lib/god.rb in god-0.7.22 vs lib/god.rb in god-0.8.0
- old
+ new
@@ -1,10 +1,7 @@
$:.unshift File.dirname(__FILE__) # For use/testing when no gem is installed
-# rubygems
-require 'rubygems'
-
# core
require 'stringio'
require 'fileutils'
begin
@@ -532,9 +529,12 @@
end
end
watches = self.pending_watches.dup
self.pending_watches.clear
self.pending_watch_states.clear
+
+ # make sure we quit capturing when we're done
+ LOG.finish_capture
rescue Exception => e
# don't ever let running_load take down god
errors << LOG.finish_capture
unless e.instance_of?(SystemExit)