capybara-screenshot-diff 1.4.2 → 1.5.0
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7ea29ec1e5ab38bc1c6eb4eafb7f01bb6fbbf2ca85ea7bbbc8f19dc1bbe9f101
|
|
4
|
+
data.tar.gz: 71150ea0adabe29276710229034975d66ba9d7029913a6af618e3a1b91d2a6bb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3019d948c07af6e81fc4b54afc98f1ca17565995e8028edc0120127db530d651dcc2cab950df0696ddcdc4964181d05776cf7fe01e616e6e06225a17ba3fe8a5
|
|
7
|
+
data.tar.gz: 863ee41be9dc9b37311a14ab9eb279230ed7f123f82adee3e644ab558f60921619106d32e0b125857684baea74deadb18c5b3ea70b5691ed2efbc0fdfddf34c4
|
data/.github/workflows/test.yml
CHANGED
|
@@ -3,6 +3,8 @@ name: Test
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
5
5
|
branches: [ $default-branch ]
|
|
6
|
+
pull_request_target:
|
|
7
|
+
branches: [ $default-branch ]
|
|
6
8
|
pull_request:
|
|
7
9
|
|
|
8
10
|
env:
|
|
@@ -77,6 +79,13 @@ jobs:
|
|
|
77
79
|
- 'rails51.gemfile'
|
|
78
80
|
- 'rails50.gemfile'
|
|
79
81
|
- 'rails42.gemfile'
|
|
82
|
+
include:
|
|
83
|
+
- ruby-version: '3.0'
|
|
84
|
+
gemfile: 'rails61_gems.rb'
|
|
85
|
+
- ruby-version: '3.0'
|
|
86
|
+
gemfile: 'rails60_gems.rb'
|
|
87
|
+
|
|
88
|
+
|
|
80
89
|
env:
|
|
81
90
|
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}
|
|
82
91
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
spec.summary = "Track your GUI changes with diff assertions"
|
|
13
13
|
spec.description = "Save screen shots and track changes with graphical diff"
|
|
14
14
|
spec.homepage = "https://github.com/donv/capybara-screenshot-diff"
|
|
15
|
-
spec.required_ruby_version = "
|
|
15
|
+
spec.required_ruby_version = ">= 2.5.0"
|
|
16
16
|
spec.license = "MIT"
|
|
17
17
|
spec.metadata["allowed_push_host"] = "https://rubygems.org/"
|
|
18
18
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
@@ -82,7 +82,7 @@ def chunky_png_comparator
|
|
|
82
82
|
@chunky_png_comparator ||= ImageCompare.new(
|
|
83
83
|
@new_file_name,
|
|
84
84
|
@old_file_name,
|
|
85
|
-
|
|
85
|
+
**@options.merge(driver: :chunky_png, tolerance: nil, median_filter_window_size: nil)
|
|
86
86
|
)
|
|
87
87
|
end
|
|
88
88
|
|
|
@@ -21,13 +21,13 @@ module Stabilization
|
|
|
21
21
|
JS
|
|
22
22
|
|
|
23
23
|
HIDE_CARET_SCRIPT = <<~JS
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
if (!document.getElementById('csdHideCaretStyle')) {
|
|
25
|
+
let style = document.createElement('style');
|
|
26
|
+
style.setAttribute('id', 'csdHideCaretStyle');
|
|
27
|
+
document.head.appendChild(style);
|
|
28
|
+
let styleSheet = style.sheet;
|
|
29
|
+
styleSheet.insertRule("* { caret-color: transparent !important; }", 0);
|
|
30
|
+
}
|
|
31
31
|
JS
|
|
32
32
|
|
|
33
33
|
def take_stable_screenshot(comparison, stability_time_limit:, wait:)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: capybara-screenshot-diff
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Uwe Kubosch
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-12-
|
|
11
|
+
date: 2020-12-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: actionpack
|
|
@@ -115,9 +115,9 @@ require_paths:
|
|
|
115
115
|
- lib
|
|
116
116
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
117
117
|
requirements:
|
|
118
|
-
- - "
|
|
118
|
+
- - ">="
|
|
119
119
|
- !ruby/object:Gem::Version
|
|
120
|
-
version:
|
|
120
|
+
version: 2.5.0
|
|
121
121
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
122
|
requirements:
|
|
123
123
|
- - ">="
|