From d153355d35954e0e553d4b1b34db10a0ea7fa6a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Fri, 14 Mar 2014 14:34:49 -0300 Subject: Match the whole string --- tasks/release.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tasks/release.rb') diff --git a/tasks/release.rb b/tasks/release.rb index 439a9e0c05..f6ec2dbe58 100644 --- a/tasks/release.rb +++ b/tasks/release.rb @@ -102,7 +102,7 @@ namespace :all do abort "[ABORTING] `git status` reports a dirty tree. Make sure all changes are committed" end - unless ENV['SKIP_TAG'] || `git tag | grep #{tag}`.strip.empty? + unless ENV['SKIP_TAG'] || `git tag | grep '^#{tag}$`.strip.empty? abort "[ABORTING] `git tag` shows that #{tag} already exists. Has this version already\n"\ " been released? Git tagging can be skipped by setting SKIP_TAG=1" end -- cgit v1.2.3 From b4c96490eeb1fbb944e116c7703dd528b37fc08a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Fri, 14 Mar 2014 14:52:17 -0300 Subject: Take in consideration guides CHANGELOG --- tasks/release.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tasks/release.rb') diff --git a/tasks/release.rb b/tasks/release.rb index f6ec2dbe58..a55cb68a47 100644 --- a/tasks/release.rb +++ b/tasks/release.rb @@ -68,7 +68,7 @@ end namespace :changelog do task :release_date do - FRAMEWORKS.each do |fw| + FRAMEWORKS + ['guides'].each do |fw| require 'date' replace = '\1(' + Date.today.strftime('%B %d, %Y') + ')' fname = File.join fw, 'CHANGELOG.md' @@ -79,7 +79,7 @@ namespace :changelog do end task :release_summary do - FRAMEWORKS.each do |fw| + FRAMEWORKS + ['guides'].each do |fw| puts "## #{fw}" fname = File.join fw, 'CHANGELOG.md' contents = File.readlines fname -- cgit v1.2.3