Module: Approvals

Extended by:
DSL
Defined in:
lib/approvals/cli.rb,
lib/approvals.rb,
lib/approvals/dsl.rb,
lib/approvals/error.rb,
lib/approvals/filter.rb,
lib/approvals/writer.rb,
lib/approvals/dotfile.rb,
lib/approvals/version.rb,
lib/approvals/approval.rb,
lib/approvals/scrubber.rb,
lib/approvals/executable.rb,
lib/approvals/configuration.rb,
lib/approvals/system_command.rb,
lib/approvals/namers/rspec_namer.rb,
lib/approvals/reporters/launcher.rb,
lib/approvals/reporters/reporter.rb,
lib/approvals/writers/xml_writer.rb,
lib/approvals/writers/hash_writer.rb,
lib/approvals/writers/html_writer.rb,
lib/approvals/writers/json_writer.rb,
lib/approvals/writers/text_writer.rb,
lib/approvals/extensions/rspec/dsl.rb,
lib/approvals/namers/default_namer.rb,
lib/approvals/writers/array_writer.rb,
lib/approvals/writers/binary_writer.rb,
lib/approvals/namers/directory_namer.rb,
lib/approvals/reporters/image_reporter.rb,
lib/approvals/reporters/filelauncher_reporter.rb,
lib/approvals/reporters/first_working_reporter.rb,
lib/approvals/reporters/diff_reporter/vimdiff_reporter.rb,
lib/approvals/reporters/diff_reporter/opendiff_reporter.rb,
lib/approvals/reporters/diff_reporter/diffmerge_reporter.rb,
lib/approvals/reporters/image_reporter/html_image_reporter.rb,
lib/approvals/reporters/diff_reporter/tortoisediff_reporter.rb,
lib/approvals/reporters/image_reporter/image_magick_reporter.rb

Overview

don't require the approvals library here, as it will reset the dotfile. or find a better way to reset the dotfile before a run.

Defined Under Namespace

Modules: DSL, Namers, RSpec, Reporters, SystemCommand, Writer, Writers Classes: Approval, ApprovalError, CLI, Configuration, Dotfile, Executable, Filter, Scrubber

Constant Summary collapse

VERSION =
'0.0.22'

Class Method Summary collapse

Methods included from DSL

verify

Class Method Details

.configurationObject


10
11
12
# File 'lib/approvals/configuration.rb', line 10

def configuration
  Approvals::Configuration.instance
end

.configure(&block) ⇒ Object


6
7
8
# File 'lib/approvals/configuration.rb', line 6

def configure(&block)
  block.call Approvals::Configuration.instance
end

.project_dirObject


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

def project_dir
  @project_dir ||= FileUtils.pwd
end

.resetObject


27
28
29
# File 'lib/approvals.rb', line 27

def reset
  Dotfile.reset
end