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.
Files changed (89) hide show
  1. checksums.yaml +5 -5
  2. data/ext/eyes_core/extconf.rb +2 -0
  3. data/ext/eyes_core/eyes_core.c +7 -7
  4. data/ext/eyes_core/eyes_core.h +1 -6
  5. data/lib/applitools/appium/eyes.rb +12 -0
  6. data/lib/applitools/appium/initialize_1.9.rb +22 -0
  7. data/lib/applitools/appium/initialize_2.0.rb +17 -0
  8. data/lib/applitools/appium/utils.rb +44 -0
  9. data/lib/applitools/calabash/calabash_element.rb +2 -0
  10. data/lib/applitools/calabash/calabash_screenshot_provider.rb +2 -0
  11. data/lib/applitools/calabash/environment_detector.rb +2 -0
  12. data/lib/applitools/calabash/eyes.rb +5 -3
  13. data/lib/applitools/calabash/eyes_calabash_android_screenshot.rb +13 -2
  14. data/lib/applitools/calabash/eyes_calabash_ios_screenshot.rb +2 -0
  15. data/lib/applitools/calabash/eyes_calabash_screenshot.rb +2 -0
  16. data/lib/applitools/calabash/eyes_hooks.rb +2 -0
  17. data/lib/applitools/calabash/eyes_settings.rb +2 -0
  18. data/lib/applitools/calabash/full_page_capture_algorithm.rb +2 -0
  19. data/lib/applitools/calabash/full_page_capture_algorithm/android_scroll_view.rb +12 -2
  20. data/lib/applitools/calabash/full_page_capture_algorithm/base.rb +2 -0
  21. data/lib/applitools/calabash/full_page_capture_algorithm/ios_ui_table_view.rb +2 -0
  22. data/lib/applitools/calabash/os_versions.rb +2 -0
  23. data/lib/applitools/calabash/rspec_matchers.rb +2 -0
  24. data/lib/applitools/calabash/steps/android_eyes_session.rb +2 -0
  25. data/lib/applitools/calabash/steps/android_matchers.rb +2 -0
  26. data/lib/applitools/calabash/steps/eyes_session.rb +2 -0
  27. data/lib/applitools/calabash/steps/eyes_settings.rb +2 -0
  28. data/lib/applitools/calabash/steps/ios_eyes_session.rb +2 -0
  29. data/lib/applitools/calabash/steps/ios_matchers.rb +2 -0
  30. data/lib/applitools/calabash/steps/matchers.rb +2 -0
  31. data/lib/applitools/calabash/target.rb +2 -0
  32. data/lib/applitools/calabash/utils.rb +2 -0
  33. data/lib/applitools/calabash_steps.rb +2 -0
  34. data/lib/applitools/capybara/capybara_settings.rb +25 -0
  35. data/lib/applitools/capybara/driver.rb +39 -0
  36. data/lib/applitools/chunky_png/resampling.rb +2 -0
  37. data/lib/applitools/chunky_png_patch.rb +2 -0
  38. data/lib/applitools/connectivity/proxy.rb +2 -0
  39. data/lib/applitools/connectivity/server_connector.rb +23 -1
  40. data/lib/applitools/core/abstract_region.rb +2 -0
  41. data/lib/applitools/core/app_environment.rb +2 -0
  42. data/lib/applitools/core/app_output.rb +16 -4
  43. data/lib/applitools/core/app_output_with_screenshot.rb +2 -0
  44. data/lib/applitools/core/argument_guard.rb +3 -1
  45. data/lib/applitools/core/batch_info.rb +13 -5
  46. data/lib/applitools/core/class_name.rb +2 -0
  47. data/lib/applitools/core/debug_screenshot_provider.rb +4 -2
  48. data/lib/applitools/core/eyes_base.rb +45 -9
  49. data/lib/applitools/core/eyes_screenshot.rb +10 -1
  50. data/lib/applitools/core/fixed_cut_provider.rb +2 -0
  51. data/lib/applitools/core/fixed_scale_provider.rb +2 -0
  52. data/lib/applitools/core/floating_region.rb +10 -0
  53. data/lib/applitools/core/fluent_interface.rb +8 -1
  54. data/lib/applitools/core/hash_extension.rb +2 -0
  55. data/lib/applitools/core/helpers.rb +24 -0
  56. data/lib/applitools/core/location.rb +19 -1
  57. data/lib/applitools/core/match_level_setter.rb +2 -0
  58. data/lib/applitools/core/match_result.rb +2 -0
  59. data/lib/applitools/core/match_results.rb +2 -0
  60. data/lib/applitools/core/match_single_check_data.rb +2 -0
  61. data/lib/applitools/core/match_single_task.rb +2 -0
  62. data/lib/applitools/core/match_window_data.rb +26 -4
  63. data/lib/applitools/core/match_window_task.rb +2 -0
  64. data/lib/applitools/core/mouse_trigger.rb +2 -0
  65. data/lib/applitools/core/padding_bounds.rb +2 -0
  66. data/lib/applitools/core/rectangle_size.rb +16 -0
  67. data/lib/applitools/core/region.rb +32 -9
  68. data/lib/applitools/core/region_provider.rb +2 -0
  69. data/lib/applitools/core/screenshot.rb +6 -0
  70. data/lib/applitools/core/session.rb +2 -0
  71. data/lib/applitools/core/session_start_info.rb +2 -0
  72. data/lib/applitools/core/test_results.rb +2 -0
  73. data/lib/applitools/core/text_trigger.rb +2 -0
  74. data/lib/applitools/core/trigger.rb +2 -0
  75. data/lib/applitools/extensions.rb +2 -0
  76. data/lib/applitools/eyes_logger.rb +4 -2
  77. data/lib/applitools/method_tracer.rb +2 -0
  78. data/lib/applitools/rspec/target_matcher.rb +2 -0
  79. data/lib/applitools/sauce.rb +2 -1
  80. data/lib/applitools/utils/eyes_selenium_utils.rb +91 -15
  81. data/lib/applitools/utils/image_delta_compressor.rb +2 -0
  82. data/lib/applitools/utils/image_utils.rb +2 -0
  83. data/lib/applitools/utils/utils.rb +14 -0
  84. data/lib/applitools/version.rb +3 -1
  85. data/lib/eyes_core.rb +2 -0
  86. data/lib/eyes_rspec.rb +4 -0
  87. data/lib/require_utils.rb +2 -0
  88. metadata +10 -4
  89. data/lib/applitools/capybara.rb +0 -8
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: false
2
+
1
3
  module Applitools::Utils
2
4
  module ImageDeltaCompressor
3
5
  extend self
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'base64'
2
4
  require 'tempfile'
3
5
 
@@ -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
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: false
2
+
1
3
  module Applitools
2
- VERSION = '3.14.3'.freeze
4
+ VERSION = '3.14.4'.freeze
3
5
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'forwardable'
2
4
  require 'delegate'
3
5
  require 'time'
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+ #
3
+
4
+ Applitools.require_dir('rspec') if defined? RSpec
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Applitools
2
4
  module RequireUtils
3
5
  # @!visibility private
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.3
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: 2018-04-19 00:00:00.000000000 Z
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.6.14
311
+ rubygems_version: 2.7.7
306
312
  signing_key:
307
313
  specification_version: 4
308
314
  summary: Applitools Ruby SDK
@@ -1,8 +0,0 @@
1
- require 'capybara'
2
-
3
- Applitools::Selenium.require_dir 'selenium/capybara'
4
-
5
- module Applitools
6
- extend Applitools::Selenium::Capybara::CapybaraSettings
7
- register_capybara_driver
8
- end