eyes_core 3.14.7 → 3.14.8

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: 465bf85f8f665db195ea982c2a20e6526646a6611a5c42dfc5a826e7047079e5
4
- data.tar.gz: 5f3a3d9c52c4e087a2afb8f97bbc6989b631b26695a10afb00be1592ad07dffe
3
+ metadata.gz: 2a517def83e1813ab37e4ecc1d557e16253b34e1c55b626bf05dd14823c14753
4
+ data.tar.gz: 8b0e81a43176c8f3143f60f5ec50da8eee2a8dfcba135f76f789e711b84b85e6
5
5
  SHA512:
6
- metadata.gz: 1def83ee70f76f5026b5a0350539ad3c8cf6e3820948db1e6d4ac7140bd609311e521ab58ed10e8328500f81d2b522a02716b55b5222fada08a5c9dfb3a95596
7
- data.tar.gz: d2238774131d5b47c8c1a08d4a30b6cc10d3bea5d5d1f803dbbf6d653b9238a40d4ca1d52c4b6996153ccd3e3077fbd68238b28310b5924774cdb97e7b2a9d35
6
+ metadata.gz: 468c538e29c7c83b3b872799aad7cdf7c2488b5021a012b7b2ff4223553e25078340da7d70ed51c460559f8b48cb4ceacb2f36bb22abd593684d19cf83a428d0
7
+ data.tar.gz: c770103ab3dbc903c4b74fdbcacac22c89246fe0e3d0eeaca81c46a07d3680bfc0d7cd0c11ab71ca03f8fee99c4035107eb4a3921188e7011720e4a0751d046e
@@ -45,8 +45,13 @@ module Applitools::FluentInterface
45
45
  self
46
46
  end
47
47
 
48
- def send_dom(value)
49
- options[:send_dom] = value ? true : false
48
+ def use_dom(value = true)
49
+ options[:use_dom] = value ? true : false
50
+ self
51
+ end
52
+
53
+ def enable_patterns(value = true)
54
+ options[:enable_patterns] = value ? true : false
50
55
  self
51
56
  end
52
57
  end
@@ -32,7 +32,9 @@ module Applitools
32
32
  'MatchThreshold' => 0
33
33
  },
34
34
  'scale' => 0,
35
- 'remainder' => 0
35
+ 'remainder' => 0,
36
+ 'EnablePatterns' => false,
37
+ 'UseDom' => false
36
38
  },
37
39
  'IgnoreExpectedOutputSettings' => false,
38
40
  'ForceMatch' => false,
@@ -157,6 +159,22 @@ module Applitools
157
159
  current_data['Options']['ImageMatchSettings']['Exact']
158
160
  end
159
161
 
162
+ def use_dom
163
+ current_data['Options']['ImageMatchSettings']['UseDom']
164
+ end
165
+
166
+ def use_dom=(value)
167
+ current_data['Options']['ImageMatchSettings']['UseDom'] = value
168
+ end
169
+
170
+ def enable_patterns
171
+ current_data['Options']['ImageMatchSettings']['EnablePatterns']
172
+ end
173
+
174
+ def enable_patterns=(value)
175
+ current_data['Options']['ImageMatchSettings']['EnablePatterns'] = value
176
+ end
177
+
160
178
  def exact=(value)
161
179
  raise Applitools::EyesError.new('You should pass a hash as a value!') unless value.nil? || value.is_a?(Hash)
162
180
  return current_data['Options']['ImageMatchSettings']['Exact'] = nil if value.nil?
@@ -205,7 +223,7 @@ module Applitools
205
223
  end
206
224
 
207
225
  def target_options_to_read
208
- %w(trim ignore_caret match_level ignore_mismatch exact)
226
+ %w(trim ignore_caret match_level ignore_mismatch exact use_dom enable_patterns)
209
227
  end
210
228
 
211
229
  private :target_options_to_read
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  module Applitools
4
- VERSION = '3.14.7'.freeze
4
+ VERSION = '3.14.8'.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.14.7
4
+ version: 3.14.8
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-02-28 00:00:00.000000000 Z
11
+ date: 2019-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oily_png
@@ -242,7 +242,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
242
242
  - !ruby/object:Gem::Version
243
243
  version: '0'
244
244
  requirements: []
245
- rubygems_version: 3.0.2
245
+ rubygems_version: 3.0.3
246
246
  signing_key:
247
247
  specification_version: 4
248
248
  summary: Core of the Applitools Ruby SDK