fixing renderText script

This commit is contained in:
2026-06-11 15:14:00 +02:00
parent 3e922883f7
commit 9ad6b15130
302 changed files with 120914 additions and 20 deletions
Executable
+19
View File
@@ -0,0 +1,19 @@
require 'pathname'
require 'tmpdir'
require 'ostruct'
ENV['BUNDLE_GEMFILE'] = Pathname.new(File.dirname(__FILE__)).join('../Gemfile').to_s
require 'bundler'
Bundler.require
def mktmpdir debug = false
Dir.mktmpdir do |tmpdir|
dir = Pathname.new(tmpdir)
if debug
dir = Pathname.new(File.dirname(__FILE__)).join('../tmp')
FileUtils.mkdir dir unless dir.exist?
end
yield dir
end
end