Rakefile in curly-templates-1.0.0 vs Rakefile in curly-templates-1.0.1
- old
+ new
@@ -63,10 +63,10 @@
#
#############################################################################
desc "Create tag v#{version} and build and push #{gem_file} to Rubygems"
task :release => :build do
- unless `git branch` =~ /^\* master$/
+ unless `git branch` =~ /^\* master$/ || `git branch` =~ /^\* \d+-\d+-stable$/
puts "You must be on the master branch to release!"
exit!
end
sh "git commit --allow-empty -a -m 'Release #{version}'"
sh "git tag v#{version}"