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:
parent
47c11e5f62
commit
bf097d6dad
1 changed files with 4 additions and 0 deletions
4
Rakefile
4
Rakefile
|
@ -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')} &&
|
||||||
|
|
Loading…
Reference in a new issue