twirp-ruby/CONTRIBUTING.md

30 строки
1.6 KiB
Markdown
Исходник Постоянная ссылка Обычный вид История

2018-09-17 21:34:40 +03:00
# Contribute to Twirp-Ruby
## Issues and Pull Requests
2019-02-05 18:55:06 +03:00
Features and bugfixes are managed through Github's Issues and Pull Requests. Contributions are welcome and once approved, they are merged into master.
2018-09-17 21:34:40 +03:00
2019-03-11 21:51:02 +03:00
## Run tests and example code
* Install gems: `bundle install`
* Run Ruby tests: `rake`
* Run Go tests (test code generation): `cd protoc-gen-twirp_ruby` then `go test ./...`
2019-03-11 23:13:34 +03:00
* Run example code (see [example/README.md](example/README.md)).
2019-03-11 21:51:02 +03:00
2020-04-14 20:49:14 +03:00
## Make a new release (authors only)
2018-09-17 21:34:40 +03:00
Once enough new features are added, a new release is drafted.
2023-01-05 17:01:56 +03:00
* Merge approved PRs into main.
2021-06-16 23:21:38 +03:00
* Update VERSION with semantic versioning in:
2019-03-11 23:16:37 +03:00
* `lib/twirp/version.rb` and
* `protoc-gen-twirp_ruby/version.go`
2018-09-17 21:34:40 +03:00
* Run `bundle install` to update the `Gemfile.lock` file with the new version.
2020-04-14 20:49:14 +03:00
* Run `rake` to run tests.
2023-06-13 04:21:47 +03:00
* Re-generate code (see [example/README.md](example/README.md)). Make sure to use the latest version of `protoc-gen-twirp_ruby`; if the repo is in `$GOPATH/src/github.com/arthurnn/twirp-ruby`, then you only need to do `go install github.com/arthurnn/twirp-ruby/protoc-gen-twirp_ruby` before running the `protoc` command to generate code. The generated code should be annotated with the new version.
2020-04-14 20:49:14 +03:00
* Update example code and README if needed with new features.
2023-01-05 17:01:56 +03:00
* Commit changes for the new version in main and push to remote.
2023-06-13 04:21:47 +03:00
* [Draft a new release](https://github.com/arthurnn/twirp-ruby/releases) in Github. Create a new tag with the version. Add release notes (see previous releases to keep the same format).
2023-01-05 17:01:56 +03:00
* Build and push the gem: `rake release`.
* Update the Draft release with the created tag, and publish it.