lib/datacite/client.rb in datacite-0.2.3 vs lib/datacite/client.rb in datacite-0.3.0

- old
+ new

@@ -1,9 +1,8 @@ # frozen_string_literal: true require "faraday" -require "faraday_middleware" require "dry/monads" require "json_schema" module Datacite # The connection to DataCite API @@ -17,10 +16,10 @@ @conn = Faraday.new( url: "https://#{host}", headers: headers ) do |conn| conn.request :json - conn.request(:basic_auth, username, password) + conn.request :authorization, :basic, username, password conn.response :json end end # Creates a random DOI