summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-08-21 11:07:50 -0700
committerTim Smith <tsmith84@gmail.com>2020-08-21 11:07:50 -0700
commit91e24db8ad73ab332c6491ae314c70f181d3dbf1 (patch)
tree1facea47ada18be9bddfb74dbb169c8815198ec5 /Rakefile
parent244c1d477bacdfc1a61ebda418bf70b88c17f2e1 (diff)
downloadmixlib-log-91e24db8ad73ab332c6491ae314c70f181d3dbf1.tar.gz
Optimize our requires
Avoid requiring things that are already defined. Rubygems is very slow at traversing the filesystem. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 5442c99..3939fd3 100644
--- a/Rakefile
+++ b/Rakefile
@@ -39,7 +39,7 @@ rescue LoadError
end
begin
- require "yard"
+ require "yard" unless defined?(YARD)
YARD::Rake::YardocTask.new(:docs)
rescue LoadError
puts "yard is not available. bundle install first to make sure all dependencies are installed."