Sha256: 966bf8e7c73cdade929f30986487787d36feaf520e920c4e479057c454891396

Contents?: true

Size: 433 Bytes

Versions: 25

Compression:

Stored size: 433 Bytes

Contents

module Approvals
  module Reporters
    class ImageMagickReporter
      include Singleton

      def working_in_this_environment?
        Approvals::SystemCommand.exists? "compare"
      end

      def create_command_line(received, approved)
        "compare #{received} #{approved} -compose Src x:"
      end

      def report(received, approved)
        system(create_command_line(received, approved))
      end

    end
  end
end

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
approvals-0.0.26 lib/approvals/reporters/image_reporter/image_magick_reporter.rb
approvals-0.0.25 lib/approvals/reporters/image_reporter/image_magick_reporter.rb
approvals-0.0.24 lib/approvals/reporters/image_reporter/image_magick_reporter.rb
br-approvals-0.0.22 lib/approvals/reporters/image_reporter/image_magick_reporter.rb
approvals-0.0.22 lib/approvals/reporters/image_reporter/image_magick_reporter.rb
approvals-0.0.21 lib/approvals/reporters/image_reporter/image_magick_reporter.rb
approvals-0.0.20 lib/approvals/reporters/image_reporter/image_magick_reporter.rb
approvals-0.0.19 lib/approvals/reporters/image_reporter/image_magick_reporter.rb
approvals-0.0.18 lib/approvals/reporters/image_reporter/image_magick_reporter.rb
approvals-0.0.17 lib/approvals/reporters/image_reporter/image_magick_reporter.rb
approvals-0.0.16 lib/approvals/reporters/image_reporter/image_magick_reporter.rb
approvals-0.0.15 lib/approvals/reporters/image_reporter/image_magick_reporter.rb
approvals-0.0.14 lib/approvals/reporters/image_reporter/image_magick_reporter.rb
approvals-0.0.13 lib/approvals/reporters/image_reporter/image_magick_reporter.rb
approvals-0.0.12 lib/approvals/reporters/image_reporter/image_magick_reporter.rb
approvals-0.0.11 lib/approvals/reporters/image_reporter/image_magick_reporter.rb
approvals-0.0.10 lib/approvals/reporters/image_reporter/image_magick_reporter.rb
approvals-0.0.9 lib/approvals/reporters/image_reporter/image_magick_reporter.rb
approvals-0.0.8 lib/approvals/reporters/image_reporter/image_magick_reporter.rb
approvals-0.0.7 lib/approvals/reporters/image_reporter/image_magick_reporter.rb