lookbook_visual_tester 0.5.3 → 0.5.4

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: 61d8ae85e5897ffcb0dd53078b753a02cfc118e9cf5990ebbf27b40c5778bc4a
4
- data.tar.gz: afcd716247590085bf7dbb99c36e146f45a350f349c1c2fda5dad9d7c8441192
3
+ metadata.gz: 52de57eac4b35b3aba43c82000005b796b7bfb405fed5914ffda3ff3d6039b2f
4
+ data.tar.gz: a6c8e5faf0af703732a0438766299bb1300879997c64d6cc96188e1a2a3ab47b
5
5
  SHA512:
6
- metadata.gz: e22889eacb81f638d7ba65ab1e8682d0e1ec7e22903f67b950912ef5f670eb3ec13dca31ba21e52ef6cac3e73ce6da11179a7ec35e37eb44b5392e4f99ac6004
7
- data.tar.gz: e5f18347bff022b59a7b6504c2a2cd0b64e279b587b9dc92f4a0001f7056cc63e8affa58167799cac8ef2fa434718d973ea6fbd375f54a6697240f5b1bc050bf
6
+ metadata.gz: 78ee1ea32f42cbf2fe58f4178f03e7db493ab1598d1d80a65918c497bff2cb51778f6413b321ae8cda01248bd1714fd72ec0b44d6a968d33273234de21836d5c
7
+ data.tar.gz: 945d4767c88ec3121c11c6ea83e87ca286a5f5d8a1feb07b1fb10275b0c9139066047a348f9b6ce2f3d06d25f1ae09645a75aeba5dfdd99497cf2def48dddddf
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
- ## [0.5.3] - 2026-01-04
2
+ ## [0.5.4] - 2026-01-06
3
+
4
+ ### Fixed
5
+ - **Variants URL Generation**: Fixed a bug where setting `VARIANTS` caused a `JSON::ParserError` in Lookbook. Variant parameters are now correctly serialized to JSON in the preview URL.
3
6
 
4
7
  ### Fixed
5
8
  - **Deep Check**: `rake lookbook:deep_check` now correctly detects and fails when a preview returns `nil` (implicit rendering) but the corresponding template is missing (`ViewComponent::MissingPreviewTemplateError`).
data/README.md CHANGED
@@ -28,8 +28,8 @@ sudo apt-get install imagemagick xclip
28
28
 
29
29
  Add to your application's Gemfile:
30
30
  ```ruby
31
- group :test do
32
- gem 'lookbook_visual_tester', '~> 0.5.3'
31
+ group :test, :development do
32
+ gem 'lookbook_visual_tester', '~> 0.5.4'
33
33
  end
34
34
  ```
35
35
 
@@ -166,7 +166,13 @@ bundle exec rake lookbook:missing
166
166
 
167
167
  ## Next Steps
168
168
 
169
- - **CI/CD Integration**: Provide recipes for GitHub Actions to run visual regression on PRs.
169
+ - **Enhanced Approval Workflow**: Implement a `rake lookbook:approve` task (and potentially an interactive mode) to verify and promote changes to baselines without manual file operations.
170
+ - **Tolerance Configuration**: Add support for configuring pixel mismatch tolerance levels to reduce flakiness in rendering (anti-aliasing, shadow rendering differences).
171
+ - **Ignore Regions**: Allow defining specific areas of a component to exclude from visual comparison (useful for unavoidable dynamic content).
172
+ - **Markdown Reports**: Generate markdown summaries of test runs suitable for posting automatically as Pull Request comments.
173
+ - **Cloud Storage**: Integration with cloud storage (S3, GCS) for managing baseline images to keep the git repository light.
174
+ - **CI/CD Blueprints**: Detailed guides and reusable actions/steps for integrating with GitHub Actions, GitLab CI, etc.
175
+ - **Multiple Browsers**: Expand driver support beyond Chrome/Ferrum (e.g. Firefox, Safari/Webkit) for cross-browser visual testing.
170
176
 
171
177
  ## Contributing
172
178
 
@@ -57,7 +57,7 @@ module LookbookVisualTester
57
57
 
58
58
  if display_params.any?
59
59
  # Transform display_params { theme: 'dark' } -> { _display: { theme: 'dark' } }
60
- params[:_display] = display_params
60
+ params[:_display] = display_params.to_json
61
61
  end
62
62
 
63
63
  Lookbook::Engine.routes.url_helpers.lookbook_preview_url(
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LookbookVisualTester
4
- VERSION = '0.5.3'
4
+ VERSION = '0.5.4'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lookbook_visual_tester
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Murilo Vasconcelos