From ef3b4702bec54955145dd24af9dd9f583d495ec0 Mon Sep 17 00:00:00 2001 From: Peter Vandenberk Date: Thu, 19 Dec 2024 13:06:29 +0000 Subject: [PATCH] Use more idiomatic `Dir.home` to find system dir --- lib/rake/application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rake/application.rb b/lib/rake/application.rb index e387aec1c..87ae47b32 100644 --- a/lib/rake/application.rb +++ b/lib/rake/application.rb @@ -765,7 +765,7 @@ def standard_system_dir #:nodoc: end else def standard_system_dir #:nodoc: - File.join(File.expand_path("~"), ".rake") + File.join(Dir.home, ".rake") end end private :standard_system_dir