lib/hash_delegator.rb in markdown_exec-2.0.8.1 vs lib/hash_delegator.rb in markdown_exec-2.0.8.2
- old
+ new
@@ -802,11 +802,11 @@
@run_state.saved_filespec.present?
@run_state.in_own_window = true
system(
format(
@delegate_object[:execute_command_format],
- command_execute_in_own_window_format_arguments
+ command_execute_in_own_window_format_arguments(rest: args ? args.join(' ') : '')
)
)
else
@run_state.in_own_window = false
@@ -830,20 +830,21 @@
@run_state.error = err
@run_state.files[ExecutionStreams::STD_ERR] += [@run_state.error_message]
@fout.fout "Error ENOENT: #{err.inspect}"
end
- def command_execute_in_own_window_format_arguments(home: Dir.pwd)
+ def command_execute_in_own_window_format_arguments(home: Dir.pwd, rest: '')
{
batch_index: @run_state.batch_index,
batch_random: @run_state.batch_random,
block_name: @delegate_object[:block_name],
document_filename: File.basename(@delegate_object[:filename]),
document_filespec: @delegate_object[:filename],
home: home,
output_filename: File.basename(@delegate_object[:logged_stdout_filespec]),
output_filespec: @delegate_object[:logged_stdout_filespec],
+ rest: rest,
script_filename: @run_state.saved_filespec,
script_filespec: File.join(home, @run_state.saved_filespec),
started_at: @run_state.started_at.strftime(
@delegate_object[:execute_command_title_time_format]
)
@@ -1825,9 +1826,10 @@
batch_random: @run_state.batch_random,
block_name: @delegate_object[:block_name],
document_filename: File.basename(@delegate_object[:filename]),
document_filespec: @delegate_object[:filename],
home: Dir.pwd,
+ # rest: '',
started_at: Time.now.utc.strftime(@delegate_object[:execute_command_title_time_format])
}
end
# Loads auto blocks based on delegate object settings and updates if new filename is detected.