lib/robot-vim/script_file.rb in robot-vim-0.9.0 vs lib/robot-vim/script_file.rb in robot-vim-0.10.0
- old
+ new
@@ -1,9 +1,9 @@
module RobotVim
class ScriptFile
def self.open(commands)
- file_name = UUID.new.generate(:compact)
+ file_name = FileNameGenerator.generate
script_file = File.new(file_name, "w")
script_file << commands
script_file.flush
script_file.close
yield file_name