{"id":16679691,"url":"https://github.com/buren/verify_redirects","last_synced_at":"2026-04-24T15:32:44.595Z","repository":{"id":56897335,"uuid":"144994990","full_name":"buren/verify_redirects","owner":"buren","description":"Verify HTTP redirects - comes with CLI and CSV support (you can of course use plain Ruby too).","archived":false,"fork":false,"pushed_at":"2021-11-29T11:27:54.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-29T17:31:59.438Z","etag":null,"topics":["http-redirect","rubygem"],"latest_commit_sha":null,"homepage":null,"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/buren.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-16T13:55:59.000Z","updated_at":"2018-08-19T09:45:06.000Z","dependencies_parsed_at":"2022-08-20T17:40:32.591Z","dependency_job_id":null,"html_url":"https://github.com/buren/verify_redirects","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/buren/verify_redirects","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buren%2Fverify_redirects","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buren%2Fverify_redirects/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buren%2Fverify_redirects/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buren%2Fverify_redirects/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/buren","download_url":"https://codeload.github.com/buren/verify_redirects/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buren%2Fverify_redirects/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32228978,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["http-redirect","rubygem"],"created_at":"2024-10-12T13:36:54.871Z","updated_at":"2026-04-24T15:32:44.575Z","avatar_url":"https://github.com/buren.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VerifyRedirects - Verify HTTP redirects\n\nVerify HTTP redirects - comes with CLI and CSV support (you can of course use plain Ruby too).\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'verify_redirects'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install verify_redirects\n\n## CLI usage\n\n```\nUsage: verify_redirects --help\n        --input=val0                 CSV file path (required) - must be a file with two columns: from_url, to_url (order doesn't matter)\n        --output=val0                CSV output path (optional)\n        --[no-]debug                 Print debug output (default: false)\n    -h, --help                       How to use\n```\n\n## Ruby usage\n\nUse the verifier directly\n```ruby\nverifier = VerifyRedirects::Verifier.new\n\n[\n  # from_url, to_url\n  %w[http://example.com/jacobburenstam https://jacobburenstam.com/]\n  # ...\n].each do |data|\n  from, to = data\n  result = verifier.call(from, to)\n\n  result.success # =\u003e false\n  result.start_url # =\u003e 'http://example.com/jacobburenstam'\n  result.expected_redirect # =\u003e 'https://jacobburenstam.com/'\n  result.redirected_to # =\u003e nil\nend\n\nverifier.results.length # =\u003e 1\n```\n\nFrom CSV-files\n\n```ruby\ninput_path = '/tmp/in.csv'\noutput_path = '/tmp/out.csv'\n# create demo data\nFile.write(input_path, \u003c\u003c~CSV\n  from_url,to_url\n  http://jacobburenstam.com/,https://jacobburenstam.com/\n  http://example.com/,https://google.com/\nCSV\n)\n\n# input_path - must be a CSV file with two columns: from_url, to_url (order doesn't matter)\nVerifyRedirects.from_csv(input_path: input_path, output_path: output_path) do |result|\n  unless result.success\n    puts \"Failed redirect for #{result.start_url}\"\n  end\nend\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/buren/verify_redirects.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fburen%2Fverify_redirects","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fburen%2Fverify_redirects","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fburen%2Fverify_redirects/lists"}