-
Notifications
You must be signed in to change notification settings - Fork 202
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
Fix dynamic key creation #400
Conversation
Hmm, now I'm trying to remember why I did that. |
Semi-related: #399 |
That's the exact error I was seeing @cheeseplus ... Idk why the tests see this as not creating the file... File.open is just File.new which accepts a block. Guess I'll dick around with this on my Mac next week. |
Signed-off-by: Brian Dwyer <[email protected]>
@coderanger maybe because Ruby was weird at the time regarding file permissions and |
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.
LGTM, @coderanger?
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.
Yeah, I still have no idea what I was thinking so hopefully this is better :D
I just ran into an issue with this, this fixed it. Can we get this released in a new gem? |
Was seeing a weird issue where Ruby was trying to write to the file before it had actually been created on the file system.... Lost the error output, but it was something along the lines of
File not open for writing
Moving this all into one code block has resolved the issue.