lib/markdown_exec.rb in markdown_exec-0.1.0 vs lib/markdown_exec.rb in markdown_exec-0.1.1
- old
+ new
@@ -6,11 +6,11 @@
# rubocop:disable Style/GlobalVars
$pdebug = !(ENV['MARKDOWN_EXEC_DEBUG'] || '').empty?
require 'open3'
require 'optparse'
-require 'pathname'
+# require 'pathname'
require 'tty-prompt'
require 'yaml'
require_relative 'markdown_exec/version'
BLOCK_SIZE = 1024
@@ -365,10 +365,10 @@
# $stdout.sync = true
## configuration file
#
def read_configuration!(options, configuration_path)
- if Pathname.new(configuration_path).exist?
+ if File.exist?(configuration_path)
# rubocop:disable Security/YAMLLoad
options.merge!((YAML.load(File.open(configuration_path)) || {})
.transform_keys(&:to_sym))
# rubocop:enable Security/YAMLLoad
end