lib/harness.rb in harness-0.1.0 vs lib/harness.rb in harness-0.1.1

- old
+ new

@@ -13,11 +13,11 @@ module Harness class LoggingError < RuntimeError ; end class Config attr_reader :adapter - attr_accessor :test_mode + attr_accessor :syncronous def adapter=(val) if val.is_a? Symbol @adapter = "Harness::#{val.to_s.classify}Adapter".constantize else @@ -46,10 +46,10 @@ Thread.current["#{object_id}_harness_consumer_"] ||= Consumer.new end def self.log(measurement) queue << measurement - wait if config.test_mode + wait if config.syncronous end def self.mutex @mutex ||= Mutex.new end