Before you can generate the gem, you need to install openapi-generator:
```shell
brew install openapi-generator-
Update the version number in
gem-config.yml -
Run
bash generate_gem.shto the new code based on our openapi specThis will generate a large number of files and not all should be changed or commited so make sure to review all the changes and only commit the ones that are relevant.
These files should not be changed at all:
- .gitignore
- .rubocop.yml
- .travis.yml
- Gemfile
-
Make sure that everything is ok by running
rubocopandrspec. -
After the changes are reviewed, commit your changes and open a PR.
-
After the PR is reviewed and merged, create a new release on github for the version created.
-
Locally, update your local
mainbranch. -
Run
gem build stackone_hris_client.gemspecto build the gem. -
Run
gem push stackone_hris_client-<version>.gemto push the gem to rubygems.org. (you need to be authenticated in rubygems.org, please refer to our 1Password vault for credentials).