lib/nimbu-api/connection.rb in nimbu-api-0.1.3 vs lib/nimbu-api/connection.rb in nimbu-api-0.1.4
- old
+ new
@@ -72,10 +72,10 @@
end
# Returns a Fraday::Connection object
#
def connection(options={})
- conn_options = default_options({ :ssl => { :ca_file => File.expand_path("../../../vendor/cacert.pem", __FILE__) } }.merge(options))
+ conn_options = default_options(options)
clear_cache unless options.empty?
puts "OPTIONS:#{conn_options.inspect}" if ENV['DEBUG']
Faraday.new(conn_options.merge(:builder => stack(options)))
end