Skip to content

Commit bdc45d1

Browse files
authored
Merge pull request #6 from planningcenter/jm/faraday_middleware_warning
Fix Faraday middleware warning, bump to v1.2.2
2 parents 487486d + e6dc2e6 commit bdc45d1

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 1.2.2 (August 17, 2017)
2+
3+
* Chore: fix Faraday middleware warning
4+
15
# 1.2.1 (November 18, 2016)
26

37
* Chore: bump Faraday dependency versions and loosen specificity

lib/pco/api/endpoint.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ def _build_endpoint(path)
116116

117117
def _build_connection
118118
Faraday.new(url: url) do |faraday|
119-
faraday.adapter :excon
120119
faraday.response :json, content_type: /\bjson$/
121120
if @basic_auth_token && @basic_auth_secret
122121
faraday.basic_auth @basic_auth_token, @basic_auth_secret
@@ -125,6 +124,7 @@ def _build_connection
125124
else
126125
fail Errors::AuthRequiredError, "You must specify either HTTP basic auth credentials or an OAuth2 access token."
127126
end
127+
faraday.adapter :excon
128128
end
129129
end
130130
end

lib/pco/api/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module PCO
22
module API
3-
VERSION = '1.2.1'
3+
VERSION = '1.2.2'
44
end
55
end

0 commit comments

Comments
 (0)