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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8193a4da049d679616fb629be42d17037ada49ad051c44bd22b6d5efbd8f58ef
4
- data.tar.gz: da5c9331be468acfacf0f7c1549bb46e86af071769aed22a4706d0e7a3b76604
3
+ metadata.gz: 0c3999771f16f9f4fbe1005fe1d75be12eabcba554ada99eaee8bdec5b325846
4
+ data.tar.gz: 3e0408c272085baf4b81c7f59ccda92e58ec8b5ed57ce25445e251038b02d265
5
5
  SHA512:
6
- metadata.gz: 1d4c8a0258045022e274cc81a581b70da4c050bb479ae2bfc3e60ed6ed7943a60f49b263d53635b5a8af9e84e9da8bf58974002a9f5ca351861777c939f1ce3b
7
- data.tar.gz: f737aec5ca6a53344bb5afb922896562387fdd1874201a89b81a09d336c5e07fadf5debab32c17c812c24d20acd88a4881cb9f295115092baba85674fc1c6c42
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
- @os = options[:os]
9
- @hosting_app = options[:hosting_app]
10
- @display_size = options[:display_size]
11
- @inferred = options[:inferred]
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' => @os,
17
- 'hostingApp' => @hosting_app,
18
- 'displaySize' => @display_size && @display_size.to_hash,
19
- 'inferred' => @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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  module Applitools
4
- VERSION = '3.15.23'.freeze
4
+ VERSION = '3.15.24'.freeze
5
5
  end
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.23
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-10 00:00:00.000000000 Z
11
+ date: 2019-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oily_png