lib/entangler/executor/helpers.rb in entangler-1.1.0 vs lib/entangler/executor/helpers.rb in entangler-1.1.1

- old
+ new

@@ -1,7 +1,9 @@ module Entangler module Helper def self.with_temp_file(name: 'tmp_file', contents: nil) + require 'tempfile' + t = Tempfile.new(name) t.puts(contents) unless contents.nil? t.close yield t t.unlink