add CHANGES check to release task

This commit is contained in:
Konstantin Haase 2011-10-05 09:44:47 -07:00
parent 47c11e5f62
commit bf097d6dad
1 changed files with 4 additions and 0 deletions

View File

@ -164,6 +164,10 @@ if defined?(Gem)
end
task 'release' => ['test', package('.gem')] do
if File.read("CHANGES") =~ /= \d\.\d\.\d - not yet released$/i
fail 'please update changes first'
end
sh <<-SH
gem install #{package('.gem')} --local &&
gem push #{package('.gem')} &&