{"id":16577784,"url":"https://github.com/philippus/bump","last_synced_at":"2025-03-21T12:31:58.643Z","repository":{"id":31509050,"uuid":"127307240","full_name":"Philippus/bump","owner":"Philippus","description":"💥 Bump the semantic version for your next release :shipit:","archived":false,"fork":false,"pushed_at":"2025-03-17T21:25:09.000Z","size":362,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-17T22:43:05.110Z","etag":null,"topics":["parser-combinators","scala","semantic-versioning"],"latest_commit_sha":null,"homepage":"","language":"Scala","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/Philippus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2018-03-29T14:58:42.000Z","updated_at":"2025-03-17T21:25:13.000Z","dependencies_parsed_at":"2023-09-26T00:07:55.568Z","dependency_job_id":"bd9789e7-0890-41f9-a013-0614fbedcb15","html_url":"https://github.com/Philippus/bump","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Philippus%2Fbump","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Philippus%2Fbump/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Philippus%2Fbump/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Philippus%2Fbump/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Philippus","download_url":"https://codeload.github.com/Philippus/bump/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244799468,"owners_count":20512254,"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":["parser-combinators","scala","semantic-versioning"],"created_at":"2024-10-11T22:12:14.771Z","updated_at":"2025-03-21T12:31:58.299Z","avatar_url":"https://github.com/Philippus.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bump - Semantic Versioning\n\n[![build](https://github.com/Philippus/bump/workflows/build/badge.svg)](https://github.com/Philippus/bump/actions/workflows/scala.yml?query=workflow%3Abuild+branch%3Amain)\n[![codecov](https://codecov.io/gh/Philippus/bump/branch/main/graph/badge.svg)](https://codecov.io/gh/Philippus/bump)\n![Current Version](https://img.shields.io/badge/version-0.1.3-brightgreen.svg?style=flat \"0.1.3\")\n[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat \"MIT\")](LICENSE.md)\n\nBump is a library for working with semantic versioning following the [Semantic Versioning 2.0.0](https://semver.org/)\nspecification. It supports validation, precedence comparison, and increasing version numbers.\n\nA `SemVer` object representing the version can be created by supplying arguments for the `version`, `preRelease` and\n`buildMetaData` parts to the constructor or by supplying a string which will be parsed by the `SemVerParser` using\n[parser combinators](https://github.com/scala/scala-parser-combinators).\n\n## Installation\n\nBump is published for Scala 2.13. To start using it add the following to your `build.sbt`:\n\n```\nlibraryDependencies += \"nl.gn0s1s\" %% \"bump\" % \"0.1.3\"\n```\n\n## Example usage\n\n```scala\nimport nl.gn0s1s.bump._\n\nval version = SemVer(1, 0, 1, Some(\"alpha\"), Some(\"20180329\")) // version: nl.gn0s1s.bump.SemVer = 1.0.1-alpha+20180329\n\nversion.nextMinor.withoutPreRelease.withoutBuildMetadata // res0: nl.gn0s1s.bump.SemVer = 1.1.0\n\nval version2 = SemVer(\"2.0.0\").get // version2: nl.gn0s1s.bump.SemVer = 2.0.0\n\nversion \u003c version2 // res1: Boolean = true\n\nversion2.nextPatch // res2: nl.gn0s1s.bump.SemVer = 2.0.1\n\nval invalidVersion = SemVer(\"3.0\") // invalidVersion: Option[nl.gn0s1s.bump.SemVer] = None\n```\n\n## Methods\nThe following methods are available on a `SemVer` object:\n\n* `toString` - returns the semantic versioning 2.0.0 string\n* `compare` - compares the precedence to the supplied SemVer\n* `nextMajor`/`bumpMajor` - returns a new SemVer with an incremented `major` and reset (0) `minor` and `patch` version numbers\n* `nextMinor`/`bumpMinor` - returns a new SemVer with an incremented `minor` and a reset (0) `patch` version number\n* `nextPatch`/`bumpPatch` - returns a new SemVer with an incremented `patch` version number\n* `nextStable` - returns a new SemVer without pre-release information or an incremented `patch` version number\n* `withMajor` - returns a new SemVer with the supplied `major` version number\n* `withMinor` - returns a new SemVer with the supplied `minor` version number\n* `withPatch` - returns a new SemVer with the supplied `patch` version number\n* `withPreRelease` - returns a new SemVer with the supplied `preRelease` string\n* `withoutPreRelease` - returns a new SemVer without pre-release information\n* `withBuildMetadata` - returns a new SemVer with the supplied `buildMetadata` string\n* `withoutBuildMetadata` - returns a new SemVer without build metadata\n\n## Links\n- [Semantic Versioning 2.0.0](https://semver.org/)\n\n## License\nThe code is available under the [MIT license](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilippus%2Fbump","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphilippus%2Fbump","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilippus%2Fbump/lists"}