Skip to content

Commit 36f7fd7

Browse files
pftgclaude
andcommitted
fix: release workflow require path + bump to v1.12.0
Fix: ruby -rlib/... doesn't work — use -I lib -r capybara/... instead. Bump version to 1.12.0 for release. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 9ec47a5 commit 36f7fd7

5 files changed

Lines changed: 34 additions & 34 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
workflow_dispatch:
66
inputs:
77
version:
8-
description: "Release version (e.g., 1.11.0)"
8+
description: "Release version (e.g., 1.12.0)"
99
required: true
1010
type: string
1111

@@ -28,7 +28,7 @@ jobs:
2828
- name: Verify version
2929
run: |
3030
GEM_VERSION="${{ github.event.inputs.version }}"
31-
CODE_VERSION=$(ruby -rlib/capybara/screenshot/diff/version -e "puts Capybara::Screenshot::Diff::VERSION")
31+
CODE_VERSION=$(ruby -I lib -r capybara/screenshot/diff/version -e "puts Capybara::Screenshot::Diff::VERSION")
3232
if [ "$GEM_VERSION" != "$CODE_VERSION" ]; then
3333
echo "Version mismatch: input=$GEM_VERSION code=$CODE_VERSION"
3434
exit 1

CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [v1.11.0] - 2026-04-12
8+
## [v1.12.0] - 2026-04-12
99

1010
### Added
1111
- **HTML reporter** — interactive dashboard with 4 comparison modes (both/base/new/heatmap), per-image zoom, keyboard navigation, and search ([#170](https://github.com/snap-diff/snap_diff-capybara/pull/170))
@@ -55,10 +55,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5555

5656
---
5757

58-
## [v1.10.3.1] - Previous Release
58+
## [v1.11.0] - Previous Release
5959

60-
[Unreleased]: https://github.com/snap-diff/snap_diff-capybara/compare/v1.11.0...HEAD
60+
[Unreleased]: https://github.com/snap-diff/snap_diff-capybara/compare/v1.12.0...HEAD
61+
[v1.12.0]: https://github.com/snap-diff/snap_diff-capybara/releases/tag/v1.12.0
6162
[v1.11.0]: https://github.com/snap-diff/snap_diff-capybara/releases/tag/v1.11.0
62-
[v1.10.3.1]: https://github.com/snap-diff/snap_diff-capybara/releases/tag/v1.10.3.1
6363

6464
**Upgrade Guide:** See [docs/UPGRADING.md](docs/UPGRADING.md) for detailed migration instructions.

docs/RELEASE_PREP.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# Release Preparation — v1.11.0
1+
# Release Preparation — v1.12.0
22

33
## Summary
44

5-
71 commits since v1.10.3.1 with new features, performance improvements, and default behavior changes.
5+
71 commits since v1.11.0 with new features, performance improvements, and default behavior changes.
66

77
## Release Checklist
88

99
### Pre-Release
1010

11-
- [x] Update version to `1.11.0`
11+
- [x] Update version to `1.12.0`
1212
- [x] Run tests: `bundle exec rake test` (218 runs, 0 failures)
1313
- [x] Add CHANGELOG.md
1414
- [x] Add docs/UPGRADING.md
@@ -17,7 +17,7 @@
1717

1818
1. Push to GitHub
1919
2. Go to [Actions → Release](https://github.com/snap-diff/snap_diff-capybara/actions/workflows/release.yml)
20-
3. Click **Run workflow**, enter `1.11.0`
20+
3. Click **Run workflow**, enter `1.12.0`
2121
4. Workflow will: test → tag → publish to RubyGems → create GitHub Release
2222

2323
### Post-Release

docs/UPGRADING.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Upgrading to v1.11.0
1+
# Upgrading to v1.12.0
22

33
## Overview
44

5-
Version 1.11.0 is a **minor release** with new features, performance improvements, and default behavior changes. This guide will help you upgrade smoothly.
5+
Version 1.12.0 is a **minor release** with new features, performance improvements, and default behavior changes. This guide will help you upgrade smoothly.
66

77
**Estimated upgrade time:** 5-15 minutes depending on your setup
88

@@ -14,15 +14,15 @@ For **most users**, upgrading is as simple as:
1414

1515
```ruby
1616
# In your Gemfile
17-
gem 'capybara-screenshot-diff', '~> 1.11.0'
17+
gem 'capybara-screenshot-diff', '~> 1.12.0'
1818
```
1919

2020
```bash
2121
bundle update capybara-screenshot-diff
2222
bundle exec rake test # Verify tests still pass
2323
```
2424

25-
**That's it!** The zero-config setup still works out of the box. Your existing screenshot comparisons will continue to work with v1.11.0.
25+
**That's it!** The zero-config setup still works out of the box. Your existing screenshot comparisons will continue to work with v1.12.0.
2626

2727
---
2828

@@ -34,8 +34,8 @@ Three settings now have different defaults. This is the most likely source of un
3434

3535
#### `blur_active_element` — Now defaults to `true`
3636

37-
**Before (v1.10.x):** Cursor blinking could delay screenshots
38-
**After (v1.11.0):** Cursor is automatically hidden
37+
**Before (v1.11.x):** Cursor blinking could delay screenshots
38+
**After (v1.12.0):** Cursor is automatically hidden
3939

4040
**Action required:** Only if you want the old behavior
4141

@@ -46,8 +46,8 @@ Capybara::Screenshot.blur_active_element = false
4646

4747
#### `hide_caret` — Now defaults to `true`
4848

49-
**Before (v1.10.x):** Input caret visible in screenshots
50-
**After (v1.11.0):** Caret is transparent for stable screenshots
49+
**Before (v1.11.x):** Input caret visible in screenshots
50+
**After (v1.12.0):** Caret is transparent for stable screenshots
5151

5252
**Action required:** Only if you want the old behavior
5353

@@ -58,8 +58,8 @@ Capybara::Screenshot.hide_caret = false
5858

5959
#### `fail_if_new` — Now defaults to `true` in CI
6060

61-
**Before (v1.10.x):** New screenshots allowed in CI
62-
**After (v1.11.0):** New screenshots fail tests in CI (when `ENV['CI']` is set)
61+
**Before (v1.11.x):** New screenshots allowed in CI
62+
**After (v1.12.0):** New screenshots fail tests in CI (when `ENV['CI']` is set)
6363

6464
**Action required:** Only if you want to allow new screenshots in CI
6565

@@ -74,8 +74,8 @@ Capybara::Screenshot::Diff.fail_if_new = false
7474

7575
### 2. SVN Support Removed
7676

77-
**Before (v1.10.x):** Could use SVN for version control
78-
**After (v1.11.0):** Git only
77+
**Before (v1.11.x):** Could use SVN for version control
78+
**After (v1.12.0):** Git only
7979

8080
**Action required:** If using SVN, migrate to Git
8181

@@ -95,8 +95,8 @@ If you find SVN usage:
9595

9696
### 3. ActiveSupport No Longer Required
9797

98-
**Before (v1.10.x):** ActiveSupport was a runtime dependency
99-
**After (v1.11.0):** Pure Ruby, no ActiveSupport required
98+
**Before (v1.11.x):** ActiveSupport was a runtime dependency
99+
**After (v1.12.0):** Pure Ruby, no ActiveSupport required
100100

101101
**Action required:** None (this is a positive change!)
102102

@@ -113,8 +113,8 @@ If your project only had ActiveSupport because of this gem, you can now remove i
113113

114114
### 4. Internal API Changes
115115

116-
**Before (v1.10.x):** Could use internal classes like `CaptureStrategy`, `ComparisonLoader`
117-
**After (v1.11.0):** These have been inlined/refactored
116+
**Before (v1.11.x):** Could use internal classes like `CaptureStrategy`, `ComparisonLoader`
117+
**After (v1.12.0):** These have been inlined/refactored
118118

119119
**Action required:** Only if using internal APIs
120120

@@ -252,7 +252,7 @@ Enjoy faster screenshot comparisons:
252252

253253
### Upgrade Notes
254254

255-
**Ruby 4.0:** Fully compatible! If you see DSLStub ordering issues, they're fixed in v1.11.0.
255+
**Ruby 4.0:** Fully compatible! If you see DSLStub ordering issues, they're fixed in v1.12.0.
256256

257257
**Rails 8.0:** Works out of the box with updated dependencies.
258258

@@ -263,7 +263,7 @@ Enjoy faster screenshot comparisons:
263263
### Step 1: Update Gemfile
264264

265265
```ruby
266-
gem 'capybara-screenshot-diff', '~> 1.11.0'
266+
gem 'capybara-screenshot-diff', '~> 1.12.0'
267267
```
268268

269269
### Step 2: Bundle Update
@@ -306,7 +306,7 @@ Run tests and open `doc/screenshots/snap_diff_report.html` to review differences
306306
```bash
307307
# Commit the new baselines
308308
git add doc/screenshots/
309-
git commit -m "Add screenshot baselines for v1.11.0 upgrade"
309+
git commit -m "Add screenshot baselines for v1.12.0 upgrade"
310310
```
311311

312312
Or temporarily allow them:
@@ -337,7 +337,7 @@ bundle exec rake test
337337

338338
# Commit new baselines
339339
git add doc/screenshots/
340-
git commit -m "Re-record baselines with v1.11.0 defaults"
340+
git commit -m "Re-record baselines with v1.12.0 defaults"
341341
```
342342

343343
### "NoMethodError on internal class"
@@ -354,7 +354,7 @@ If you need to rollback:
354354

355355
```ruby
356356
# Pin to previous version
357-
gem 'capybara-screenshot-diff', '~> 1.11.0'
357+
gem 'capybara-screenshot-diff', '~> 1.12.0'
358358
```
359359

360360
```bash
@@ -376,7 +376,7 @@ All screenshot baselines are compatible — no data loss.
376376

377377
## Summary Checklist
378378

379-
- [ ] Update gem version to `~> 1.11.0`
379+
- [ ] Update gem version to `~> 1.12.0`
380380
- [ ] Run `bundle update capybara-screenshot-diff`
381381
- [ ] Run test suite
382382
- [ ] Check for new screenshot failures in CI
@@ -387,4 +387,4 @@ All screenshot baselines are compatible — no data loss.
387387
- [ ] Commit changes
388388
- [ ] Review upgrade issues in [GitHub Issues](https://github.com/snap-diff/snap_diff-capybara/issues)
389389

390-
**Congratulations!** You're now running v1.11.0 🎉
390+
**Congratulations!** You're now running v1.12.0 🎉

lib/capybara/screenshot/diff/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
module Capybara
44
module Screenshot
55
module Diff
6-
VERSION = "1.11.0"
6+
VERSION = "1.12.0"
77
end
88
end
99
end

0 commit comments

Comments
 (0)