Sha256: e9a34d6d11278c8e73e603012d61fb94d82c309333084e128f26cf13550e9618
Contents?: true
Size: 495 Bytes
Versions: 3
Compression:
Stored size: 495 Bytes
Contents
#!/usr/bin/env ruby if system("which rvm > /dev/null") cmd = "rvm default do ruby -rrubygems " elsif system("which rbenv > /dev/null") cmd = "rbenv exec ruby -rrubygems " else cmd = "ruby -rrubygems " end if !system("#{cmd} -rpre-commit -e '' 2> /dev/null") $stderr.puts "pre-commit: WARNING: Skipping checks because the pre-commit gem is not installed. (Did you change your Ruby version?)" exit(0) end cmd << %Q{-e "require 'pre-commit'; PreCommit.run"} exit(system(cmd) ? 0 : 1)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pre-commit-0.6.1 | templates/pre-commit-hook |
pre-commit-0.6.0 | templates/pre-commit-hook |
pre-commit-0.5.0 | templates/pre-commit-hook |