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

[DEFECT] NoMethodError: undefined method `Pathname' #8

Merged
merged 1 commit into from
Nov 3, 2017

Conversation

menge101
Copy link
Contributor

Problem: When calling the chdir method, a NoMethod error is thrown with message: "undefined method 'Pathname'"

Analysis: The actual exception is thrown from the private method clean_path, on the following code line:
Pathname(join_to_pwd(path)).cleanpath.to_path

Fix: Added require for 'pathname'

Ruby version: 2.4.2

Problem: When calling the chdir method, a NoMethod error is thrown with message: "undefined method 'Pathname'"

Analysis: The actual exception is thrown from the private method clean_path, on the following code line:
    Pathname(join_to_pwd(path)).cleanpath.to_path

Fix: Added require for 'pathname'

Ruby version: 2.4.2
@georgediaz88
Copy link
Owner

@menge101, thanks for reporting this bug on Ruby 2.4.2. I'll merge and push a bug fix release.

Thanks!
George

@georgediaz88 georgediaz88 merged commit 927a670 into georgediaz88:master Nov 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants