Mon-Ouie / coolline

Simple readline-like tool able to change representation of input
Other
82 stars 14 forks source link

Fix exception for missing HOME env var #20

Open dlackty opened 9 years ago

dlackty commented 9 years ago

For some environments, ENV['HOME'] might not be available and this gem will fail to load, however Etc.getpwuid.dir would still be available no matter ENV["HOME"] is presented or not.

ref. http://stackoverflow.com/questions/4190930/cross-platform-means-of-getting-users-home-directory-in-ruby