Faraday 2.x compatible extraction of FaradayMiddleware::FollowRedirects
. If you are still using Faraday 1.x, check out https://github.com/lostisland/faraday_middleware.
This gem is based on the deprecated FaradayMiddleware::FollowRedirects
(v1.2.0).
Add this line to your application's Gemfile:
gem 'faraday-follow_redirects'
And then execute:
bundle install
Or install it yourself as:
gem install faraday-follow_redirects
require 'faraday/follow_redirects'
Faraday.new(url: url) do |faraday|
faraday.use Faraday::FollowRedirects::Middleware
faraday.adapter Faraday.default_adapter
end
After checking out the repo, run bin/setup
to install dependencies.
Then, run bin/test
to run the tests.
To install this gem onto your local machine, run rake build
.
To release a new version, make a commit with a message such as "Bumped to 0.0.2" and then run rake release
.
See how it works here.
Bug reports and pull requests are welcome on GitHub.
The gem is available as open source under the terms of the MIT License.