Sha256: 5082de5f389178c79ee47441909d03ec8e04a680bfa9697905c99115af2048f8
Contents?: true
Size: 784 Bytes
Versions: 1
Compression:
Stored size: 784 Bytes
Contents
require "rspec/stackprof/version" require 'ostruct' require 'fileutils' require 'stackprof' require 'rspec/stackprof/filename_helpers' require 'rspec/stackprof/rspec.rb' module RSpec class StackProf extend FilenameHelpers class << self attr_accessor :configuration end def self.configuration @configuration ||= ::OpenStruct.new( out_dir: 'tmp', out_file: 'stackprof.out', ) end def self.configure yield(configuration) end def self.reset @configuration = nil end def self.options create_missing_dirs file=create_unique_file_name dirname = File.dirname(File.join(output_dir,output_file)) {out: File.join(dirname,file)}.merge(configuration.to_h) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rspec-stackprof-0.1.0 | lib/rspec/stackprof.rb |