lib/timetree.rb in timetree-0.0.1 vs lib/timetree.rb in timetree-0.1.0

- old
+ new

@@ -1,26 +1,23 @@ # frozen_string_literal: true -Dir[ - File.join( - File.dirname(__FILE__), - 'timetree', - '*' - ) -].sort.each do |f| - require f -end +require 'zeitwerk' +loader = Zeitwerk::Loader.for_gem +loader.inflector.inflect( + 'timetree' => 'TimeTree' +) +loader.setup +# module for TimeTree apis client module TimeTree + class Error < StandardError + end class << self def configure yield configuration end def configuration @configuration ||= Configuration.new end - end - - class Error < StandardError end end