Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions .cursor/skills/release/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,23 +54,30 @@ git config user.name "Cursor"

4. **Edit** `lib/ruby_proxy_headers/version.rb`: set `VERSION = 'NEW_VERSION'` (single-quoted string).

5. **Commit and push** (never push to `main`; push only the release branch)
5. **Refresh** `Gemfile.lock` so the path gem entry matches (CI uses frozen Bundler and fails if the gemspec version changed without a lock update):

```bash
git add lib/ruby_proxy_headers/version.rb
bundle lock
# If Ruby/Bundler is unavailable, update both `ruby-proxy-headers (OLD)` lines in Gemfile.lock to NEW_VERSION.
```

6. **Commit and push** (never push to `main`; push only the release branch)

```bash
git add lib/ruby_proxy_headers/version.rb Gemfile.lock
git commit -m "chore: bump version to ${NEW_VERSION}"
git push -u origin "release/${NEW_VERSION}"
```

6. **Open PR** into `main` with a short body (no Cursor boilerplate). Example:
7. **Open PR** into `main` with a short body (no Cursor boilerplate). Example:

```bash
gh pr create --base main --head "release/${NEW_VERSION}" \
--title "Release ${NEW_VERSION}" \
--body "Bumps the gem version to ${NEW_VERSION} for release."
```

7. **Enable auto-merge** after the PR exists. In non-interactive mode, `gh` requires an explicit merge strategy with `--auto` (use the repository default: usually **`--merge`** for a merge commit, or **`--squash`** / **`--rebase`** if that is what the repo uses).
8. **Enable auto-merge** after the PR exists. In non-interactive mode, `gh` requires an explicit merge strategy with `--auto` (use the repository default: usually **`--merge`** for a merge commit, or **`--squash`** / **`--rebase`** if that is what the repo uses).

```bash
gh pr merge <PR_NUMBER_OR_URL> --auto --merge
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
ruby-proxy-headers (0.2.1)
ruby-proxy-headers (0.2.2)

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -242,7 +242,7 @@ CHECKSUMS
rubocop (1.88.2) sha256=8def251c90cd955feb4daa3edc0ab56893250c4ce90ef81e6c80c03f9a939bbf
rubocop-ast (1.50.0) sha256=b9ca88300da0803ee222ad20cdb30494c0a784eed06fdc35d254b06d662788db
ruby-progressbar (1.13.0) sha256=80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33
ruby-proxy-headers (0.2.1)
ruby-proxy-headers (0.2.2)
rubyntlm (0.6.5) sha256=47013402b99ae29ee93f930af51edaec8c6008556f4be25705a422b4430314f5
typhoeus (1.6.0) sha256=bacc41c23e379547e29801dc235cd1699b70b955a1ba3d32b2b877aa844c331d
unicode-display_width (3.2.0) sha256=0cdd96b5681a5949cdbc2c55e7b420facae74c4aaf9a9815eee1087cb1853c42
Expand Down
2 changes: 1 addition & 1 deletion lib/ruby_proxy_headers/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module RubyProxyHeaders
VERSION = '0.2.1'
VERSION = '0.2.2'
end