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

Use File.expand_path outside temp_dir #557

Merged
merged 1 commit into from
Nov 21, 2017

Conversation

aycabta
Copy link
Member

@aycabta aycabta commented Nov 11, 2017

According to circumstances, __FILE__ inside temp_dir returns invalid path, so uses File.expand_path('..', __FILE__) outside temp_dir instead of it.

This bug is reproduced by a command below without this commit:

$ ruby -Ilib:test test/test_rdoc_rdoc.rb -n test_normalized_file_list

According to circumstances, __FILE__ inside temp_dir returns invalid
path for test, so uses File.expand_path('..', __FILE__) outside temp_dir
instead of it.

This bug is reproduced by a command below without this commit:

  ruby -Ilib:test test/test_rdoc_rdoc.rb -n test_normalized_file_list
@hsbt hsbt merged commit fbae5be into ruby:master Nov 21, 2017
@aycabta aycabta deleted the use-expand_path-outside-temp_dir branch November 21, 2017 10:05
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.

2 participants