lib/xcjobs/xcodebuild.rb in xcjobs-0.2.2 vs lib/xcjobs/xcodebuild.rb in xcjobs-0.2.3

- old
+ new

@@ -1,9 +1,10 @@ require 'rake/tasklib' require 'rake/clean' require 'open3' require 'shellwords' +require 'securerandom' require_relative 'helper' module XCJobs class Xcodebuild < Rake::TaskLib include Rake::DSL if defined?(Rake::DSL) @@ -187,10 +188,10 @@ end gcov_file[source_path] << "#{execution_count.rjust(5)}:#{number.rjust(5)}:#{text}" end gcov_file.each do |key, value| - gcon_path = File.join(File.dirname(profdata_path), "#{File.basename(target_path)}.gcov") + gcon_path = File.join(File.dirname(profdata_path), "#{SecureRandom.urlsafe_base64(6)}-#{File.basename(target_path)}.gcov") file = File::open(gcon_path, "w") file.puts("#{'-'.rjust(5)}:#{'0'.rjust(5)}:Source:#{key}") file.puts(value) file.flush end