Files
growstuff/script/check_gemfile
Miles Gould 3fed962dcc Add script/check_static to run all static checks
...and invoke it from .travis.yml
2017-02-07 14:27:14 +00:00

10 lines
305 B
Ruby
Executable File

#!/usr/bin/env ruby
require 'set'
changed_file_list = `git diff --name-only --diff-filter=ACMRTUXB origin/dev...`
files = Set.new changed_file_list.split
if (files.include? "Gemfile") && !(files.include? "Gemfile.lock")
abort "Looks like you committed changes to Gemfile but not Gemfile.lock\n\n"
end