eyes_core 3.15.15 → 3.15.16

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: 1c054044ffcf520d94a3b068339cd335d5ca64b27c9dc68bea56b0670ec24f45
4
- data.tar.gz: dcc3710cf778c0f4fa8514c0aad9daaf754c74e275886ab6483b3b3b4014745b
3
+ metadata.gz: 6859211e490457162a27228401f1850d5db1eb48adf4fe6ba43fc83437052d4f
4
+ data.tar.gz: 6ed96d8640b84ea13f9f3aa6b764d032156755fb7e871e7809ac85e5b094155d
5
5
  SHA512:
6
- metadata.gz: 0d6457a1d90821372e15d65b3840e0d36d979ac9868c353a691d19d15ba3312ec736dfe4251810661c98b62ba0e6364b59c45bd7254bba07107920a653f993c9
7
- data.tar.gz: f9aa9e2e6886cddabc617e814ff9daf38fee266be369ddec7ba4065d5654eb94caba4948874515cb49f004e5dfa169d0c0073ed589f4f3b1b61e090661683314
6
+ metadata.gz: 34ce20c7cc15c24ce3b07c28e32367dbaad52bebcf850c5214804e66e1416450b15ea500e615d8b6e57f9707e1ee034d78f906a6cd358d3c42045c2429d3280b
7
+ data.tar.gz: 7529652224fcc79e679ecfc6f0278da29268976aefe4cbce6b232e7fc69131a3211fc7fd36bcc09b94d189690239798509f078ad9b42f31a9596ffeccda832e4
@@ -16,6 +16,11 @@ module Applitools::FluentInterface
16
16
  self
17
17
  end
18
18
 
19
+ def ignore_displacements(value = true)
20
+ options[:ignore_displacements] = value ? true : false
21
+ self
22
+ end
23
+
19
24
  def timeout(value)
20
25
  options[:timeout] = value.to_i
21
26
  self
@@ -23,6 +23,7 @@ module Applitools
23
23
  'SplitTopHeight' => 0,
24
24
  'SplitBottomHeight' => 0,
25
25
  'IgnoreCaret' => true,
26
+ 'IgnoreDisplacements' => false,
26
27
  'Ignore' => [],
27
28
  'Floating' => [],
28
29
  'Exact' => {
@@ -176,6 +177,14 @@ module Applitools
176
177
  current_data['Options']['ImageMatchSettings']['EnablePatterns'] = value
177
178
  end
178
179
 
180
+ def ignore_displacements
181
+ current_data['Options']['ImageMatchSettings']['IgnoreDisplacements']
182
+ end
183
+
184
+ def ignore_displacements=(value)
185
+ current_data['Options']['ImageMatchSettings']['IgnoreDisplacements'] = value
186
+ end
187
+
179
188
  def exact=(value)
180
189
  raise Applitools::EyesError.new('You should pass a hash as a value!') unless value.nil? || value.is_a?(Hash)
181
190
  return current_data['Options']['ImageMatchSettings']['Exact'] = nil if value.nil?
@@ -224,7 +233,7 @@ module Applitools
224
233
  end
225
234
 
226
235
  def target_options_to_read
227
- %w(trim ignore_caret match_level ignore_mismatch exact use_dom enable_patterns)
236
+ %w(trim ignore_caret match_level ignore_mismatch exact use_dom enable_patterns ignore_displacements)
228
237
  end
229
238
 
230
239
  private :target_options_to_read
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  module Applitools
4
- VERSION = '3.15.15'.freeze
4
+ VERSION = '3.15.16'.freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eyes_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.15.15
4
+ version: 3.15.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Applitools Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-17 00:00:00.000000000 Z
11
+ date: 2019-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oily_png