{"id":13531408,"url":"https://github.com/tisba/faraday-follow-redirects","last_synced_at":"2025-04-13T02:13:22.071Z","repository":{"id":42503603,"uuid":"463065786","full_name":"tisba/faraday-follow-redirects","owner":"tisba","description":"Faraday middleware to follow redirects","archived":false,"fork":false,"pushed_at":"2025-04-11T06:20:01.000Z","size":104,"stargazers_count":24,"open_issues_count":1,"forks_count":8,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-11T08:20:58.891Z","etag":null,"topics":["faraday","http-client","ruby","ruby-gem"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tisba.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-02-24T08:24:20.000Z","updated_at":"2025-04-11T06:20:05.000Z","dependencies_parsed_at":"2024-06-21T20:19:51.169Z","dependency_job_id":"c90598d7-7ec1-4cec-bdb5-d5da97859a4a","html_url":"https://github.com/tisba/faraday-follow-redirects","commit_stats":{"total_commits":45,"total_committers":5,"mean_commits":9.0,"dds":"0.15555555555555556","last_synced_commit":"29e82ec91b8c0dbd030a0891566374bf91cb2d79"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tisba%2Ffaraday-follow-redirects","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tisba%2Ffaraday-follow-redirects/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tisba%2Ffaraday-follow-redirects/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tisba%2Ffaraday-follow-redirects/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tisba","download_url":"https://codeload.github.com/tisba/faraday-follow-redirects/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248365210,"owners_count":21091750,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["faraday","http-client","ruby","ruby-gem"],"created_at":"2024-08-01T07:01:02.798Z","updated_at":"2025-04-13T02:13:22.051Z","avatar_url":"https://github.com/tisba.png","language":"Ruby","funding_links":[],"categories":["Middleware"],"sub_categories":[],"readme":"# Faraday Follow Redirects\n\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/tisba/faraday-follow-redirects/ci.yaml)](https://github.com/tisba/faraday-follow-redirects/actions?query=branch%3Amain)\n[![Gem](https://img.shields.io/gem/v/faraday-follow_redirects.svg?style=flat-square)](https://rubygems.org/gems/faraday-follow_redirects)\n[![License](https://img.shields.io/github/license/tisba/faraday-follow-redirects.svg?style=flat-square)](LICENSE.md)\n\n[Faraday](https://github.com/lostisland/faraday) middleware to follow HTTP redirects transparently.\n\n\u003e [!IMPORTANT]\n\u003e This is a Faraday 2.x compatible extraction of the deprecated [`FaradayMiddleware::FollowRedirects` (v1.2.0)](https://github.com/lostisland/faraday_middleware/blob/v1.2.0/lib/faraday_middleware/response/follow_redirects.rb). This gem will also work with Faraday 1.x on a best-effort basis. **Faraday 1.x support is considered deprecated, please update to Faraday 2.x as soon as possible!**\n\u003e\n\u003e We only support non-EOL versions of Ruby. See [Ruby Maintenance Branches](https://www.ruby-lang.org/en/downloads/branches/) for the list of non-EOL Rubies.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'faraday-follow_redirects'\n```\n\nAnd then execute:\n\n```shell\nbundle install\n```\n\nOr install it yourself as:\n\n```shell\ngem install faraday-follow_redirects\n```\n\n## Usage\n\n```ruby\nrequire 'faraday/follow_redirects'\n\nFaraday.new(url: url) do |faraday|\n  faraday.response :follow_redirects # use Faraday::FollowRedirects::Middleware\n  faraday.adapter Faraday.default_adapter\nend\n```\n\n## Upgrading from Faraday 1.x\n\nIf you still use Faraday 1.x, and have uninstalled the `faraday_middleware` gem, all you have to change is:\n\n```diff\n- conn.use FaradayMiddleware::FollowRedirects\n+ conn.use Faraday::FollowRedirects::Middleware\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies.\n\nThen, run `bin/test` to run the tests.\n\nTo install this gem onto your local machine, run `rake build`.\n\nTo release a new version, make a commit with a message such as \"Bumped to 0.0.2\" and then run `rake release`.\nSee how it works [here](https://bundler.io/guides/creating_gem.html#releasing-the-gem).\n\nThe `.ruby-version` file defines the default version to be used for development.\n\n### Appraisal for testing multiple versions of dependencies\n\nWe use [appraisal](https://github.com/thoughtbot/appraisal) to test against both faraday 1.x and 2.x, and `./bin/test` will run tests against both. To run tests against just one you could:\n\n```shell\nbundle exec appraisal faraday_1 rspec\nbundle exec appraisal faraday_2 rspec\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on [GitHub](https://github.com/tisba/faraday-follow-redirects).\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftisba%2Ffaraday-follow-redirects","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftisba%2Ffaraday-follow-redirects","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftisba%2Ffaraday-follow-redirects/lists"}