eyes_images 3.0.5 → 3.0.6
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/eyes.rb +2 -2
- data/lib/applitools/version.rb +1 -1
- 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: 887ec659c3864d141619f85555d871d5965bc62a
|
4
|
+
data.tar.gz: 0b1b5911d3596e3c2a3f7d1bc736308cd7c4e240
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d88ec2db69e2835921a102efcf9875f43a16ba8641ba927191e344cf2cd2d980248d5904b65205a7c5a45bf0904a585d8ca5b50dc59381498c5331573bc96dc
|
7
|
+
data.tar.gz: 8d474d98507ee4614ad234441709c6db518e15d8e54b668bc536e1c2d255410c316e1da7087cde7a9b0266a4246976fc08a11199c8fcb8ac907517791642ba26
|
@@ -186,10 +186,10 @@ module Applitools::Images
|
|
186
186
|
alias set_viewport_size vp_size=
|
187
187
|
|
188
188
|
def get_image_from_options(options)
|
189
|
-
if options[:image].nil?
|
189
|
+
if options[:image].nil? || !options[:image].is_a?(Applitools::Screenshot)
|
190
190
|
if !options[:image_path].nil? && !options[:image_path].empty?
|
191
191
|
image = Applitools::Screenshot.new ChunkyPNG::Datastream.from_file(options[:image_path]).to_s
|
192
|
-
elsif options[:image_bytes].nil? && !options[:image_bytes].empty?
|
192
|
+
elsif !options[:image_bytes].nil? && !options[:image_bytes].empty?
|
193
193
|
image = Applitools::Screenshot.new options[:image_bytes]
|
194
194
|
end
|
195
195
|
else
|
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.0.
|
4
|
+
version: 3.0.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-03-
|
11
|
+
date: 2017-03-22 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.0.
|
19
|
+
version: 3.0.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.0.
|
26
|
+
version: 3.0.6
|
27
27
|
description: Applitools Ruby Images SDK
|
28
28
|
email:
|
29
29
|
- team@applitools.com
|