lib/zoho_hub/connection.rb in zoho_hub-0.1.4 vs lib/zoho_hub/connection.rb in zoho_hub-0.1.5

- old
+ new

@@ -1,10 +1,11 @@ # frozen_string_literal: true require 'faraday' require 'faraday_middleware' require 'rainbow' +require 'addressable' require 'zoho_hub/response' module ZohoHub class Connection @@ -78,10 +79,10 @@ http_response end def base_url - URI.join(@api_domain, BASE_PATH).to_s + Addressable::URI.join(@api_domain, BASE_PATH).to_s end # The authorization header that must be added to every request for authorized requests. def authorization_header { 'Authorization' => "Zoho-oauthtoken #{@access_token}" }