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: 18337aba419b7a0081a4a8115b9f15d5eaf582df
4
- data.tar.gz: 0fea5fa00d4a275dccb6fabc80a5561ceb990899
3
+ metadata.gz: 60dfb90fc4e333a0418bb6303774911f4727ca95
4
+ data.tar.gz: 72d6bc32da94dc2b3971051690cd1ed1cad58ab4
5
5
  SHA512:
6
- metadata.gz: 9528e2c039daab3c15ed629c797a670e0515d28cd6141c7d85e8de05a267e41f4e9e3336cb7132206f6b95e38b33ec519417cc08bf11eb6b226fce1ea9cc4b8e
7
- data.tar.gz: e15e3f5a89afde51e0e8786fd92de8c24c9ee85415ccaf72206948d0f9d0e1adcb89327d9f0299a7835e4cbceb29ab13eeced7026f5bb21dcf18f9555b474852
6
+ metadata.gz: 3dfc94e4c741333627a7d792dd1e12e90007a89171f70499b561f7884cca4b074348beb2ec51cbbc84f96f8a6958ab821118e97bd49e87cb18a0a99373627487
7
+ data.tar.gz: 66dc4259c574d5c4fce41e972f998fb89402061eb9eb5b64b6792537720f7b068f811018fda534e5e59ae87557f0356c5c1676ada68500e43203762a02bda4dd
@@ -10,7 +10,7 @@ module Applitools
10
10
  def to_hash
11
11
  {
12
12
  title: title,
13
- screenshot64: ''
13
+ screenshot64: nil
14
14
  }
15
15
  end
16
16
  end
@@ -112,9 +112,7 @@ module Applitools
112
112
  end
113
113
  end
114
114
 
115
- elapsed_time = (Time.now - elapsed_time_start) / 1000
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
- tag: tag, user_inputs: user_inputs.to_hash, ignore_mismatch: ignore_mismatch, ignore_match: false,
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
 
@@ -1,3 +1,3 @@
1
1
  module Applitools
2
- VERSION = '3.5.2'.freeze
2
+ VERSION = '3.5.4'.freeze
3
3
  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.5.2
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-04-28 00:00:00.000000000 Z
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.6.8
271
+ rubygems_version: 2.5.1
272
272
  signing_key:
273
273
  specification_version: 4
274
274
  summary: Applitools Ruby SDK