module Faraday::DependencyLoader

def dependency(lib = nil)

libraries
Executes a block which should try to require and reference dependent
def dependency(lib = nil)
  lib ? require(lib) : yield
rescue LoadError, NameError => e
  self.load_error = e
end