{"id":15461112,"url":"https://github.com/nikolalsvk/ordinare","last_synced_at":"2025-04-05T08:08:07.150Z","repository":{"id":56887054,"uuid":"98469634","full_name":"nikolalsvk/ordinare","owner":"nikolalsvk","description":"Ordinare sorts gems in your Gemfile alphabetically","archived":false,"fork":false,"pushed_at":"2020-07-31T12:30:10.000Z","size":2498,"stargazers_count":179,"open_issues_count":1,"forks_count":6,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-29T07:07:58.221Z","etag":null,"topics":["gem","rails","sort"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/ordinare","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/nikolalsvk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"nikolalsvk","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":"https://www.paypal.me/nikolalsvk/10"}},"created_at":"2017-07-26T22:07:40.000Z","updated_at":"2024-12-06T16:54:41.000Z","dependencies_parsed_at":"2022-08-21T00:20:43.067Z","dependency_job_id":null,"html_url":"https://github.com/nikolalsvk/ordinare","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikolalsvk%2Fordinare","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikolalsvk%2Fordinare/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikolalsvk%2Fordinare/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikolalsvk%2Fordinare/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikolalsvk","download_url":"https://codeload.github.com/nikolalsvk/ordinare/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247305934,"owners_count":20917208,"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":["gem","rails","sort"],"created_at":"2024-10-01T23:40:47.476Z","updated_at":"2025-04-05T08:08:07.116Z","avatar_url":"https://github.com/nikolalsvk.png","language":"Ruby","funding_links":["https://github.com/sponsors/nikolalsvk","https://www.paypal.me/nikolalsvk/10"],"categories":["Ruby"],"sub_categories":[],"readme":"# ordinare\n\n[![Build Status](https://semaphoreci.com/api/v1/nikolalsvk/ordinare/branches/master/shields_badge.svg)](https://semaphoreci.com/nikolalsvk/ordinare)\n[![Gem Version](https://badge.fury.io/rb/ordinare.svg)](https://badge.fury.io/rb/ordinare)\n[![codecov](https://codecov.io/gh/nikolalsvk/ordinare/branch/master/graph/badge.svg)](https://codecov.io/gh/nikolalsvk/ordinare)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](CONTRIBUTING.md#5-make-a-pull-request)\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fnikolalsvk%2Fordinare.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fnikolalsvk%2Fordinare?ref=badge_shield)\n[![Open Source Helpers](https://www.codetriage.com/nikolalsvk/ordinare/badges/users.svg)](https://www.codetriage.com/nikolalsvk/ordinare)\n\nOrdinare sorts gems in your Gemfile alphabetically\n\n![ordinare GIF](ordinare.gif)\n\nIn order to install the gem, do:\n\n```\n$ gem install ordinare\n```\n\n## Usage :pick:\n\nPosition yourself inside Rails project with Gemfile and do:\n\n```\n$ ordinare\n```\n\nAnd that's it!\nOrdinare will sort your Gemfile and overwrite your current Gemfile.\n\nIf you don't want ordinare to overwrite your Gemfile, see [Don't overwrite Gemfile](#dont-overwrite-gemfile).\n\n_NOTE: be sure to do `$ bundle install` after ordinare sorts your Gemfile just\nto make sure everything is OK._\n\n### Love for the gem groups :heart:\n\nIf you're using something along these lines in your Gemfile:\n```ruby\n...\n\ngroup :test do\n  gem \"webmock\"\n  gem \"cucumber-rails\"\nend\n\ngroup :development do\n  gem \"byebug\"\n  gem \"spring\"\ndo\n\n...\n```\nordinare will consider groups inside your Gemfile and will sort\ngems inside those groups, not messing them up.\n\n### Love for the comment groups :green_heart:\n\nIf you're organizing your gems using comments in similar fashion:\n```ruby\n...\n\n# Auth\ngem \"devise\"\ngem \"oauth2\"\n\n# Assets\ngem \"sprockets\"\ngem \"sprockets-es6\"\ngem \"pusher\"\n\n...\n```\nordinare will sort gems below your comments, treating them as groups\n(e.g. \"Auth\" group and \"Assets\" group).\n\n## Advanced usage :hammer_and_pick:\n\n### Pass in path to Gemfile\n\nYou can pass in path to your gemfile:\n\n```\n$ ordinare --path my_awesome_project/Gemfile\n```\n\nAnd that's it!\nYou can find your ordered Gemfile at `my_awesome_project/Gemfile`.\n\n### Don't overwrite Gemfile\n\nOrdinare has an option that will make Gemfile.ordinare instead of overwriting\nyour original Gemfile.\n\nJust call ordinare like this:\n\n```\n$ ordinare --no-overwrite\n```\n\nAnd that's it!\nYou can find your ordered Gemfile at `Gemfile.ordinare`.\n\n### Check if Gemfile is sorted\n\nThere is an option to check your Gemfile to see if it's sorted.\nThis will not overwrite nor create a new sorted Gemfile.\n\nCall ordinare like this:\n```\nordinare --check\n```\n\nAnd that's it, ordinare will inform your whether your Gemfile is\nsorted properly or not. This can be useful on some CI server\nwhere you check if Gemfile is sorted.\n\n## Contributing :writing_hand:\n\nAny suggestions and improvements are more than welcome :bowing_man:.\n\nIf you'd like to contribute, you can check [CONTRIBUTING.md](CONTRIBUTING.md)\n\n\n## License\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fnikolalsvk%2Fordinare.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fnikolalsvk%2Fordinare?ref=badge_large)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikolalsvk%2Fordinare","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikolalsvk%2Fordinare","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikolalsvk%2Fordinare/lists"}