eyes_core 3.0.5 → 3.0.6

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: 01f7514214dcf5565b7150f02424f51897e5bb5b
4
- data.tar.gz: d0fca17c339d5b8e74789952d858b61847d05545
3
+ metadata.gz: 88240d8c8281aa0a2aebc42e03aa5f69c0b032d5
4
+ data.tar.gz: 55d19a9664c77443db2e15fa6ce0626c494278c1
5
5
  SHA512:
6
- metadata.gz: 35fea0842ff2f2ee608635ecf774c246d46f42ea25f5584bafc056be144916446259c4f460d16e2871d0461d470ee50d410cd4e23cea529969335e6e287f0ff1
7
- data.tar.gz: 02e4e4b75c3d8785419a78d1fe0ed9c1a6d312be9870d8ebe46e161c4d772b8ba0a19155722f7dc3699c9e73192faa0e786079b1b432f9ed0c4f22f1556ac9fc
6
+ metadata.gz: 569897493f25be51d5108cf302658f9a3de7b14b01e7054279ca8d62acfe88de361f138581c2d3d7c278493b318bca93c9361b020784d7db74e956f006e0eecb
7
+ data.tar.gz: aa8f2059cad1174f959ee747630f1356e7d3367d322490262e6001c8f90e4138e7b94fcaf5c012de19930b11e12b60fe2bce992b3faafa1df8627ed2c1014021
@@ -1,6 +1,6 @@
1
1
  require 'capybara'
2
2
 
3
- Applitools.require_dir 'selenium/capybara'
3
+ Applitools::Selenium.require_dir 'selenium/capybara'
4
4
 
5
5
  module Applitools
6
6
  extend Applitools::Selenium::Capybara::CapybaraSettings
@@ -122,7 +122,7 @@ module Applitools
122
122
  end
123
123
 
124
124
  Applitools::ArgumentGuard.hash options, 'open_base parameter', [:test_name]
125
- default_options = { session_type: 'SEQUENTAL' }
125
+ default_options = { session_type: 'SEQUENTIAL' }
126
126
  options = default_options.merge options
127
127
 
128
128
  if app_name.nil?
@@ -23,7 +23,7 @@ module Applitools
23
23
  result = send(field)
24
24
  result = result.to_hash if result.respond_to? :to_hash
25
25
  [field, result] if [String, Symbol, Hash, Array, FalseClass, TrueClass].include? result.class
26
- end
26
+ end.compact
27
27
  Hash[ary]
28
28
  end
29
29
 
@@ -5,7 +5,7 @@ module Applitools
5
5
 
6
6
  class << self
7
7
  def from_region(region)
8
- new ChunkyPNG::Image.new(region.width, region.height).to_blob
8
+ new ::ChunkyPNG::Image.new(region.width, region.height).to_blob
9
9
  end
10
10
  end
11
11
 
@@ -3,7 +3,7 @@ require 'yaml'
3
3
  module Applitools
4
4
  class TestResults
5
5
  attr_accessor :is_new, :url
6
- attr_reader :steps, :matches, :mismatches, :missing
6
+ attr_reader :steps, :matches, :mismatches, :missing, :original_results
7
7
 
8
8
  def initialize(results = {})
9
9
  @steps = results.fetch('steps', 0)
@@ -186,10 +186,10 @@ module Applitools::Images
186
186
  alias set_viewport_size vp_size=
187
187
 
188
188
  def get_image_from_options(options)
189
- if options[:image].nil? && !options[:image].is_a?(Applitools::Screenshot)
189
+ if options[:image].nil? || !options[:image].is_a?(Applitools::Screenshot)
190
190
  if !options[:image_path].nil? && !options[:image_path].empty?
191
191
  image = Applitools::Screenshot.new ChunkyPNG::Datastream.from_file(options[:image_path]).to_s
192
- elsif options[:image_bytes].nil? && !options[:image_bytes].empty?
192
+ elsif !options[:image_bytes].nil? && !options[:image_bytes].empty?
193
193
  image = Applitools::Screenshot.new options[:image_bytes]
194
194
  end
195
195
  else
@@ -1,3 +1,3 @@
1
1
  module Applitools
2
- VERSION = '3.0.5'.freeze
2
+ VERSION = '3.0.6'.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.0.5
4
+ version: 3.0.6
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-03-15 00:00:00.000000000 Z
11
+ date: 2017-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oily_png