eyes_images 3.6.5 → 3.6.6
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30b704e89eb15b02fbdab201472ad41c465519f4
|
4
|
+
data.tar.gz: 7f39a2784cee50a56ec3768450f8f971ea73f704
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 776ada25d7bbcea81fed5f4494901444cf66ace394516bdb0ac16c0501419fe6c600cd34eeb971000521a45c981cacae118c3fe282b33d597dd0aed78cdd8ef6
|
7
|
+
data.tar.gz: 1235a20afefd2202d3805979ef944734cdd7ead9082a7468ec5816dfcba214a463d60f68e6f983d16508953e36c067ef347cdeb1b1a7708d31f1f18aef1f090b
|
@@ -97,9 +97,9 @@ module Applitools::Images
|
|
97
97
|
self.screenshot = EyesImagesScreenshot.new image
|
98
98
|
|
99
99
|
mr = check_single_base(
|
100
|
-
|
101
|
-
|
102
|
-
|
100
|
+
region_provider,
|
101
|
+
target.options[:timeout] || Applitools::EyesBase::USE_DEFAULT_TIMEOUT,
|
102
|
+
match_window_data
|
103
103
|
)
|
104
104
|
mr
|
105
105
|
end
|
@@ -73,13 +73,14 @@ module Applitools::Images
|
|
73
73
|
convert_location location, CONTEXT_RELATIVE, SCREENSHOT_AS_IS
|
74
74
|
end
|
75
75
|
|
76
|
-
def sub_screenshot(region, coordinates_type, throw_if_clipped)
|
76
|
+
def sub_screenshot(region, coordinates_type, throw_if_clipped = false, force_nil_if_clipped = false)
|
77
77
|
Applitools::ArgumentGuard.not_nil region, 'region'
|
78
78
|
Applitools::ArgumentGuard.not_nil coordinates_type, 'coordinates_type'
|
79
79
|
|
80
80
|
sub_screen_region = intersected_region region, coordinates_type, SCREENSHOT_AS_IS
|
81
81
|
|
82
82
|
if sub_screen_region.empty? || (throw_if_clipped && !region.size_equals?(sub_screen_region))
|
83
|
+
return nil if force_nil_if_clipped
|
83
84
|
Applitools::OutOfBoundsException.new "Region #{sub_screen_region} (#{coordinates_type}) is out of " \
|
84
85
|
" screenshot bounds #{bounds}"
|
85
86
|
end
|
data/lib/applitools/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eyes_images
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.6.
|
4
|
+
version: 3.6.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Applitools Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: eyes_core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.6.
|
19
|
+
version: 3.6.6
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.6.
|
26
|
+
version: 3.6.6
|
27
27
|
description: Applitools Ruby Images SDK
|
28
28
|
email:
|
29
29
|
- team@applitools.com
|
@@ -57,7 +57,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
57
57
|
version: '0'
|
58
58
|
requirements: []
|
59
59
|
rubyforge_project:
|
60
|
-
rubygems_version: 2.
|
60
|
+
rubygems_version: 2.5.1
|
61
61
|
signing_key:
|
62
62
|
specification_version: 4
|
63
63
|
summary: Applitools Ruby Images SDK
|