capybara-screenshot-diff 0.12.1 → 0.12.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: 7f8a739e8e6e8f3de068e2d6dab4317017025730dbbeeb72459f73eb8dcb9e1a
4
- data.tar.gz: e214590aca05de27eea1874fd64a8389c792b00801f215d813acf3e5f82ddf18
3
+ metadata.gz: ed2393bc584bf55e0674c72042d3dabee546469f44f38a0591aa0dd2f4d41026
4
+ data.tar.gz: '08bbc8ecda72aabb18e8780f199727cf398e9a62ba6c1f2670d1d5c5d2ec77e1'
5
5
  SHA512:
6
- metadata.gz: d7e28f6579e2ccb54e42d64889806884bad3434283ad5bd50caf18c758a0482a0e8c0c248d4c9c15131e671f2250964753dbd1c9aa9c56bf62cb0e1dca8a2db5
7
- data.tar.gz: 8d3bca6920baf9c8f46c2a7914491fb49540d0abe7e53a770dff6aad163f24db1b685b4ef124870d244cd9f479b02248cca9bed00dd8a626e73b20107b668fe1
6
+ metadata.gz: ebefa1bb2fe1475a3bb8ec49f275e63bbd94b56e22c70359ab0ed79881ec125cad73e3bf6e5da1c156400b21783449e9fffa41d1ab0b2fef438aae4d21400ec6
7
+ data.tar.gz: ab88403460a0b2612da358bd839d5e7eecdd03944bf1a9a8bdbb6dbb1d4a7fba8b11c4a59dd604c1dfbe8cfef6e85b76a69ead02b9887b187584996752ccc28c
@@ -127,7 +127,7 @@ module Capybara
127
127
  end
128
128
 
129
129
  def max_shift_distance
130
- calculate_metrics unless @max_shift_distance
130
+ calculate_metrics unless @max_shift_distance || !@shift_distance_limit
131
131
  @max_shift_distance
132
132
  end
133
133
 
@@ -3,7 +3,7 @@
3
3
  module Capybara
4
4
  module Screenshot
5
5
  module Diff
6
- VERSION = '0.12.1'.freeze
6
+ VERSION = '0.12.2'.freeze
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: 0.12.1
4
+ version: 0.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Uwe Kubosch