lib/saorin/client.rb in saorin-0.2.0 vs lib/saorin/client.rb in saorin-0.3.0

- old
+ new

@@ -1,12 +1,15 @@ -require 'saorin/adapters/clients' +require 'saorin/registerable' module Saorin - class Client + module Client + include Registerable + self.load_path = 'saorin/client' + class << self def new(options = {}, &block) adapter = options.delete(:adapter) || :faraday - adapter_class = Saorin::Adapters::Clients.guess adapter + adapter_class = guess adapter adapter_class.new options, &block end end end end