lib/constants.rb in markdown_exec-2.3.0 vs lib/constants.rb in markdown_exec-2.4.0
- old
+ new
@@ -3,10 +3,26 @@
# encoding=utf-8
require_relative 'block_types'
+class AppInterrupt < StandardError; end
+class BlockMissing < StandardError; end
+
+class ArgPro
+ ActFileIsMissing = :file_missing
+ ActFind = :find
+ ActSetBlockName = :block_name
+ ActSetFileName = :set_filename
+ ActSetOption = :set_option
+ ActSetPath = :set_path
+ ArgIsOption = :option
+ ArgIsPosition = :position
+ CallProcess = :proc_name
+ ConvertValue = :convert
+end
+
class ExecutionStreams
STD_ERR = :stderr
STD_IN = :stdin
STD_OUT = :stdout
end
@@ -28,9 +44,10 @@
SAVE = 'save'
VARS = 'vars'
end
class LoadFile
+ EXIT = :exit
LOAD = true
REUSE = false
end
LoadFileLinkState = Struct.new(:load_file, :link_state)