tasks/svn.rake in gecoder-0.8.3 vs tasks/svn.rake in gecoder-0.9.0
- old
+ new
@@ -1,10 +1,12 @@
require 'lib/gecoder/version'
desc "Tag the release in svn"
task :tag do
base_url = `svn info`.match(/Repository Root: (.*)/n)[1]
- base_url.gsub!('rubyforge', "#{ENV['RUBYFORGE_USER']}@rubyforge")
+ unless base_url.include? ENV['RUBYFORGE_USER']
+ base_url.gsub!('rubyforge', "#{ENV['RUBYFORGE_USER']}@rubyforge")
+ end
from = base_url + '/trunk'
to = base_url + "/tags/gecoder-#{GecodeR::VERSION}"
options = "-m \"Tag release Gecode/R #{GecodeR::VERSION}\""
puts "Creating tag in SVN"