diff --git a/.cursor/skills/release/SKILL.md b/.cursor/skills/release/SKILL.md index a147256..fa2f678 100644 --- a/.cursor/skills/release/SKILL.md +++ b/.cursor/skills/release/SKILL.md @@ -54,15 +54,22 @@ 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}" \ @@ -70,7 +77,7 @@ git config user.name "Cursor" --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 --auto --merge diff --git a/Gemfile.lock b/Gemfile.lock index 95d5e3c..4ee20c6 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - ruby-proxy-headers (0.2.1) + ruby-proxy-headers (0.2.2) GEM remote: https://rubygems.org/ @@ -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 diff --git a/lib/ruby_proxy_headers/version.rb b/lib/ruby_proxy_headers/version.rb index 2e8098b..1858292 100644 --- a/lib/ruby_proxy_headers/version.rb +++ b/lib/ruby_proxy_headers/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module RubyProxyHeaders - VERSION = '0.2.1' + VERSION = '0.2.2' end