Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: use Dir.home to find rake's standard system dir #608

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pvdb
Copy link
Contributor

@pvdb pvdb commented Dec 19, 2024

Hot on the heels of the changes in #591, this PR proposes a further simplification of Rake::Application.standard_system_dir() by using Dir.home() instead of File.expand_path("~")

As discussed here:

https://bugs.ruby-lang.org/issues/1027

... this is a much more idiomatic way to determine the home directory of the current user, and has been part of Ruby since 2009 (ruby 1.9.2).

Thanks, @hsbt! 🙏

@pvdb pvdb changed the title Use more idiomatic Dir.home to find rake's standard system dir refactor: use Dir.home to find rake's standard system dir Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant