- Fork it
- When pulling to local, make sure to also pull the
ably-commonrepo (git submodule init && git submodule update) - Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Ensure you have added suitable tests and the test suite is passing(
bundle exec rspec) - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
This library uses semantic versioning. For each release, the following needs to be done:
- Create a branch for the release, named like
release/1.2.3(where1.2.3is the new version number) - Update the version number in version.rb and commit the change.
- Run
github_changelog_generatorto automate the update of the CHANGELOG. This may require some manual intervention, both in terms of how the command is run and how the change log file is modified. Your mileage may vary:- The command you will need to run will look something like this:
github_changelog_generator -u ably -p ably-ruby --since-tag v1.2.3 --output delta.md --token $GITHUB_TOKEN_WITH_REPO_ACCESS. Generate token here. - Using the command above,
--output delta.mdwrites changes made after--since-tagto a new file - The contents of that new file (
delta.md) then need to be manually inserted at the top of theCHANGELOG.md, changing the "Unreleased" heading and linking with the current version numbers - Also ensure that the "Full Changelog" link points to the new version tag instead of the
HEAD
- The command you will need to run will look something like this:
- Commit this change:
git add CHANGELOG.md && git commit -m "Update change log." - Ideally, run
rake doc:specto generate a new spec file. Then commit these changes. - Make a PR against
main. Once the PR is approved, merge it intomain. - Add a tag to the new
mainhead commit and push to origin such asgit tag v1.0.3 && git push origin v1.0.3. - Visit https://github.com/ably/ably-ruby/tags and
Add release notesfor the release including links to the changelog entry. - Run
rake releaseto publish the gem to Rubygems. - Release the REST-only library
ably-ruby-rest. - Create the entry on the Ably Changelog (via headwayapp).