Rakefile in sinatra-1.3.1 vs Rakefile in sinatra-1.3.2

- old
+ new

@@ -162,9 +162,13 @@ HEAD | gzip > #{f.name} SH 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')} && git commit --allow-empty -a -m '#{source_version} release' && git tag -s v#{source_version} -m '#{source_version} release' &&