Skip to content

Instantly share code, notes, and snippets.

View sparksp's full-sized avatar
🏠
Working from home

Phill Sparks sparksp

🏠
Working from home
View GitHub Profile
@sparksp
sparksp / pre-commit
Last active December 25, 2015 14:39 — forked from ideasasylum/pre-commit
#!/usr/bin/env ruby
spec_hits = []
checks = {
'_spec\.rb$' => ['focus:[[:space:]]*true', ':focus'],
'\.rb$' => ['binding\.pry', 'debugger']
}
# Find the names of all the filenames that have been (A)dded (C)opied or (M)odified
filenames = `git diff --cached --name-only --diff-filter=ACM`.split("\n")
diff --git a/configure b/configure
index 7267f64..2273bb8 100755
--- a/configure
+++ b/configure
@@ -7,14 +7,12 @@ if [ ! -z "`echo $CC | grep ccache`" ]; then
exit 1
fi
-CUR_DIR=$PWD
-