Skip to content

Commit 85580bb

Browse files
dblockCopilot
andcommitted
Preparing for release, 2.2.1.
Update release metadata and document safe database validation, release-commit CI, and just-in-time RubyGems OTP handling. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 3ab052e commit 85580bb

3 files changed

Lines changed: 28 additions & 21 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
### Changelog
22

3-
### 2.2.1 (Next)
3+
### 2.2.1 (2026/10/24)
44

5-
* Your contribution here.
65
* [#182](https://github.com/slack-ruby/slack-ruby-bot-server/pull/182): Modernize CI with current actions, native database services, dependency caching, and explicit Ruby 4, Mongoid 9, Active Record 8.1, PostgreSQL 18, Grape 3/4, and JSON 2/3 coverage while retaining existing compatibility combinations - [@dblock](https://github.com/dblock), [@Copilot](https://github.com/apps/copilot-swe-agent).
76
* [#181](https://github.com/slack-ruby/slack-ruby-bot-server/pull/181): Migrated Danger to `danger-pr-comment` workflow - [@dblock](https://github.com/dblock).
87
* [#180](https://github.com/slack-ruby/slack-ruby-bot-server/pull/180): Add support for Grape v3 - [@markokajzer](https://github.com/markokajzer).

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ A library that contains a web server and a RESTful [Grape](http://github.com/rub
3737

3838
## Stable Release
3939

40-
You're reading the documentation for the **next** release of slack-ruby-bot-server. Please see the documentation for the [last stable release, v2.2.0](https://github.com/slack-ruby/slack-ruby-bot-server/blob/v2.2.0/README.md) unless you're integrating with HEAD. See [UPGRADING](UPGRADING.md) when upgrading from an older version. See [MIGRATING](MIGRATING.md) for help with migrating Legacy Slack Apps to Granular Scopes.
40+
You're reading the documentation for the **stable** release of slack-ruby-bot-server, 2.2.1. See [UPGRADING](UPGRADING.md) when upgrading from an older version. See [MIGRATING](MIGRATING.md) for help with migrating Legacy Slack Apps to Granular Scopes.
4141

4242
## Make Your Own
4343

‎RELEASING.md‎

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,25 @@ There're no hard rules about when to release slack-ruby-bot-server. Release bug
44

55
### Release
66

7-
Run tests, check that all tests succeed locally.
7+
Start from a clean, up-to-date canonical checkout on `master`. Confirm that the version in `lib/slack-ruby-bot-server/version.rb` matches the next changelog heading and has not already been published on RubyGems or tagged in Git.
88

9-
```
9+
Run the tests against dedicated local test databases as described in [CONTRIBUTING.md](CONTRIBUTING.md). Set the adapter and version selectors before installing dependencies. For example, with Ruby 4 and MongoDB running locally:
10+
11+
```sh
12+
export DATABASE_ADAPTER=mongoid MONGOID_VERSION='~> 9.1' GRAPE_VERSION='~> 4.0' JSON_VERSION='~> 3.0'
13+
export DATABASE_URL=mongodb://localhost/slack_ruby_bot_server_test
1014
bundle install
11-
rake
15+
bundle exec rake
1216
```
1317

14-
Check that the last build succeeded in [Github Actions](https://github.com/slack-ruby/slack-ruby-bot-server/actions) for all supported platforms.
18+
Also validate the Active Record adapter with its own test database. Do not run adapter suites concurrently on one host; browser tests share port 9293. Never use a production database.
19+
20+
Check that [GitHub Actions](https://github.com/slack-ruby/slack-ruby-bot-server/actions) succeeded for the release commit across both database matrices and RuboCop. A successful build for a different commit is not sufficient.
1521

1622
Change "Next" in [CHANGELOG.md](CHANGELOG.md) to the current date.
1723

1824
```
19-
### 2.0.1 (2023/02/20)
25+
### 2.2.1 (2026/10/24)
2026
```
2127

2228
Remove the line with "Your contribution here.", since there will be no more contributions to this release.
@@ -26,34 +32,36 @@ Change `**next**` in the "Stable Release" section in README that warns users tha
2632
```
2733
## Stable Release
2834
29-
You're reading the documentation for the **stable** release of slack-ruby-bot-server, 2.0.1. See [UPGRADING](UPGRADING.md) when upgrading from an older version.
35+
You're reading the documentation for the **stable** release of slack-ruby-bot-server, 2.2.1. See [UPGRADING](UPGRADING.md) when upgrading from an older version. See [MIGRATING](MIGRATING.md) for help with migrating Legacy Slack Apps to Granular Scopes.
3036
```
3137

3238
Commit your changes.
3339

3440
```
35-
git add README.md CHANGELOG.md
36-
git commit -m "Preparing for release, 2.0.1."
41+
git add README.md CHANGELOG.md RELEASING.md
42+
git commit -m "Preparing for release, 2.2.1."
3743
git push origin master
3844
```
3945

40-
Release.
46+
Wait for the release commit's GitHub Actions checks to succeed before publishing.
4147

42-
```
43-
$ rake release
48+
RubyGems publishing requires a maintainer's credentials and may require a fresh one-time password (OTP). For an agent-assisted release, ask the maintainer for the OTP immediately before publishing, after tests, commits, and CI are complete. Use it only for the publishing process; never put OTPs or API keys in committed files, release notes, or logs.
49+
50+
Pass the temporary code through `GEM_HOST_OTP_CODE`. With `OTP` holding the freshly supplied code:
4451

45-
slack-ruby-bot-server 2.0.1 built to pkg/slack-ruby-bot-server-2.0.1.gem.
46-
Tagged v2.0.1.
47-
Pushed git commits and tags.
48-
Pushed slack-ruby-bot-server 2.0.1 to rubygems.org.
52+
```sh
53+
GEM_HOST_OTP_CODE="$OTP" bundle exec rake release
54+
unset OTP
4955
```
5056

57+
The release task builds the gem in `pkg/`, tags the release, pushes commits and the tag, and publishes to RubyGems. Confirm that the remote tag points to the release commit and that RubyGems lists the expected version before proceeding. If publishing fails, inspect which steps completed before retrying; do not move an existing release tag or overwrite a published version.
58+
5159
### Prepare for the Next Version
5260

5361
Add the next release to [CHANGELOG.md](CHANGELOG.md).
5462

5563
```
56-
### 2.0.2 (Next)
64+
### 2.2.2 (Next)
5765
5866
* Your contribution here.
5967
```
@@ -65,13 +73,13 @@ Undo your change in README about the stable release.
6573
```
6674
## Stable Release
6775
68-
You're reading the documentation for the **next** release of slack-ruby-bot-server. Please see the documentation for the [last stable release, v2.0.1](https://github.com/slack-ruby/slack-ruby-bot-server/blob/v2.0.1/README.md) unless you're integrating with HEAD. See [UPGRADING](UPGRADING.md) when upgrading from an older version. See [MIGRATING](MIGRATING.md) for help with migrating Legacy Slack Apps to Granular Scopes.
76+
You're reading the documentation for the **next** release of slack-ruby-bot-server. Please see the documentation for the [last stable release, v2.2.1](https://github.com/slack-ruby/slack-ruby-bot-server/blob/v2.2.1/README.md) unless you're integrating with HEAD. See [UPGRADING](UPGRADING.md) when upgrading from an older version. See [MIGRATING](MIGRATING.md) for help with migrating Legacy Slack Apps to Granular Scopes.
6977
```
7078

7179
Commit your changes.
7280

7381
```
7482
git add README.md CHANGELOG.md lib/slack-ruby-bot-server/version.rb
75-
git commit -m "Preparing for next development iteration, 2.0.2."
83+
git commit -m "Preparing for next development iteration, 2.2.2."
7684
git push origin master
7785
```

0 commit comments

Comments
 (0)