Spec helpers for Graphiti APIs.
This gem is forked by @movehq for the purpose of being able to merge any PRs that we make (and have made) to the upstream repo.
To keep our release tags separate from the upstream tags, using -hsc
suffix as a "prerelease" semver segment.
After all desired changes have been merged to master:
- Derive the next version number.
It should follow semver, so bump major/minor/patch segments as appropriate.
Then apply the
-hsc.N
prerelease suffix.For example, the existing version was
1.1.0
. Our changes were not breaking changes and added some capabilities, so we bumped the version to1.2.0-hsc.1
. Now that we have a "pre-release" of a minor bump, only the.1
needs to be incremented for any bug fixes or feature additions. Only breaking changes at this point would require the version bumped to, say,2.0.0-hsc.1
. - Set this version number in version.rb
- Merge this version bump to master (preferably by rebase or squash merge).
- Create a Release
- select "Choose a tag" and type in the same version as in version.rb with a
v
prefix. - click "Generate Release Notes"
- check "set as latest release"
- click Publish
- select "Choose a tag" and type in the same version as in version.rb with a
- This Release process will create the corresponding git tag which triggers the release workflow.
- The GitHub Actions release workflow will build and publish the gem to GitHub Packages.
Note: The gem name will use
.pre
in place of the hyphen in the semver version. This is expected and is just a quirk of rubygems that pre-dates the semver standard. (because rubygems uses hyphens to separate the platform for gems that require native compilation)