Module: GitSpec
- Defined in:
- lib/git_spec.rb,
lib/git_spec/cli.rb,
lib/git_spec/file.rb,
lib/git_spec/logger.rb,
lib/git_spec/status.rb,
lib/git_spec/version.rb,
lib/git_spec/configuration.rb
Defined Under Namespace
Classes: CLI, Configuration, File, Logger, Status
Constant Summary collapse
- VERSION =
"0.1.1"
Class Attribute Summary collapse
-
.configuration ⇒ Object
readonly
Returns the value of attribute configuration.
-
.logger ⇒ Object
readonly
Returns the value of attribute logger.
Class Method Summary collapse
Class Attribute Details
.configuration ⇒ Object (readonly)
Returns the value of attribute configuration.
11 12 13 |
# File 'lib/git_spec.rb', line 11 def configuration @configuration end |
.logger ⇒ Object (readonly)
Returns the value of attribute logger.
11 12 13 |
# File 'lib/git_spec.rb', line 11 def logger @logger end |
Class Method Details
.changed_files ⇒ Object
24 25 26 27 28 |
# 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| ... } ⇒ Object
14 15 16 17 18 19 20 21 |
# 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 |