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: e293e6dcd7578d372e90ef1f3cf024043bbcae24b068d937f9f03a09c9e78207
4
- data.tar.gz: a01091f8e30348f9730f7f5832969984760f1e278bf9fbbb17199e37b96816b4
3
+ metadata.gz: 7d9914e53a8c3d8b2b2dbdf2d30395e5c4b69197a0c257d96c6325ada3d190b6
4
+ data.tar.gz: 6f221ba0becc99ef9c84913f1f6ca3ab07948bc4193028930e0a5901aeee2933
5
5
  SHA512:
6
- metadata.gz: 5f078b115a1110dfc843a8a698bf98a2fece1ce2276606b463144b84ac945bb12f77bd7e58765bd58b7067d03e9036fc523f0435b133add23dfa6f8e66ea8dab
7
- data.tar.gz: cb763fb16dafb73c933494fb0b6a87eecfabeeac5a1bc39d99bf6fe43f7a7145ca5aef66af70a1eca6cf2d25af4d799599d72502167a6c9205070463261a0c47
6
+ metadata.gz: 90d7916580c53a0d7c85265f67264699edbce9b1d21e6186bdf408ab98311c63d8f7658bc0b4e842525d72d8ce2ba849132d65729a6890e3f38409ae1f9b8b88
7
+ data.tar.gz: 2a52e7d983d3d2a7307d00821dcbb44767e40e9e021d3ed42f079986eaa5f1350d1163c95a2385a9548d20517635f979f031bdbb24e5034f08c8a349a06907a0
data/.rubocop_todo.yml CHANGED
@@ -32,7 +32,7 @@ Metrics/MethodLength:
32
32
  # Offense count: 1
33
33
  # Configuration parameters: CountComments.
34
34
  Metrics/ModuleLength:
35
- Max: 106
35
+ Max: 107
36
36
 
37
37
  # Offense count: 1
38
38
  # Configuration parameters: CountKeywordArgs.
@@ -234,6 +234,7 @@ module Capybara
234
234
  return [x, y, x, y] unless same_color?(old_img, new_img, x, y)
235
235
  end
236
236
  end
237
+ nil
237
238
  end
238
239
 
239
240
  def find_left_right_and_top(old_img, new_img)
@@ -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, shift_distance_limit: shift_distance_limit)
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?
@@ -3,7 +3,7 @@
3
3
  module Capybara
4
4
  module Screenshot
5
5
  module Diff
6
- VERSION = '0.14.1'.freeze
6
+ VERSION = '0.14.2'.freeze
7
7
  end
8
8
  end
9
9
  end
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.1
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-02-13 00:00:00.000000000 Z
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
- rubyforge_project:
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