Permalink
Browse files

add CHANGES check to release task

  • Loading branch information...
1 parent a0736bf commit a6395a83a31d837f539457855691e9a724b0b1a1 @rkh rkh committed Oct 5, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 Rakefile
View
@@ -185,6 +185,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 a6395a8

Please sign in to comment.