This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Nginx < Formula | |
homepage 'http://nginx.org/' | |
url 'http://nginx.org/download/nginx-1.6.1.tar.gz' | |
sha1 'e58c865f67b580541ed4eadf69d1676762bf50ab' | |
devel do | |
url 'http://nginx.org/download/nginx-1.5.1.tar.gz' | |
sha1 'bd5a5e7dba39a4aa166918112367589f165ce5bc' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
if `git diff --cached spec` =~ /,\s?(:focus|focus:\s?true|:focus\s?=>\s?true)/ | |
puts "\e[31mPlease focus and remove your :focus tags before committing!\e[0m" | |
exit 1 | |
end | |
if `git diff --cached app/assets/javascripts` =~ /\+\s*console.log/ | |
puts "\e[31mPlease remove your console.logs before committing!\e[0m" | |
exit 1 |