eyes_core 3.14.3 → 3.14.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/ext/eyes_core/extconf.rb +2 -0
- data/ext/eyes_core/eyes_core.c +7 -7
- data/ext/eyes_core/eyes_core.h +1 -6
- data/lib/applitools/appium/eyes.rb +12 -0
- data/lib/applitools/appium/initialize_1.9.rb +22 -0
- data/lib/applitools/appium/initialize_2.0.rb +17 -0
- data/lib/applitools/appium/utils.rb +44 -0
- data/lib/applitools/calabash/calabash_element.rb +2 -0
- data/lib/applitools/calabash/calabash_screenshot_provider.rb +2 -0
- data/lib/applitools/calabash/environment_detector.rb +2 -0
- data/lib/applitools/calabash/eyes.rb +5 -3
- data/lib/applitools/calabash/eyes_calabash_android_screenshot.rb +13 -2
- data/lib/applitools/calabash/eyes_calabash_ios_screenshot.rb +2 -0
- data/lib/applitools/calabash/eyes_calabash_screenshot.rb +2 -0
- data/lib/applitools/calabash/eyes_hooks.rb +2 -0
- data/lib/applitools/calabash/eyes_settings.rb +2 -0
- data/lib/applitools/calabash/full_page_capture_algorithm.rb +2 -0
- data/lib/applitools/calabash/full_page_capture_algorithm/android_scroll_view.rb +12 -2
- data/lib/applitools/calabash/full_page_capture_algorithm/base.rb +2 -0
- data/lib/applitools/calabash/full_page_capture_algorithm/ios_ui_table_view.rb +2 -0
- data/lib/applitools/calabash/os_versions.rb +2 -0
- data/lib/applitools/calabash/rspec_matchers.rb +2 -0
- data/lib/applitools/calabash/steps/android_eyes_session.rb +2 -0
- data/lib/applitools/calabash/steps/android_matchers.rb +2 -0
- data/lib/applitools/calabash/steps/eyes_session.rb +2 -0
- data/lib/applitools/calabash/steps/eyes_settings.rb +2 -0
- data/lib/applitools/calabash/steps/ios_eyes_session.rb +2 -0
- data/lib/applitools/calabash/steps/ios_matchers.rb +2 -0
- data/lib/applitools/calabash/steps/matchers.rb +2 -0
- data/lib/applitools/calabash/target.rb +2 -0
- data/lib/applitools/calabash/utils.rb +2 -0
- data/lib/applitools/calabash_steps.rb +2 -0
- data/lib/applitools/capybara/capybara_settings.rb +25 -0
- data/lib/applitools/capybara/driver.rb +39 -0
- data/lib/applitools/chunky_png/resampling.rb +2 -0
- data/lib/applitools/chunky_png_patch.rb +2 -0
- data/lib/applitools/connectivity/proxy.rb +2 -0
- data/lib/applitools/connectivity/server_connector.rb +23 -1
- data/lib/applitools/core/abstract_region.rb +2 -0
- data/lib/applitools/core/app_environment.rb +2 -0
- data/lib/applitools/core/app_output.rb +16 -4
- data/lib/applitools/core/app_output_with_screenshot.rb +2 -0
- data/lib/applitools/core/argument_guard.rb +3 -1
- data/lib/applitools/core/batch_info.rb +13 -5
- data/lib/applitools/core/class_name.rb +2 -0
- data/lib/applitools/core/debug_screenshot_provider.rb +4 -2
- data/lib/applitools/core/eyes_base.rb +45 -9
- data/lib/applitools/core/eyes_screenshot.rb +10 -1
- data/lib/applitools/core/fixed_cut_provider.rb +2 -0
- data/lib/applitools/core/fixed_scale_provider.rb +2 -0
- data/lib/applitools/core/floating_region.rb +10 -0
- data/lib/applitools/core/fluent_interface.rb +8 -1
- data/lib/applitools/core/hash_extension.rb +2 -0
- data/lib/applitools/core/helpers.rb +24 -0
- data/lib/applitools/core/location.rb +19 -1
- data/lib/applitools/core/match_level_setter.rb +2 -0
- data/lib/applitools/core/match_result.rb +2 -0
- data/lib/applitools/core/match_results.rb +2 -0
- data/lib/applitools/core/match_single_check_data.rb +2 -0
- data/lib/applitools/core/match_single_task.rb +2 -0
- data/lib/applitools/core/match_window_data.rb +26 -4
- data/lib/applitools/core/match_window_task.rb +2 -0
- data/lib/applitools/core/mouse_trigger.rb +2 -0
- data/lib/applitools/core/padding_bounds.rb +2 -0
- data/lib/applitools/core/rectangle_size.rb +16 -0
- data/lib/applitools/core/region.rb +32 -9
- data/lib/applitools/core/region_provider.rb +2 -0
- data/lib/applitools/core/screenshot.rb +6 -0
- data/lib/applitools/core/session.rb +2 -0
- data/lib/applitools/core/session_start_info.rb +2 -0
- data/lib/applitools/core/test_results.rb +2 -0
- data/lib/applitools/core/text_trigger.rb +2 -0
- data/lib/applitools/core/trigger.rb +2 -0
- data/lib/applitools/extensions.rb +2 -0
- data/lib/applitools/eyes_logger.rb +4 -2
- data/lib/applitools/method_tracer.rb +2 -0
- data/lib/applitools/rspec/target_matcher.rb +2 -0
- data/lib/applitools/sauce.rb +2 -1
- data/lib/applitools/utils/eyes_selenium_utils.rb +91 -15
- data/lib/applitools/utils/image_delta_compressor.rb +2 -0
- data/lib/applitools/utils/image_utils.rb +2 -0
- data/lib/applitools/utils/utils.rb +14 -0
- data/lib/applitools/version.rb +3 -1
- data/lib/eyes_core.rb +2 -0
- data/lib/eyes_rspec.rb +4 -0
- data/lib/require_utils.rb +2 -0
- metadata +10 -4
- data/lib/applitools/capybara.rb +0 -8
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'bigdecimal'
|
2
4
|
|
3
5
|
module Applitools::Utils
|
@@ -16,6 +18,10 @@ module Applitools::Utils
|
|
16
18
|
uncapitalize(tokens.shift) + tokens.map(&:capitalize).join
|
17
19
|
end
|
18
20
|
|
21
|
+
def capitalize(str)
|
22
|
+
str[0, 1].upcase + str[1..-1]
|
23
|
+
end
|
24
|
+
|
19
25
|
def to_method_name(str)
|
20
26
|
str = str.to_s if !str.is_a?(String) && str.respond_to?(:to_s)
|
21
27
|
underscore(str).gsub(%r{\/}, '__')
|
@@ -39,6 +45,14 @@ module Applitools::Utils
|
|
39
45
|
convert_hash_keys(hash, :camelcase)
|
40
46
|
end
|
41
47
|
|
48
|
+
def capitalize_hash_keys(hash)
|
49
|
+
convert_hash_keys(hash, :capitalize)
|
50
|
+
end
|
51
|
+
|
52
|
+
def stringify_hash_keys(hash)
|
53
|
+
convert_hash_keys(hash, :stringify)
|
54
|
+
end
|
55
|
+
|
42
56
|
def boolean_value(value)
|
43
57
|
if value
|
44
58
|
true
|
data/lib/applitools/version.rb
CHANGED
data/lib/eyes_core.rb
CHANGED
data/lib/eyes_rspec.rb
ADDED
data/lib/require_utils.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.14.
|
4
|
+
version: 3.14.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:
|
11
|
+
date: 2019-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oily_png
|
@@ -203,6 +203,10 @@ files:
|
|
203
203
|
- ext/eyes_core/extconf.rb
|
204
204
|
- ext/eyes_core/eyes_core.c
|
205
205
|
- ext/eyes_core/eyes_core.h
|
206
|
+
- lib/applitools/appium/eyes.rb
|
207
|
+
- lib/applitools/appium/initialize_1.9.rb
|
208
|
+
- lib/applitools/appium/initialize_2.0.rb
|
209
|
+
- lib/applitools/appium/utils.rb
|
206
210
|
- lib/applitools/calabash/calabash_element.rb
|
207
211
|
- lib/applitools/calabash/calabash_screenshot_provider.rb
|
208
212
|
- lib/applitools/calabash/environment_detector.rb
|
@@ -228,7 +232,8 @@ files:
|
|
228
232
|
- lib/applitools/calabash/target.rb
|
229
233
|
- lib/applitools/calabash/utils.rb
|
230
234
|
- lib/applitools/calabash_steps.rb
|
231
|
-
- lib/applitools/capybara.rb
|
235
|
+
- lib/applitools/capybara/capybara_settings.rb
|
236
|
+
- lib/applitools/capybara/driver.rb
|
232
237
|
- lib/applitools/chunky_png/resampling.rb
|
233
238
|
- lib/applitools/chunky_png_patch.rb
|
234
239
|
- lib/applitools/connectivity/proxy.rb
|
@@ -279,6 +284,7 @@ files:
|
|
279
284
|
- lib/applitools/utils/utils.rb
|
280
285
|
- lib/applitools/version.rb
|
281
286
|
- lib/eyes_core.rb
|
287
|
+
- lib/eyes_rspec.rb
|
282
288
|
- lib/require_utils.rb
|
283
289
|
homepage: https://www.applitools.com
|
284
290
|
licenses:
|
@@ -302,7 +308,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
302
308
|
version: '0'
|
303
309
|
requirements: []
|
304
310
|
rubyforge_project:
|
305
|
-
rubygems_version: 2.
|
311
|
+
rubygems_version: 2.7.7
|
306
312
|
signing_key:
|
307
313
|
specification_version: 4
|
308
314
|
summary: Applitools Ruby SDK
|