Since we use both Dwolla and Plaid together, Plaid recently has made major updates and with updating to Plaid v14, it requires Faraday v1 at a minimum. The Dwolla library seems to play well with Faraday v1 but can cause many reported deprecation warnings due to this line:
WARNING: Faraday::Connection#authorization is deprecated; it will be removed in version 2.0.
While initializing your connection, use #request(:authorization, ...) instead.
See https://lostisland.github.io/faraday/middleware/authentication for more usage info.
I believe the affected line should be changed to the following and that should do it:
f.request :authorization, 'Bearer', access_token if access_token
It seems this should be supported as far back as Faraday v0.15 so it should be safe for a minor or patch release.
Since we use both Dwolla and Plaid together, Plaid recently has made major updates and with updating to Plaid v14, it requires Faraday v1 at a minimum. The Dwolla library seems to play well with Faraday v1 but can cause many reported deprecation warnings due to this line:
https://github.com/Dwolla/dwolla-v2-ruby/blob/d829ed1592492e5f794fa0db6a0bc020c6a8a3c6/lib/dwolla_v2/token.rb#L56
I believe the affected line should be changed to the following and that should do it:
It seems this should be supported as far back as Faraday v0.15 so it should be safe for a minor or patch release.