Sha256: 1389c90b379081e82dfc42cea1bf1ca377de4692368ae20e215b483ff98c5478
Contents?: true
Size: 547 Bytes
Versions: 14
Compression:
Stored size: 547 Bytes
Contents
module Guard class RSpec < Plugin class Results class InvalidData < RuntimeError end attr_reader :summary attr_reader :failed_paths def initialize(filename) lines = File.readlines(filename) if lines.empty? || lines.first.empty? dump = lines.inspect raise InvalidData, "Invalid results in: #{filename},"\ " lines:\n#{dump}\n" end @summary = lines.first.chomp @failed_paths = lines[1..11].map(&:chomp).compact end end end end
Version data entries
14 entries across 14 versions & 6 rubygems