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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 664597b5334a5e14bd59e57c6f7894744a26135b
4
- data.tar.gz: 626e10d27f8bbe13a9399e4a9bbb60bd6916027c
3
+ metadata.gz: 004f26f8ff0deead3ca1e9c16b8ecda858384c55
4
+ data.tar.gz: 9c52421260c18d04eaea5144df52e4e1f7920b5a
5
5
  SHA512:
6
- metadata.gz: 9d413e72796573c3f3dcf2cbcf0c409a5a486ef217fd677e2165c74bbab0774f55f2db96bbcd06e17bcf2483576b32eb8236f5cedf7963c366ee9fc26b0cd80c
7
- data.tar.gz: 1d97a41468853c89c9783246f3339c16b99b48fb8d18ec11893b8d8a02804a8ea48aa27023641cac34f4bd0dff392b56f0261f0308cc35026da7a1a75a9dea7b
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
- when Applitools::FloatingRegion
71
- proc { args.first }
72
- when Applitools::Region
73
- proc do
74
- region = args.shift
75
- Applitools::FloatingRegion.new region.left, region.top, region.width, region.height, *args
76
- end
77
- else
78
- self.floating_regions = []
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
@@ -1,3 +1,3 @@
1
1
  module Applitools
2
- VERSION = '3.10.0'.freeze
2
+ VERSION = '3.10.1'.freeze
3
3
  end
data/lib/eyes_images.rb CHANGED
@@ -1,13 +1,11 @@
1
1
  require 'eyes_core'
2
2
 
3
- module Applitools::Images
4
- # @!visibility private
5
- class << self
6
- # @!visibility private
7
- def require_dir(dir)
8
- Dir[File.join(File.dirname(File.expand_path(__FILE__)), 'applitools', dir, '*.rb')].sort.each do |f|
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.0
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-05-30 00:00:00.000000000 Z
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.0
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.0
26
+ version: 3.10.1
27
27
  description: Applitools Ruby Images SDK
28
28
  email:
29
29
  - team@applitools.com