{"id":13533247,"url":"https://github.com/gregorym/bump","last_synced_at":"2025-05-15T16:07:58.068Z","repository":{"id":40643651,"uuid":"2000248","full_name":"gregorym/bump","owner":"gregorym","description":"Bump is a gem that will simplify the way you build gems.","archived":false,"fork":false,"pushed_at":"2023-05-12T22:30:33.000Z","size":213,"stargazers_count":182,"open_issues_count":4,"forks_count":45,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-05-15T17:11:42.801Z","etag":null,"topics":["gem","ruby","versioning","versions"],"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/gregorym.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2011-07-05T12:11:51.000Z","updated_at":"2024-06-06T07:08:31.222Z","dependencies_parsed_at":"2024-06-06T07:18:32.352Z","dependency_job_id":null,"html_url":"https://github.com/gregorym/bump","commit_stats":{"total_commits":216,"total_committers":36,"mean_commits":6.0,"dds":0.8101851851851851,"last_synced_commit":"b5fe00c2e6b226b450793fc0428df1a7541e4173"},"previous_names":[],"tags_count":34,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregorym%2Fbump","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregorym%2Fbump/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregorym%2Fbump/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregorym%2Fbump/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gregorym","download_url":"https://codeload.github.com/gregorym/bump/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254374475,"owners_count":22060611,"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","ruby","versioning","versions"],"created_at":"2024-08-01T07:01:17.989Z","updated_at":"2025-05-15T16:07:53.051Z","avatar_url":"https://github.com/gregorym.png","language":"Ruby","readme":"[![Gem Version](https://badge.fury.io/rb/bump.svg)](http://badge.fury.io/rb/bump)\n\nA gem to bump versions of gems and chef-cookbooks.\n\n - bumps version major / minor / patch / pre\n - bundles\n - commits changes\n\n# Installation\n\n    gem install bump\n\n# Usage\n\n### Show current version\n\n    bump current\n\n\u003e 0.1.2\n\n### Bump (major, minor, patch, pre)\n\n    bump patch\n\n\u003e Bump version 0.1.2 to 0.1.3\n\n### Show next version\n\n    bump show-next patch\n\n\u003e 0.1.3\n\n### Show version file path\n\n    bump file\n\n\u003e lib/foo/version.rb\n\n## Options\n\n### `--no-commit`\n\nDo not commit after bumping.\n\n    bump patch --no-commit\n\n### `--tag`\n\nWill add a git tag like `v1.2.3` (if the current project is a git repository and `--no-commit` has not been given).\n\n    bump patch --tag\n\nThe `--tag-prefix` option can change the tag prefix:\n\n    bump patch --tag --tag-prefix v-     # tag as v-1.2.3\n    bump patch --tag --tag-prefix \"\"     # tag as 1.2.3\n\n### `--no-bundle`\n\nDo not run `bundle` command after bumping.\n\n    bump patch --no-bundle\n\n### `--replace-in`\n\nBump the version in additional files.\n\n    bump patch --replace-in Readme.md\n\n### `--commit-message [MSG], -m [MSG]`\n\nAppend additional information to the commit message.\n\n    bump patch --commit-message \"Something extra\"\n\nor\n\n    bump patch -m \"Something extra\"\n\n### `--changelog`\n\nUpdates `CHANGELOG.md` when bumping.\nThis requires a heading (starting with `##`) that includes the previous version and a heading above that, for example:\n\n```markdown\n### Next\n- Added bar\n\n### v0.0.0 - 2019-12-24\n- Added foo\n```\n\n### `--edit-changelog`\n\nUpdates CHANGELOG.md when bumping (see above), and\nopens the changelog in an editor specified in `$EDITOR` (or `vi`),\nthen waits for the editor to be closed and continues.\n\n```bash\nEDITOR=\"subl -n -w\" bump patch --edit-changelog\n```\n\n## Rake\n\n```ruby\n# Rakefile\nrequire \"bump/tasks\"\n\n#\n# do not always tag the version\n# Bump.tag_by_default = false\n#\n# bump the version in additional files\n# Bump.replace_in_default = [\"Readme.md\"]\n#\n# Maintain changelog:\n# Bump.changelog = true\n# Opens the changelog in an editor when bumping\n# Bump.changelog = :editor\n```\n\n    rake bump:current                           # display current version\n    rake bump:show-next INCREMENT=minor         # display next minor version\n    rake bump:file                              # display version file path\n\n    # bumping using defaults for `COMMIT`, `TAG`, and `BUNDLE`\n    rake bump:major\n    rake bump:patch\n    rake bump:minor\n    rake bump:pre\n\n    # bumping with option(s)\n    rake bump:patch TAG=false BUNDLE=false      # commit, but don't tag or run `bundle`\n    rake bump:patch TAG=true TAG_PREFIX=v-      # tag with a prefix 'v-' ex. the tag will look like v-0.0.1\n    rake bump:patch COMMIT=false TAG=false      # don't commit, don't tag\n    rake bump:minor BUNDLE=false                # don't run `bundle`\n    rake bump:minor COMMIT_MESSAGE=\"release it\" # custom commit message, appended to version\n\n## Ruby\n\n```ruby\nrequire \"bump\"\nBump::Bump.current        # -\u003e \"1.2.3\"\nBump::Bump.next_version(\"patch\")        # -\u003e \"1.2.4\"\nBump::Bump.file           # -\u003e \"lib/foo/version.rb\"\nBump::Bump.run(\"patch\")   # -\u003e version changed\nBump::Bump.run(\"patch\", tag: true, tag_prefix: 'v-') # -\u003e version changed with tagging with '-v' as prefix\nBump::Bump.run(\"patch\", commit: false, bundle:false, tag:false) # -\u003e version changed with options\nBump::Bump.run(\"patch\", commit_message: '[no ci]') # -\u003e creates a commit message with 'v1.2.3 [no ci]' instead of default: 'v1.2.3'\n```\n\n# Supported locations\n\n- `VERSION` file with `1.2.3`\n- `gemspec` with `gem.version = \"1.2.3\"` or `Gem:Specification.new \"gem-name\", \"1.2.3\" do`\n- `lib/**/version.rb` file with `VERSION = \"1.2.3\"`\n- `metadata.rb` with `version \"1.2.3\"`\n- `VERSION = \"1.2.3\"` in `lib/**/*.rb`\n\n# Author\n\nGregory\u003cbr\u003e\nLicense: MIT\n","funding_links":[],"categories":["Ruby","Awesome Ruby CLIs"],"sub_categories":["Release"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregorym%2Fbump","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgregorym%2Fbump","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregorym%2Fbump/lists"}