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

changes don't have to be up to date for a prerelease

This commit is contained in:
Konstantin Haase 2013-02-26 18:00:11 +11:00
parent 2a3ee2dc88
commit 73524e66f3

View file

@ -181,7 +181,7 @@ if defined?(Gem)
task 'release' => ['test', package('.gem')] do
if File.binread("CHANGES") =~ /= \d\.\d\.\d . not yet released$/i
fail 'please update changes first'
fail 'please update changes first' unless %x{git symbolic-ref HEAD} == "refs/heads/prerelease\n"
end
sh <<-SH