lib/coderunner/run.rb in coderunner-0.17.11 vs lib/coderunner/run.rb in coderunner-0.18.0

- old
+ new

@@ -730,13 +730,17 @@ FileUtils.cp(file, File.basename(file))} end end def generate_run_name + if CodeRunner::GLOBAL_OPTIONS[:short_run_name] + @run_name = %[v#{@version}_id_#@id] + else @run_name = %[v#@version] + @naming_pars.inject("") do |str, par| str+="_#{par}_#{send(par).to_s[0...8]}" end @run_name = @run_name.gsub(/\s+/, "_").gsub(/\//, '') + "_id_#@id" + end end def write_info Dir.chdir(@directory){File.open("code_runner_info.rb", 'w'){|file| file.puts info_file}} end