Makefile in twilio-ruby-5.2.2 vs Makefile in twilio-ruby-5.2.3
- old
+ new
@@ -1,10 +1,10 @@
-.PHONY: test lint-changed lint docs
+.PHONY: githooks test lint-changed lint docs
CHANGED_RUBY_FILES = $(shell git status --porcelain | grep ".rb" | awk -F ' ' '{print $2}' | tr '\n' ' ')
-install:
+install: githooks
bundle install; bundle exec rake install
test-install:
bundle install
@@ -14,9 +14,13 @@
docs:
yard doc --output-dir ./doc
lint:
rubocop --cache true --parallel
+
+githooks:
+ cp githooks/pre-commit .git/hooks/pre-commit
+ chmod +x .git/hooks/pre-commit
authors:
echo "Authors\n=======\n\nA huge thanks to all of our contributors:\n\n" > AUTHORS.md
git log --raw | grep "^Author: " | cut -d ' ' -f2- | cut -d '<' -f1 | sed 's/^/- /' | sort | uniq >> AUTHORS.md