crate/crate_ruby — pull request #4 by aep (2014-12-29 21:12:44+00:00)
Title: log to stderr instead of custom file

TBH, i have no idea what the original intention of a custom logfile inside a gem was.
Looks like leftover debug code to me. The proper fix would be to eliminate the logger.
This change merely mitigates some specific problems with using the gem as an external dependency,
where it resides in a global dir rather than in the application.
- If it does not have the necessary permissions to write to its own library dir it'll just crash.
- Might cause unexpected out of disk issues when the rbenv is on a pre-built system partition.
- Causes race conditions when loading the gem in two apps or maybe even just two threads.