Sha256: 9380b6f9c07dda77dd3a920cfe3d1b247f3a8b403907dda02e3d43fea1bbe10f
Contents?: true
Size: 885 Bytes
Versions: 4
Compression:
Stored size: 885 Bytes
Contents
require 'pre-commit/runner' ## # The pre-commit gem. # module PreCommit # Can not delete this method with out a deprecation strategy. # It is refered to in the generated pre-commit hook in versions 0.0-0.1.1 # # NOTE: The deprecation strategy *may* be just delete it since, we're still # pre 1.0. # # Actually, on the deprecation note. This method isn't really the problem. # The problem is the default generated pre-commit hook. It shouldn't have # logic in it. The we have freedom to change the gem implementation however # we want, and nobody is forced to update their pre-commit binary. def self.checks_to_run warn "WARNING: You are using old hook version, you can update it with: pre-commit install" runner.list_to_run(:checks) end def self.run runner.run or exit 1 end def self.runner @runner ||= PreCommit::Runner.new end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
pre-commit-0.40.0 | lib/pre-commit.rb |
pre-commit-0.39.0 | lib/pre-commit.rb |
pre-commit-0.38.1 | lib/pre-commit.rb |
pre-commit-0.38.0 | lib/pre-commit.rb |