Sha256: 71c709bef3b8f5a184de33a034ece73d8404d6bf10dae318919ac70e7289d993

Contents?: true

Size: 390 Bytes

Versions: 2

Compression:

Stored size: 390 Bytes

Contents

require 'active_record'

require 'database_plumber/leak_finder'
require 'database_plumber/report'
require 'database_plumber/version'

module DatabasePlumber
  def self.log(example)
    @example = example
  end

  def self.inspect(options = {})
    leaks = LeakFinder.inspect(options)
    unless leaks.empty?
      Report.on @example, leaks
      exit! if options[:brutal]
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
database_plumber-1.1.0 lib/database_plumber.rb
database_plumber-1.0.0 lib/database_plumber.rb