capybara-screenshot-diff 1.15.0 → 1.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/docs/RELEASE_PREP.md +6 -6
- data/lib/capybara/screenshot/diff/drivers/vips_driver.rb +1 -1
- data/lib/capybara/screenshot/diff/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 41c48f66867ecb07078242d441547616e4b8a57b722c34801bf575e9659cc207
|
|
4
|
+
data.tar.gz: cdbf947ae46b6848700ffb7be78ebb744fbe9514f442e242da1bcd5f9acf15b8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1660ab2b09f17cbc98eb92a144aee6278743a4bb19302f7386959ba2f634679344991098ece65a8300fcca6e4116f5b8f72cfe77e147b453269c522a7aa71651
|
|
7
|
+
data.tar.gz: 982e52856c449f1916688bfbd44ca832c93a12d25ba809e4068c61492d9163a85b84898fc60ad6c450c299bc1b70839a3eed400d334034b2cefd98ff47bb137f
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [v1.15.1] - 2026-08-22
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- **`VipsDriver#resize_image_to` resizes to the requested dimensions** — the vips driver passed a target aspect ratio where libvips expects a scale factor, so retina-halving on macOS/Selenium could enlarge screenshots (2560×1600 → 4096×2560) and save wrongly-sized baselines; now scales width and height independently via `resize(scale, vscale:)` ([#205](https://github.com/snap-diff/snap_diff-capybara/pull/205))
|
|
12
|
+
|
|
13
|
+
### Internal
|
|
14
|
+
- Driver contract tests pinning the shared ChunkyPNG/Vips driver seam (method surface, load/compare behavior, option handling) — the net that caught the resize bug ([#204](https://github.com/snap-diff/snap_diff-capybara/pull/204))
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
8
18
|
## [v1.15.0] - 2026-08-22
|
|
9
19
|
|
|
10
20
|
### Added
|
data/docs/RELEASE_PREP.md
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
# Release Preparation — v1.15.
|
|
1
|
+
# Release Preparation — v1.15.1
|
|
2
2
|
|
|
3
3
|
## Summary
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
HIGH-severity VipsDriver resize fix (retina halving could enlarge screenshots
|
|
6
|
+
and corrupt baselines) plus the driver contract tests that caught it.
|
|
7
7
|
|
|
8
8
|
## Release Checklist
|
|
9
9
|
|
|
10
10
|
### Pre-Release
|
|
11
11
|
|
|
12
|
-
- [x] Update version to `1.15.
|
|
13
|
-
- [x] Run tests: `bundle exec rake test:unit` (
|
|
12
|
+
- [x] Update version to `1.15.1`
|
|
13
|
+
- [x] Run tests: `bundle exec rake test:unit` (376 runs, 0 failures)
|
|
14
14
|
- [x] Update CHANGELOG.md
|
|
15
15
|
|
|
16
16
|
### Release (One Click)
|
|
17
17
|
|
|
18
18
|
1. Push to GitHub
|
|
19
19
|
2. Go to [Actions → Release](https://github.com/snap-diff/snap_diff-capybara/actions/workflows/release.yml)
|
|
20
|
-
3. Click **Run workflow**, enter `1.15.
|
|
20
|
+
3. Click **Run workflow**, enter `1.15.1`
|
|
21
21
|
4. Workflow will: test → tag → publish to RubyGems → create GitHub Release
|
|
22
22
|
|
|
23
23
|
### Post-Release
|
|
@@ -76,7 +76,7 @@ module Capybara
|
|
|
76
76
|
end
|
|
77
77
|
|
|
78
78
|
def resize_image_to(image, new_width, new_height)
|
|
79
|
-
image.resize(new_width.to_f / new_height)
|
|
79
|
+
image.resize(new_width.to_f / image.width, vscale: new_height.to_f / image.height)
|
|
80
80
|
end
|
|
81
81
|
|
|
82
82
|
def load_images(old_file_name, new_file_name)
|