|
1 | 1 | # How to release |
2 | | -* Ensure tests pass: `rake` |
3 | | -* Update changelog: Set version and release date |
4 | | -* Set version in `maxmind-db.gemspec` |
5 | | -* Add them: `git add -p` |
6 | | -* Create a branch e.g. `horgh/release` and switch to it. |
7 | | - * `main` is protected. |
8 | | -* Commit: `git commit -m v1.0.0` |
9 | | -* Tag: `git tag -a v1.0.0 -m v1.0.0` |
10 | | -* Clean up to be sure nothing stray gets into gem: `git clean -dxff` |
11 | | -* Create `.gem` file: `gem build maxmind-db.gemspec` |
12 | | -* Complete prerequisites (see below) |
13 | | - * You only need to do this once. You can tell if this is necessary if you |
14 | | - are lacking `:rubygems_api_key` in `~/.local/share/gem/credentials` |
15 | | - (previously `~/.gem/credentials`) |
16 | | -* Upload to rubygems.org: `gem push maxmind-db-1.0.0.gem` |
17 | | -* Push: `git push` |
18 | | -* Push tag: `git push --tags` |
19 | | -* Make a PR and get it merged. |
20 | | -* Double check it looks okay at https://rubygems.org/gems/maxmind-db and |
21 | | - https://www.rubydoc.info/gems/maxmind-db |
22 | 2 |
|
23 | | - |
24 | | -# Prerequisites |
25 | | - |
26 | | -## Step 1 |
27 | | -Sign up for an account at rubygems.org if you don't have one. |
28 | | - |
29 | | -Enable multi factor authentication (for both UI and API). |
30 | | - |
31 | | - |
32 | | -## Step 2 |
33 | | -Ask someone who is an owner of the gem to add you as one. |
34 | | - |
35 | | -They do this by using the `gem owner` command |
36 | | -([docs](https://guides.rubygems.org/command-reference/#gem-owner)). |
37 | | - |
38 | | - |
39 | | -## Step 3 |
40 | | -Run `gem signin`. This will prompt you for your username and password, and |
41 | | -then create an API key for you. Select the scopes `index_rubygems` and |
42 | | -`push_rubygem` (I'm not sure the former is required, but anyway). |
43 | | - |
44 | | -Note you may need an up to date version of rubygems to do this as I believe |
45 | | -support for API keys like this is a newer addition. |
| 3 | +See |
| 4 | +[here](https://github.com/maxmind/minfraud-api-ruby/blob/main/README.dev.md). |
0 commit comments