Browse files

add CHANGES check to release task

  • Loading branch information...
1 parent 47c11e5 commit bf097d6dad76783b8983f76fa225c444db41e8a1 @rkh rkh committed Oct 5, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 Rakefile
View
4 Rakefile
@@ -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')} &&

0 comments on commit bf097d6

Please sign in to comment.