Rakefile in git-branch--stray-1.5.0 vs Rakefile in git-branch--stray-1.6.0
- old
+ new
@@ -25,9 +25,14 @@
task :default => [:version, :rubocop, :test]
task :documentation
-Rake::Task['build'].enhance([:default, :documentation])
+task :ready => :documentation do
+ sh('bundle --quiet') # regenerate Gemfile.lock e.g. if version has changed
+ 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