module GitSpec
Constants
- VERSION
Attributes
configuration[R]
logger[R]
Public Class Methods
changed_files()
click to toggle source
# File lib/git_spec.rb, line 24 def self.changed_files logger.debug "Gathering changed files..." all_spec_paths = GitSpec::Status.changed_files.map(&:spec_path) segment_paths(all_spec_paths) end
configure() { |configuration| ... }
click to toggle source
# File lib/git_spec.rb, line 14 def self.configure @configuration ||= Configuration.new yield(configuration) @logger = GitSpec::Logger.new(STDOUT) logger.level = configuration.log_level end
Private Class Methods
segment_paths(paths)
click to toggle source
# File lib/git_spec.rb, line 32 def self.segment_paths(paths) exists = paths.select{|f| ::File.exists?(f)} dont_exist = paths - exists return exists, dont_exist end