lib/zilla/loader_factory.rb in zilla-0.1.3 vs lib/zilla/loader_factory.rb in zilla-0.1.4

- old
+ new

@@ -2,16 +2,16 @@ module Zilla::LoaderFactory class UnknownLoader < Zilla::Error; end class << self - def build(input, &block) + def build(input, faraday_config: {}, &block) case input when Hash Zilla::Loaders::Hash when String for_string(input) - end.new(input, faraday_config_block: block) + end.new(input, faraday_config:, faraday_config_block: block) rescue NoMethodError raise UnknownLoader, "cannot find loader for #{input.inspect}" end private