Commitizen version provider for Ruby gems/projects.
Project description
Commitizen Ruby Version Provider
A commitizen version provider for Ruby projects / gems.
Installation
pip install commitizen-ruby
Usage
Configuration
There are several ways to configure commitizen.
This example setup uses a local installation of commitizen via python and works with yaml configuration files, but any other format as stated in the commitizen documentation works as well.
In your project root folder, create a .cz.yaml:
---
commitizen:
name: cz_conventional_commits
tag_format: $version
update_changelog_on_bump: true
version_provider: "commitizen-ruby"
version_scheme: semver
Note: it's not necessary to include a version key inside the config file. Best practice is to keep the version in a single source of truth, which is the version.rb or similar file inside the ruby project.
By default, a version.rb is looked up inside a lib/*/ folder. If this differs from your project, the version file can be configured:
---
commitizen:
commitizen_ruby:
file: /path/to/version.rb
When nothing is configured and no file could be found, an exception is raised.
Bumping versions
Now
cz bump
will read the current version from the ruby file, increase it accordingly and write it back to the same file.
Contribution
Contributions, issues and feature requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
- Fork the project
- Clone the fork
- Add your changes and update tests as appropriate.
- Create a pull request
License
This project is MIT licensed.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file commitizen_ruby-0.2.0.tar.gz.
File metadata
- Download URL: commitizen_ruby-0.2.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Darwin/23.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
228fe0ee2dacd45a4f1fcda5d0c4b20adb44c1f1b5eaf17772f969aab1904269
|
|
| MD5 |
5d4a5172dcbd814e9e01b182a10e409c
|
|
| BLAKE2b-256 |
cf54c1657f3d3c060c06c017f4f2d804c2e4567172519b4054b86b60ea902ad5
|
File details
Details for the file commitizen_ruby-0.2.0-py3-none-any.whl.
File metadata
- Download URL: commitizen_ruby-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Darwin/23.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ef5a9b40e1a6012f21e2b7e36ac45932b22d650b4172d9cfdffae8d0d085b8e
|
|
| MD5 |
99121b8a69b25068187b2ecda072e9ce
|
|
| BLAKE2b-256 |
1cdc353540f60f3c255eb7c093495dd7a56b830a3af8d207767368f691b7c1b5
|