Rakefile in sinatra-1.2.7 vs Rakefile in sinatra-1.2.8

- old
+ new

@@ -183,9 +183,13 @@ File.open(f.name, 'w') { |io| io.write(spec) } puts "updated #{f.name}" 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' &&