diff --git a/lib/thor/runner.rb b/lib/thor/runner.rb index e1a0f339..270c3371 100644 --- a/lib/thor/runner.rb +++ b/lib/thor/runner.rb @@ -1,7 +1,6 @@ require_relative "../thor" require_relative "group" -require "yaml" require "digest/sha2" require "pathname" @@ -195,6 +194,7 @@ def thor_root def thor_yaml @thor_yaml ||= begin yaml_file = File.join(thor_root, "thor.yml") + require "yaml" yaml = YAML.load_file(yaml_file) if File.exist?(yaml_file) yaml || {} end