eyes_core 3.15.41 → 3.15.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/applitools/core/abstract_configuration.rb +17 -0
- data/lib/applitools/core/eyes_base.rb +15 -0
- 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: 12f0349cb9920282fbb6a82d9cca099dd6da266f79500eee924d767f13278ac6
|
4
|
+
data.tar.gz: 530b865b0789228e380a253ee405ce20bd166d603eb5b7c71880813c54e62a13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f4fa0bac2e64e86dd6dfb689fdbf683872650ddd764f309e29fb9d50439cbaea7281cdc364ce22d9e251209e0bf52f095836a75bfebb1d871160ad0e268e0b9
|
7
|
+
data.tar.gz: 35ba0a76acd5cc2aa50b307fe829cf0782725cecc3d950f4ab9827c5d76b2c31154374b81c87b4e176e34380f55c894ff33948b8ee5c0ba2314ba255f8221f50
|
@@ -16,5 +16,22 @@ module Applitools
|
|
16
16
|
send "#{k}=", default_config[k]
|
17
17
|
end
|
18
18
|
end
|
19
|
+
|
20
|
+
def deep_clone
|
21
|
+
new_config = self.class.new
|
22
|
+
config_keys.each do |k|
|
23
|
+
new_config.send(
|
24
|
+
"#{k}=", case value = send(k)
|
25
|
+
when Symbol, FalseClass, TrueClass, Integer, Float
|
26
|
+
value
|
27
|
+
else
|
28
|
+
value.clone
|
29
|
+
end
|
30
|
+
)
|
31
|
+
end
|
32
|
+
new_config
|
33
|
+
end
|
34
|
+
|
35
|
+
alias deep_dup deep_clone
|
19
36
|
end
|
20
37
|
end
|
@@ -30,6 +30,7 @@ module Applitools
|
|
30
30
|
CONTEXT_RELATIVE = Applitools::EyesScreenshot::COORDINATE_TYPES[:context_relative].freeze
|
31
31
|
|
32
32
|
attr_accessor :config
|
33
|
+
private :config, :config=
|
33
34
|
|
34
35
|
def_delegators 'Applitools::EyesLogger', :logger, :log_handler, :log_handler=
|
35
36
|
# def_delegators 'server_connector', :api_key, :api_key=, :server_url, :server_url=,
|
@@ -451,10 +452,24 @@ module Applitools
|
|
451
452
|
@compare_with_parent_branch = value ? true : false
|
452
453
|
end
|
453
454
|
|
455
|
+
def configuration
|
456
|
+
config.deep_dup
|
457
|
+
end
|
458
|
+
|
459
|
+
alias get_configuration configuration
|
460
|
+
|
461
|
+
def configuration=(value)
|
462
|
+
Applitools::ArgumentGuard.is_a?(value, :configuration, Applitools::EyesBaseConfiguration)
|
463
|
+
self.config = value.deep_dup
|
464
|
+
end
|
465
|
+
|
466
|
+
alias set_configuration configuration=
|
467
|
+
|
454
468
|
# def rendering_info
|
455
469
|
# server_connector.rendering_info
|
456
470
|
# end
|
457
471
|
#
|
472
|
+
|
458
473
|
private
|
459
474
|
|
460
475
|
attr_accessor :running_session, :last_screenshot, :scale_provider, :session_start_info,
|
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.42
|
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-12-
|
11
|
+
date: 2019-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oily_png
|