Closed bemurphy closed 12 years ago
Thank you for noticing this. I agree with this patch even though I prefer using mode: "w", perm: 0600 style :).
I think this File instance could be closed immediately by giving (empty) block or close explicitly. How do you feel? Is that GC job?
Hmm, I wasn't aware File.open could be passed the perm in a hash. If so, that's probably more explicit.
As for closing it, I'd favor explicit .close over an empty block; it would confuse a reader less. I will drop both in an additional commit.
Does "w" leave alone? or {mode: "w"} ? But that is not essential. Now, everything is reasonable for me, thanks. @jugyo, can I merge this?
Sorry for my misreading. mode: is there exactly!
It was merged. I think 0600 is best.
Thanks!
Since the config file holds secret keys for oauth, I figured it was best written default the first time with 0600 perms.