lib/apisync.rb in apisync-0.2.0 vs lib/apisync.rb in apisync-0.2.1

- old
+ new

@@ -15,19 +15,19 @@ @@host = nil # Verbose will do $stdout.puts. That's useful on a Rails console in # development, where logger output is ommited. @@verbose = false - @@logger = ::Logger.new(IO::NULL) + @@logger = nil attr_accessor :verbose def initialize(api_key: nil, verbose: nil, logger: nil) @api_key = api_key || @@api_key @host = @@host @verbose = verbose || @@verbose - @logger = logger || @@logger + @logger = logger || @@logger || ::Logger.new(IO::NULL) raise ArgumentError, "missing keyword: api_key" if @api_key.nil? end def method_missing(name, args = {}, &block)