eyes_images 3.10.0 → 3.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/applitools/images/target.rb +10 -19
- data/lib/applitools/version.rb +1 -1
- data/lib/eyes_images.rb +6 -8
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 004f26f8ff0deead3ca1e9c16b8ecda858384c55
|
4
|
+
data.tar.gz: 9c52421260c18d04eaea5144df52e4e1f7920b5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c2fa42e1cc16d5abf5d84bc0381aefbf47f688e25b8ad19eb90fa510d2a8c591ad445118e33b6512bf0054f3ce3489adcac6d69d199ff69026ed3800eb1ce00
|
7
|
+
data.tar.gz: 2f7de98920f7ac081b8b5bfda05433bf3fcb3e6dcf4c08386b8ab9b0dd69c475bd2de1a1d5319affd537d047fa8cebebf9c57961ac4c543245da1147e289e194
|
@@ -1,5 +1,6 @@
|
|
1
1
|
module Applitools::Images
|
2
2
|
class Target
|
3
|
+
include Applitools::FluentInterface
|
3
4
|
class << self
|
4
5
|
def path(path)
|
5
6
|
raise Applitools::EyesIllegalArgument unless File.exist?(path)
|
@@ -67,15 +68,15 @@ module Applitools::Images
|
|
67
68
|
|
68
69
|
def floating(*args)
|
69
70
|
value = case args.first
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
71
|
+
when Applitools::FloatingRegion
|
72
|
+
proc { args.first }
|
73
|
+
when Applitools::Region
|
74
|
+
proc do
|
75
|
+
region = args.shift
|
76
|
+
Applitools::FloatingRegion.new region.left, region.top, region.width, region.height, *args
|
77
|
+
end
|
78
|
+
else
|
79
|
+
self.floating_regions = []
|
79
80
|
end
|
80
81
|
floating_regions << value
|
81
82
|
self
|
@@ -90,15 +91,5 @@ module Applitools::Images
|
|
90
91
|
end
|
91
92
|
self
|
92
93
|
end
|
93
|
-
|
94
|
-
def trim(value = true)
|
95
|
-
options[:trim] = value ? true : false
|
96
|
-
self
|
97
|
-
end
|
98
|
-
|
99
|
-
def timeout(value = nil)
|
100
|
-
options[:timeout] = value ? value : nil
|
101
|
-
self
|
102
|
-
end
|
103
94
|
end
|
104
95
|
end
|
data/lib/applitools/version.rb
CHANGED
data/lib/eyes_images.rb
CHANGED
@@ -1,13 +1,11 @@
|
|
1
1
|
require 'eyes_core'
|
2
2
|
|
3
|
-
module Applitools
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
def
|
8
|
-
|
9
|
-
require f
|
10
|
-
end
|
3
|
+
module Applitools
|
4
|
+
module Images
|
5
|
+
extend Applitools::RequireUtils
|
6
|
+
|
7
|
+
def self.load_dir
|
8
|
+
File.dirname(File.expand_path(__FILE__))
|
11
9
|
end
|
12
10
|
end
|
13
11
|
end
|
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.10.
|
4
|
+
version: 3.10.1
|
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-
|
11
|
+
date: 2017-06-02 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.10.
|
19
|
+
version: 3.10.1
|
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.10.
|
26
|
+
version: 3.10.1
|
27
27
|
description: Applitools Ruby Images SDK
|
28
28
|
email:
|
29
29
|
- team@applitools.com
|