-
Notifications
You must be signed in to change notification settings - Fork 295
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
Define path with __dir__ #232
Conversation
@@ -15,11 +15,11 @@ class Drop | |||
ENV["JEKYLL_LOG_LEVEL"] = "error" | |||
|
|||
def dest_dir | |||
File.expand_path("../tmp/dest", File.dirname(__FILE__)) | |||
File.expand_path("tmp/dest", __dir__) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be File.expand_path("../tmp/dest", __dir__)
end | ||
|
||
def source_dir | ||
File.expand_path("./fixtures", File.dirname(__FILE__)) | ||
File.expand_path("./fixtures", __dir__) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be nice to get rid of redundant .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh. TIL'd.
Ooop. Sorry @DirtyF @bogdanvlviv got excited by learning something new and moved way too quickly. Glad to address the comments in a follow up PR. Sorry for the itchy finger. 100% my bad. |
@bogdanvlviv Thanks for the review. |
Since it was my mistake, I implemented both changes via cf90f90. Sorry about that. |
@benbalter, @DirtyF Nice job! ❤️ |
Inspired from jekyll/jekyll#6087 who itself took inspiration from rails/rails@5b8738c
/cc @bogdanvlviv