Skip to content

Commit

Permalink
Merge pull request #27 from everypolitician/fail-if-there-are-gemfile…
Browse files Browse the repository at this point in the history
….lock-changes

Don't boot Jekyll if there are Gemfile.lock changes
  • Loading branch information
chrismytton authored Sep 15, 2016
2 parents 3679fc0 + 04a69cd commit dd3abbb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions _plugins/gemfile_lock_check.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
if `git status -s`.include?('Gemfile.lock')
abort <<-COMMIT_CHANGES
#################################################
# #
# Please commit the changes to Gemfile.lock #
# #
#################################################
COMMIT_CHANGES
end

0 comments on commit dd3abbb

Please sign in to comment.