capybara-screenshot-diff 0.14.1 → 0.14.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d9914e53a8c3d8b2b2dbdf2d30395e5c4b69197a0c257d96c6325ada3d190b6
|
4
|
+
data.tar.gz: 6f221ba0becc99ef9c84913f1f6ca3ab07948bc4193028930e0a5901aeee2933
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90d7916580c53a0d7c85265f67264699edbce9b1d21e6186bdf408ab98311c63d8f7658bc0b4e842525d72d8ce2ba849132d65729a6890e3f38409ae1f9b8b88
|
7
|
+
data.tar.gz: 2a52e7d983d3d2a7307d00821dcbb44767e40e9e021d3ed42f079986eaa5f1350d1163c95a2385a9548d20517635f979f031bdbb24e5034f08c8a349a06907a0
|
data/.rubocop_todo.yml
CHANGED
@@ -49,7 +49,8 @@ module Capybara
|
|
49
49
|
last_image_change_at = Time.now
|
50
50
|
end
|
51
51
|
|
52
|
-
check_max_wait_time(comparison, screenshot_started_at,
|
52
|
+
check_max_wait_time(comparison, screenshot_started_at,
|
53
|
+
shift_distance_limit: shift_distance_limit)
|
53
54
|
end
|
54
55
|
|
55
56
|
previous_file_name = "#{comparison.new_file_name.chomp('.png')}_x#{format('%02i', i)}.png~"
|
@@ -65,6 +65,7 @@ module Capybara
|
|
65
65
|
FileUtils.rm_rf screenshot_dir
|
66
66
|
end
|
67
67
|
|
68
|
+
# @return [Boolean] wether a screenshot was taken
|
68
69
|
def screenshot(name, color_distance_limit: Diff.color_distance_limit,
|
69
70
|
shift_distance_limit: Diff.shift_distance_limit, area_size_limit: Diff.area_size_limit)
|
70
71
|
return unless Screenshot.active?
|
@@ -88,6 +89,7 @@ module Capybara
|
|
88
89
|
return unless comparison.old_file_exists?
|
89
90
|
|
90
91
|
(@test_screenshots ||= []) << [caller(1..1).first, name, comparison]
|
92
|
+
true
|
91
93
|
end
|
92
94
|
|
93
95
|
def window_size_is_wrong?
|
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: 0.14.
|
4
|
+
version: 0.14.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Uwe Kubosch
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|
@@ -200,8 +200,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
200
200
|
- !ruby/object:Gem::Version
|
201
201
|
version: '0'
|
202
202
|
requirements: []
|
203
|
-
|
204
|
-
rubygems_version: 2.7.6
|
203
|
+
rubygems_version: 3.0.1
|
205
204
|
signing_key:
|
206
205
|
specification_version: 4
|
207
206
|
summary: Track your GUI changes with diff assertions
|