eyes_core 3.5.2 → 3.5.4
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: 60dfb90fc4e333a0418bb6303774911f4727ca95
|
4
|
+
data.tar.gz: 72d6bc32da94dc2b3971051690cd1ed1cad58ab4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3dfc94e4c741333627a7d792dd1e12e90007a89171f70499b561f7884cca4b074348beb2ec51cbbc84f96f8a6958ab821118e97bd49e87cb18a0a99373627487
|
7
|
+
data.tar.gz: 66dc4259c574d5c4fce41e972f998fb89402061eb9eb5b64b6792537720f7b068f811018fda534e5e59ae87557f0356c5c1676ada68500e43203762a02bda4dd
|
@@ -112,9 +112,7 @@ module Applitools
|
|
112
112
|
end
|
113
113
|
end
|
114
114
|
|
115
|
-
|
116
|
-
|
117
|
-
logger.info "Completed in #{format('%.2f', elapsed_time)} seconds"
|
115
|
+
logger.info "Completed in #{format('%.2f', Time.now - elapsed_time_start)} seconds"
|
118
116
|
|
119
117
|
match_result.screenshot = app_output.screenshot
|
120
118
|
match_result
|
@@ -128,7 +126,7 @@ module Applitools
|
|
128
126
|
tag = options[:tag]
|
129
127
|
ignore_mismatch = options[:ignore_mismatch]
|
130
128
|
data = Applitools::MatchWindowData.new user_inputs, app_output, tag, ignore_mismatch,
|
131
|
-
|
129
|
+
name: tag, user_inputs: user_inputs.to_hash, ignore_mismatch: ignore_mismatch, ignore_match: false,
|
132
130
|
force_mistmatch: false, force_match: false,
|
133
131
|
image_match_settings: {
|
134
132
|
matchLevel: options[:match_level],
|
@@ -10,6 +10,15 @@ module Applitools::EyesLogger
|
|
10
10
|
extend Forwardable
|
11
11
|
extend self
|
12
12
|
|
13
|
+
# noinspection SpellCheckingInspection
|
14
|
+
def self.add_thread_id_to_log_handler!(log_handler)
|
15
|
+
original_formatter = Logger::Formatter.new
|
16
|
+
log_handler.formatter = proc do |severity, datetime, progname, msg|
|
17
|
+
updated_progname = "#{progname.to_s} (#{Thread.current.object_id.to_s})"
|
18
|
+
original_formatter.call(severity, datetime, updated_progname, msg.dump)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
13
22
|
MANDATORY_METHODS = [:debug, :info, :close].freeze
|
14
23
|
OPTIONAL_METHODS = [:warn, :error, :fatal].freeze
|
15
24
|
|
@@ -20,6 +29,7 @@ module Applitools::EyesLogger
|
|
20
29
|
def log_handler=(log_handler)
|
21
30
|
raise Applitools::EyesError.new('log_handler must implement Logger!') unless valid?(log_handler)
|
22
31
|
|
32
|
+
Applitools::EyesLogger.add_thread_id_to_log_handler! log_handler
|
23
33
|
@log_handler = log_handler
|
24
34
|
end
|
25
35
|
|
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.5.
|
4
|
+
version: 3.5.4
|
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-
|
11
|
+
date: 2017-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oily_png
|
@@ -268,7 +268,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
268
268
|
version: '0'
|
269
269
|
requirements: []
|
270
270
|
rubyforge_project:
|
271
|
-
rubygems_version: 2.
|
271
|
+
rubygems_version: 2.5.1
|
272
272
|
signing_key:
|
273
273
|
specification_version: 4
|
274
274
|
summary: Applitools Ruby SDK
|