Skip to content

Commit

Permalink
add CHANGES check to release task
Browse files Browse the repository at this point in the history
  • Loading branch information
rkh committed Oct 5, 2011
1 parent 47c11e5 commit bf097d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Rakefile
Expand Up @@ -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')} &&
Expand Down

0 comments on commit bf097d6

Please sign in to comment.