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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e22999718673e3e7cec926c524deedb3e3d0ead26e7c8350b777f5a453f02ad6
4
- data.tar.gz: 1c10e980fb7787a493c763ddc3ee8f1a7ada5180af7277e389b24761a359f68d
3
+ metadata.gz: 41c48f66867ecb07078242d441547616e4b8a57b722c34801bf575e9659cc207
4
+ data.tar.gz: cdbf947ae46b6848700ffb7be78ebb744fbe9514f442e242da1bcd5f9acf15b8
5
5
  SHA512:
6
- metadata.gz: 6a3328839042af4d915150aba0c135d52f99074b9c31a69bdf9f6ff7e2b5a4c2c352b94f767ed9ec24f517c232257d1111bce1db3f019a668b8b4ba5314b09b1
7
- data.tar.gz: 30c9cabdbabf2823c7fe77b4b825f7d59d0e3a8b49d373544eabb3ad171bee58d9ca8e57c6555b93254e7f04d0aa04075dd84839f4623151ae818efdd020845d
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.0
1
+ # Release Preparation — v1.15.1
2
2
 
3
3
  ## Summary
4
4
 
5
- Additive `SnapDiff::Config`, two failure-masking fixes in the `pending_if_new`
6
- teardown paths, a `BacktraceFilter` boundary fix, and an internal hygiene pass.
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.0`
13
- - [x] Run tests: `bundle exec rake test:unit` (267 runs, 0 failures)
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.0`
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)
@@ -3,7 +3,7 @@
3
3
  module Capybara
4
4
  module Screenshot
5
5
  module Diff
6
- VERSION = "1.15.0"
6
+ VERSION = "1.15.1"
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capybara-screenshot-diff
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.15.0
4
+ version: 1.15.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Uwe Kubosch