task/gemgem.rb in rest-more-3.3.3 vs task/gemgem.rb in rest-more-3.3.4
- old
+ new
@@ -77,9 +77,14 @@
sh_git('push', '--tags')
sh_gem('push', gem_path)
end
def gem_check
+ unless git('status', '--porcelain').empty?
+ puts("\e[35mWorking copy is not clean.\e[0m")
+ exit(3)
+ end
+
ver = spec.version.to_s
if ENV['VERSION'].nil?
puts("\e[35mExpected " \
"\e[33mVERSION\e[35m=\e[33m#{ver}\e[0m")