Rakefile in git-multi-3.0.0 vs Rakefile in git-multi-3.0.2

- old
+ new

@@ -53,9 +53,15 @@ FileUtils.cp 'git-multi.1', Git::Multi::MAN_PAGE FileUtils.cp 'git-multi.html', Git::Multi::HTML_PAGE end end -Rake::Task['build'].enhance([:default, :documentation]) +task :ready => :documentation do + sh('bundle --quiet') # regenerate Gemfile.lock e.g. if version has changed + sh('git update-index --really-refresh') # refresh touched but unchanged docs + sh('git diff-index --quiet HEAD --') # https://stackoverflow.com/a/2659808 +end + +Rake::Task['build'].enhance([:default, :ready]) # rubocop:enable Style/HashSyntax # rubocop:enable Style/SymbolArray