lib/her/api.rb in her-0.3.7 vs lib/her/api.rb in her-0.3.8

- old
+ new

@@ -51,10 +51,10 @@ # end def setup(attrs={}) attrs[:url] = attrs.delete(:base_uri) if attrs.include?(:base_uri) # Support legacy :base_uri option @base_uri = attrs[:url] @options = attrs - @connection = Faraday.new(attrs.slice(:url, :ssl)) do |connection| + @connection = Faraday.new(@options) do |connection| yield connection if block_given? end end # Define a custom parsing procedure. The procedure is passed the response object and is