class TestProf::RSpecStamp::Configuration
RSpecStamp configuration
def dry_run?
def dry_run? @dry_run == true end
def initialize
def initialize @ignore_files = [%r{spec/support}] @dry_run = ENV["RSTAMP_DRY_RUN"] == "1" self.tags = ENV["RSTAMP"] end
def parse_tags(str)
def parse_tags(str) str.split(/\s*,\s*/).each_with_object([]) do |tag, acc| k, v = tag.split(":") acc << if v.nil? k.to_sym else {k.to_sym => v.to_sym} end end end
def tags=(val)
def tags=(val) @tags = if val.is_a?(String) parse_tags(val) else val end end