eyes_core 4.0.3 → 4.0.5.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef59a2235a5e9df7b276d77d86e06c1bd7dc0852
|
4
|
+
data.tar.gz: aa6d97432fa4d93619773be49a7e1def2654c8c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 040f16ccdceb1e1db5483b93a32aa4753d2a52f5bf3c0324f35c88686b1396dd73a8a7507cb30985a05bb5c68a371776077b7be004ad1afb6f7c57d3064805cd
|
7
|
+
data.tar.gz: 503e3f47a3cbce3e110b18ca8a7677d4b6f2fc2e4c78385b7683434896801dfec7ce3345df0ebecbdaeee211e3c325d76893b3ff034c8d788951f98351001ffd
|
@@ -35,7 +35,9 @@ module Applitools
|
|
35
35
|
self.id = PROCESS_DEFAULT_BATCH_ID
|
36
36
|
end
|
37
37
|
self.properties = properties if properties
|
38
|
-
|
38
|
+
unless env_notify_on_completion.nil?
|
39
|
+
self.notify_on_completion = 'true'.casecmp(env_notify_on_completion || '') == 0 ? true : false
|
40
|
+
end
|
39
41
|
end
|
40
42
|
|
41
43
|
def json_data
|
@@ -27,5 +27,23 @@ module Applitools
|
|
27
27
|
def close_all_eyes
|
28
28
|
get_universal_eyes_manager.close_all_eyes
|
29
29
|
end
|
30
|
+
|
31
|
+
# def close_batch(batch_id)
|
32
|
+
# if 'true'.casecmp(ENV['APPLITOOLS_DONT_CLOSE_BATCHES'] || '') == 0
|
33
|
+
# return Applitools::EyesLogger.info(
|
34
|
+
# 'APPLITOOLS_DONT_CLOSE_BATCHES environment variable set to true. Doing nothing.'
|
35
|
+
# ) && false
|
36
|
+
# end
|
37
|
+
# Applitools::ArgumentGuard.not_nil(batch_id, 'batch_id')
|
38
|
+
# Applitools::EyesLogger.info("Close batch called with #{batch_id}")
|
39
|
+
#
|
40
|
+
# close_batches_result = universal_client.core_close_batches(batch_id)
|
41
|
+
# if close_batches_result.is_a?(Hash) && close_batches_result[:message] && close_batches_result[:stack]
|
42
|
+
# Applitools::EyesLogger.logger.debug "Eyes close Batch: #{close_batches_result[:message]}"
|
43
|
+
# Applitools::EyesLogger.logger.debug "Stack for #{Applitools::Connectivity::UniversalClient::CORE_CLOSE_BATCHES} : #{close_batches_result[:stack]}"
|
44
|
+
# else
|
45
|
+
# Applitools::EyesLogger.info "delete batch is done with #{close_batches_result}"
|
46
|
+
# end
|
47
|
+
# end
|
30
48
|
end
|
31
49
|
end
|
@@ -93,8 +93,15 @@ module Applitools::Connectivity
|
|
93
93
|
await(->(cb) { @socket.request(CORE_SET_VIEWPORT_SIZE, {driver: driver, size: size}, cb) })
|
94
94
|
end
|
95
95
|
|
96
|
-
def core_close_batches(close_batch_settings)
|
96
|
+
def core_close_batches(close_batch_settings=nil)
|
97
97
|
# batchIds, serverUrl?, apiKey?, proxy?
|
98
|
+
unless close_batch_settings.is_a?(Hash)
|
99
|
+
batch_ids = [@open_config[:batch][:id]]
|
100
|
+
batch_ids = [close_batch_settings] if close_batch_settings.is_a?(String)
|
101
|
+
batch_ids = close_batch_settings if close_batch_settings.is_a?(Array)
|
102
|
+
optional = [:serverUrl, :apiKey, :proxy].map {|k| [k, @open_config[k]] }.to_h
|
103
|
+
close_batch_settings = { settings: ({ batchIds: batch_ids }.merge(optional).compact) }
|
104
|
+
end
|
98
105
|
await(->(cb) { @socket.request(CORE_CLOSE_BATCHES, close_batch_settings, cb) })
|
99
106
|
end
|
100
107
|
|
@@ -46,8 +46,9 @@ module Applitools::Connectivity
|
|
46
46
|
private
|
47
47
|
|
48
48
|
def filename
|
49
|
+
return 'eyes-universal-win.exe' if Gem.win_platform?
|
49
50
|
case RUBY_PLATFORM
|
50
|
-
when /mswin|windows/i
|
51
|
+
when /mswin|windows|mingw/i
|
51
52
|
'eyes-universal-win.exe'
|
52
53
|
when /linux|arch/i
|
53
54
|
'eyes-universal-linux'
|
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: 4.0.
|
4
|
+
version: 4.0.5.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: 2022-05-
|
11
|
+
date: 2022-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -114,14 +114,14 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 2.5.
|
117
|
+
version: 2.5.11
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 2.5.
|
124
|
+
version: 2.5.11
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: bundler
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|