jeffshantz / hyperkit

Hyperkit is a flat, Ruby-based API wrapper for LXD, the next-generation hypervisor.
http://jeffshantz.github.io/hyperkit
Other
41 stars 15 forks source link

Fix deprecation warning from Faraday #18

Closed evhan closed 5 years ago

evhan commented 5 years ago

Inheriting from Faraday::Error::ClientError is deprecated in favour of Faraday::ClientError per 1 and 2. Changing this superclass dispels a warning message that is currently printed whenever hyperkit is used:

NOTE: Inheriting Faraday::Error::ClientError is deprecated; use Faraday::ClientError instead. It will be removed in or after version 1.0
Faraday::Error::ClientError.inherited called from <...>/hyperkit-1.2.0/lib/hyperkit/middleware/follow_redirects.rb:13.
coveralls commented 5 years ago

Coverage Status

Coverage increased (+0.0002%) to 99.098% when pulling bdb1762c04765f0b0fb4b336a6fee06157d4a420 on evhan:fix-faraday-deprecation-warning into f553cf4fdfb5500bf62b24e0ef8b6a5cf9c0b4aa on jeffshantz:master.

jeffshantz commented 5 years ago

Thank you!