eyes_core 3.15.23 → 3.15.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/applitools/core/app_environment.rb +11 -9
- data/lib/applitools/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c3999771f16f9f4fbe1005fe1d75be12eabcba554ada99eaee8bdec5b325846
|
4
|
+
data.tar.gz: 3e0408c272085baf4b81c7f59ccda92e58ec8b5ed57ce25445e251038b02d265
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0cb0983086102b3cc799f03ef7dcd6d248e4403902fb40b4c5cad4954a2868ae15157646f7584c507cd2e14c5b2c8d592a158150d6cd878da23b4e9d5a0f5128
|
7
|
+
data.tar.gz: 2ad95195032fd3e25e1694c284c75eae912f26ad127225f64a9dd3098b5925c7a5e62086a7282f9b187565b2d4e6a9df33f3a1e55dc4d85d213a72e45b9907d4
|
@@ -2,21 +2,23 @@
|
|
2
2
|
|
3
3
|
module Applitools
|
4
4
|
class AppEnvironment
|
5
|
-
attr_accessor :os, :hosting_app, :display_size, :inferred_environment
|
5
|
+
attr_accessor :os, :hosting_app, :display_size, :inferred_environment, :device_info
|
6
6
|
|
7
7
|
def initialize(options = {})
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
8
|
+
self.os = options[:os]
|
9
|
+
self.hosting_app = options[:hosting_app]
|
10
|
+
self.display_size = options[:display_size]
|
11
|
+
self.inferred_environment = options[:inferred]
|
12
|
+
self.device_info = options[:device_info]
|
12
13
|
end
|
13
14
|
|
14
15
|
def to_hash
|
15
16
|
{
|
16
|
-
'os' =>
|
17
|
-
'hostingApp' =>
|
18
|
-
'displaySize' =>
|
19
|
-
'inferred' =>
|
17
|
+
'os' => os,
|
18
|
+
'hostingApp' => hosting_app,
|
19
|
+
'displaySize' => display_size && display_size.to_hash,
|
20
|
+
'inferred' => inferred_environment,
|
21
|
+
'deviceInfo' => device_info.nil? || device_info.empty? ? 'Desktop' : device_info + ' (Chrome emulation)'
|
20
22
|
}
|
21
23
|
end
|
22
24
|
|
data/lib/applitools/version.rb
CHANGED
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.15.
|
4
|
+
version: 3.15.24
|
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-06-
|
11
|
+
date: 2019-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oily_png
|