mirror of
https://github.com/athityakumar/colorls.git
synced 2024-09-19 05:31:23 +02:00
f34453bce3
When trying to `require` a gem running in an unlinked directory, an exception is thrown because `Dir.pwd` is called (see rubygems/rubygems#3087). Until the fix lands in an official release, we monkey patch `Dir.pwd` to return '/' if a `Errno::ENOENT` exception is raised while loading the colorls gem. This should work for all Unixes. On Windows, this error cannot happen since you cannot unlink a directory which is still in use by a process. Fixes #351. |
||
---|---|---|
.. | ||
colorls |