Module: Similatron

Defined in:
lib/similatron.rb,
lib/similatron/run.rb,
lib/similatron/version.rb,
lib/similatron/comparison.rb,
lib/similatron/html_report.rb,
lib/similatron/comparison_engine.rb,
lib/similatron/pdf_comparison_engine.rb,
lib/similatron/diff_comparison_engine.rb,
lib/similatron/binary_diff_comparison_engine.rb,
lib/similatron/imagemagick_comparison_engine.rb

Defined Under Namespace

Classes: BinaryDiffComparisonEngine, Comparison, ComparisonEngine, DiffComparisonEngine, HtmlReport, ImagemagickComparisonEngine, PdfComparisonEngine, Run

Constant Summary collapse

VERSION =
"0.2.0".freeze

Class Method Summary collapse

Class Method Details

.compare(*args) ⇒ Object



20
21
22
# File 'lib/similatron.rb', line 20

def self.compare(*args)
  run.compare!(*args)
end

.completeObject



24
25
26
27
# File 'lib/similatron.rb', line 24

def self.complete
  run.complete
  puts run.summary
end

.lib_pathObject



37
38
39
# File 'lib/similatron.rb', line 37

def self.lib_path
  File.dirname(__FILE__)
end

.runObject



29
30
31
32
33
34
35
# File 'lib/similatron.rb', line 29

def self.run
  @run ||= begin
             run = Run.new
             run.start
             run
           end
end