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

Expand tilde in config path #116

Merged
merged 4 commits into from
Feb 2, 2020
Merged

Conversation

jgillich
Copy link
Contributor

In Crystal 0.32.0, File.expand_path was changed to no longer expand the tilde (~) character by default. This causes icr to create a '~' directory in the current folder.

This change restores the old behavior by setting home: true.

Also includes a commit that adds /lib directory to gitignore.

In Crystal 0.32.0, File.expand_path was changed to
no longer expand the tilde (~) character by default.
This causes icr to create a '~' directory in the current folder.

This change restores the old behavior by setting home: true.
@veelenga
Copy link
Member

Thanks. Would you mind to add some catching testcase ?

Also changed it to use a temp directory instead of polluting pwd.
@jgillich
Copy link
Contributor Author

@veelenga Done

@jgillich
Copy link
Contributor Author

jgillich commented Feb 2, 2020

Can someone hit merge? =)

@jwoertink
Copy link
Collaborator

Ha. Thanks for the ping 😆

@jwoertink jwoertink merged commit 4324cb8 into crystal-community:master Feb 2, 2020
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

3 participants