1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

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

View file

@ -164,6 +164,10 @@ if defined?(Gem)
end end
task 'release' => ['test', package('.gem')] do 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 sh <<-SH
gem install #{package('.gem')} --local && gem install #{package('.gem')} --local &&
gem push #{package('.gem')} && gem push #{package('.gem')} &&