8000 Define path with __dir__ by bogdanvlviv · Pull Request #6087 · jekyll/jekyll · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Define path with __dir__ #6087

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

Merged
merged 1 commit into from
Jul 25, 2017
Merged

Define path with __dir__ #6087

merged 1 commit into from
Jul 25, 2017

Conversation

bogdanvlviv
Copy link
Contributor
@bogdanvlviv bogdanvlviv commented May 24, 2017

".. with __dir__ we can restore order in the Universe."

Copy link
Member
@parkr parkr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine. FWIW, Kernel#__dir__ is a method, where __FILE__ is a parse-time constant, so this is a bit slower than using __FILE__ directly, but we're basically always using it with a call to File.dirname so no harm done.

Copy link
Member
@parkr parkr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah. This seems to have broken the tests. We'll need to sort that out first.

@parkr parkr added the internal label Jun 14, 2017
".. with __dir__ we can restore order in the Universe."
@bogdanvlviv
Copy link
Contributor Author

@parkr Thank you for the review! I finally finished this PR.

@bogdanvlviv
Copy link
Contributor Author

@parkr please review

@parkr
Copy link
Member
parkr commented Jul 25, 2017

@jekyllbot: merge +dev

@jekyllbot jekyllbot merged commit 8f1959b into jekyll:master Jul 25, 2017
jekyllbot added a commit that referenced this pull request Jul 25, 2017
@parkr
Copy link
Member
parkr commented Jul 25, 2017

Thank you, @bogdanvlviv! The consistency is wonderful.

@bogdanvlviv
Copy link
Contributor Author

@parkr Thanks!

Copy link
@msael msael left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey how

@jekyll jekyll locked and limited conversation to collaborators Jul 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0