diff --git a/CHANGELOG.md b/CHANGELOG.md index 4af6e14..642ba24 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 1.2.2 (August 17, 2017) + +* Chore: fix Faraday middleware warning + # 1.2.1 (November 18, 2016) * Chore: bump Faraday dependency versions and loosen specificity diff --git a/lib/pco/api/endpoint.rb b/lib/pco/api/endpoint.rb index ec0768c..059d1d9 100644 --- a/lib/pco/api/endpoint.rb +++ b/lib/pco/api/endpoint.rb @@ -116,7 +116,6 @@ def _build_endpoint(path) def _build_connection Faraday.new(url: url) do |faraday| - faraday.adapter :excon faraday.response :json, content_type: /\bjson$/ if @basic_auth_token && @basic_auth_secret faraday.basic_auth @basic_auth_token, @basic_auth_secret @@ -125,6 +124,7 @@ def _build_connection else fail Errors::AuthRequiredError, "You must specify either HTTP basic auth credentials or an OAuth2 access token." end + faraday.adapter :excon end end end diff --git a/lib/pco/api/version.rb b/lib/pco/api/version.rb index f25b5f2..0ddcaed 100644 --- a/lib/pco/api/version.rb +++ b/lib/pco/api/version.rb @@ -1,5 +1,5 @@ module PCO module API - VERSION = '1.2.1' + VERSION = '1.2.2' end end