{"id":13879390,"url":"https://github.com/bobf/strong_versions","last_synced_at":"2025-07-16T15:32:17.138Z","repository":{"id":59156703,"uuid":"155183570","full_name":"bobf/strong_versions","owner":"bobf","description":"Enforce a strict versioning policy in your Gemfile","archived":false,"fork":false,"pushed_at":"2020-07-12T11:31:09.000Z","size":3730,"stargazers_count":28,"open_issues_count":4,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-31T13:48:52.406Z","etag":null,"topics":["bundle","bundler","gem","gemfile","rubocop","ruby"],"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/bobf.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-10-29T09:16:34.000Z","updated_at":"2024-09-23T19:03:15.000Z","dependencies_parsed_at":"2022-09-13T20:10:53.097Z","dependency_job_id":null,"html_url":"https://github.com/bobf/strong_versions","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bobf%2Fstrong_versions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bobf%2Fstrong_versions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bobf%2Fstrong_versions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bobf%2Fstrong_versions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bobf","download_url":"https://codeload.github.com/bobf/strong_versions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226143895,"owners_count":17580245,"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":["bundle","bundler","gem","gemfile","rubocop","ruby"],"created_at":"2024-08-06T08:02:19.383Z","updated_at":"2024-11-24T08:31:18.916Z","avatar_url":"https://github.com/bobf.png","language":"Ruby","readme":"# StrongVersions\n\n# Overview\n\n_StrongVersions_ enforces a strict policy on your `Gemfile` requirements:\n\n* The pessimistic `~\u003e` operator must be used for all gem requirement definitions.\n* If the gem version is greater than 1, the requirement format must be `major.minor`, e.g. `'~\u003e 2.5`'\n* If the gem version is less than 1, the requirement format must be `major.minor.patch`, e.g. `'~\u003e 0.8.9'`\n* A lower/upper bound can be specified as long as a valid pessimistic version is also specified, e.g. `'~\u003e 8.4', '\u003c 8.6.7'`\n* All gems with a `path` or `git` source are ignored, e.g. `path: '/path/to/gem'`, `git: 'https://github.com/bobf/strong_versions'`\n* All gems specified in the [ignore list](#ignore) are ignored.\n\nAny gems that do not satisfy these rules will be included in the _StrongVersions_ output with details on why they did not meet the standard.\n\nWhen all gems in a `Gemfile` follow this convention it SHOULD always be safe to run `bundle update` (assuming all gems adhere to [Semantic Versioning](https://semver.org/)).\n\n![StrongVersions](doc/images/strong-versions-example.png)\n\n## Installation\n\nAdd the gem to your `Gemfile`\n\n```ruby\ngem 'strong_versions', '~\u003e 0.4.5'\n```\n\nAnd rebuild your bundle:\n\n```bash\n$ bundle install\n```\n\n## Usage\n\n_StrongVersions_ is invoked with a provided executable:\n\n```bash\n$ bundle exec strong_versions\n```\n\nThe executable will output all non-passing gems and will return an exit code of `1` on failure, `0` on success (i.e. all gems passing). This makes _StrongVersions_ suitable for use in a continuous integration pipeline:\n\n![StrongVersions](doc/images/ci-pipeline.png)\n\nAuto-correct is available with the `-a/--auto-correct` option:\n```bash\n$ bundle exec strong_versions -a\n```\n\n### Exclusions\n\n\u003ca name=\"ignore\"\u003e\u003c/a\u003eYou can tell _StrongVersions_ to ignore any of your gems (e.g. those that don't follow _semantic versioning_) by adding them to the `ignore` section of `.strong_versions.yml` in your project root, e.g.:\n\n```yaml\n# .strong_versions.yml\nignore:\n  - rails\n```\n\nGems in the ignore list will not be updated when using the `-a/--auto-correct` option.\n## Contributing\n\nFork and create a pull request.\n\nRun tests with _RSpec_:\n\n```\n$ bin/rspec\n```\n\nCheck code with _Rubocop_:\n\n```\n$ bin/rubocop\n```\n\n## License\n\n[MIT License](LICENSE)\n","funding_links":[],"categories":["Ruby"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbobf%2Fstrong_versions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbobf%2Fstrong_versions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbobf%2Fstrong_versions/lists"}