Module: DotDiff

Defined in:
lib/dotdiff.rb,
lib/dotdiff/version.rb,
lib/dotdiff/comparer.rb,
lib/dotdiff/snapshot.rb,
lib/dotdiff/element_meta.rb,
lib/dotdiff/image/cropper.rb,
lib/dotdiff/command_wrapper.rb,
lib/dotdiff/element_handler.rb

Defined Under Namespace

Modules: Image Classes: CommandWrapper, Comparer, ElementHandler, ElementMeta, Snapshot

Constant Summary collapse

VERSION =
"2.0.1"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.failure_image_pathObject

Returns the value of attribute failure_image_path.



17
18
19
# File 'lib/dotdiff.rb', line 17

def failure_image_path
  @failure_image_path
end

.image_magick_diff_binObject



39
40
41
# File 'lib/dotdiff.rb', line 39

def image_magick_diff_bin
  @image_magick_diff_bin.to_s.strip
end

.image_magick_optionsObject



35
36
37
# File 'lib/dotdiff.rb', line 35

def image_magick_options
  @image_magick_options ||= '-fuzz 5% -metric AE'
end

.image_store_pathObject

Returns the value of attribute image_store_path.



17
18
19
# File 'lib/dotdiff.rb', line 17

def image_store_path
  @image_store_path
end

.max_wait_timeObject

Returns the value of attribute max_wait_time.



17
18
19
# File 'lib/dotdiff.rb', line 17

def max_wait_time
  @max_wait_time
end

.overwrite_on_resaveObject

Returns the value of attribute overwrite_on_resave.



17
18
19
# File 'lib/dotdiff.rb', line 17

def overwrite_on_resave
  @overwrite_on_resave
end

.pixel_thresholdObject



43
44
45
# File 'lib/dotdiff.rb', line 43

def pixel_threshold
  @pixel_threshold ||= 100
end

.resave_base_imageObject

Returns the value of attribute resave_base_image.



17
18
19
# File 'lib/dotdiff.rb', line 17

def resave_base_image
  @resave_base_image
end

.xpath_elements_to_hideObject

Returns the value of attribute xpath_elements_to_hide.



17
18
19
# File 'lib/dotdiff.rb', line 17

def xpath_elements_to_hide
  @xpath_elements_to_hide
end

Class Method Details

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (DotDiff)

    the object that the method was called on



23
24
25
# File 'lib/dotdiff.rb', line 23

def configure
  yield self
end