{"id":15775176,"url":"https://github.com/styd/diff-routes","last_synced_at":"2025-06-20T10:33:50.252Z","repository":{"id":56889450,"uuid":"245612712","full_name":"styd/diff-routes","owner":"styd","description":":mag: Inspect route changes in Rails console.","archived":false,"fork":false,"pushed_at":"2020-12-12T10:10:45.000Z","size":1109,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-28T13:29:41.323Z","etag":null,"topics":["console","pry","rails","refactoring-tools","routes"],"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/styd.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-07T10:32:10.000Z","updated_at":"2024-05-21T06:35:40.000Z","dependencies_parsed_at":"2022-08-20T16:00:45.083Z","dependency_job_id":null,"html_url":"https://github.com/styd/diff-routes","commit_stats":null,"previous_names":["styd/pry-diff-routes"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/styd/diff-routes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/styd%2Fdiff-routes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/styd%2Fdiff-routes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/styd%2Fdiff-routes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/styd%2Fdiff-routes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/styd","download_url":"https://codeload.github.com/styd/diff-routes/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/styd%2Fdiff-routes/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260927229,"owners_count":23083981,"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":["console","pry","rails","refactoring-tools","routes"],"created_at":"2024-10-04T17:00:21.911Z","updated_at":"2025-06-20T10:33:45.236Z","avatar_url":"https://github.com/styd.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DiffRoutes ![build-test](https://github.com/styd/diff-routes/workflows/build-test/badge.svg?branch=master)\n\n\u003e Inspect routes changes in Rails console.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'pry-rails-diff-routes', group: :development\n```\n\nDiffRoutes will set Pry as the REPL in your Rails console, just like when you use PryRails.\n\nIf you already used PryRails, you should install DiffRoutes after it.\n\n```ruby\ngem 'pry-rails' # not a dependency\ngem 'pry-rails-diff-routes'\n```\n\nWhen you type `help` in Rails console, you'll notice that `diff-routes` is listed in the same\ngroup as PryRails commands.\n\n```\nRails\n  diff-routes        Show the difference you made in routes.\n  find-route         See which urls match a given controller.\n  recognize-path     See which route matches a url.\n  show-middleware    Show all middleware (that rails knows about).\n  show-model         Show the given model.\n  show-models        Show all models.\n  show-routes        Show all routes in match order.\n```\n\n## Usage\n### Flags\n\nA route is considered the same route if it maintains its verb (http method, e.g. `GET`, `POST`,\netc.) and uri path. When its other properties are changed, we call it a modified route.\n\n#### `-R` or `--removed`\n\nShow removed routes only.\n\n#### `-M` or `--modified`\n\nShow modified routes only.\n\n#### `-N` or `--new`\n\nShow new routes only.\n\n#### `-S` or `--save`\n\nMake current routes as the basis for changes.\n\nYou can combine `-R`, `-M`, and `-N` together, but not `-S`.\n\n### Demo Screenshot\n\n![pry-rails-diff-routes demo screenshot](/images/demo-screenshot.gif)\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at\nhttps://github.com/styd/diff-routes.\nThis project is intended to be a safe, welcoming space for collaboration, and contributors are\nexpected to adhere to the\n[code of conduct](https://github.com/styd/diff-routes/blob/master/CODE_OF_CONDUCT.md).\n\n\n## License\n\nThe gem is available as open source under the terms of the\n[MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the DiffRoutes project's codebases, issue trackers, chat rooms\nand mailing lists is expected to follow the\n[code of conduct](https://github.com/styd/routes/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstyd%2Fdiff-routes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstyd%2Fdiff-routes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstyd%2Fdiff-routes/lists"}