class PreCommit::Checks::GemfilePath

Public Class Methods

description() click to toggle source
# File lib/plugins/pre_commit/checks/gemfile_path.rb, line 23
def self.description
  "Checks 'Gemfile' for local paths."
end

Public Instance Methods

extra_grep() click to toggle source
# File lib/plugins/pre_commit/checks/gemfile_path.rb, line 19
def extra_grep
  %w{-v #}
end
files_filter(staged_files) click to toggle source
# File lib/plugins/pre_commit/checks/gemfile_path.rb, line 7
def files_filter(staged_files)
  staged_files.grep(/^Gemfile$/)
end
message() click to toggle source
# File lib/plugins/pre_commit/checks/gemfile_path.rb, line 11
def message
  "local path found in Gemfile:"
end
pattern() click to toggle source
# File lib/plugins/pre_commit/checks/gemfile_path.rb, line 15
def pattern
  "path:|:path\\s*=>"
end