djberg96/ptools — pull request #5 by dg-vrnetze (2014-08-06 11:20:42+00:00)
Title: Support to resolve paths in ENV['PATH'] with "~"

Hi, I would like to use `ptools` in one of my projects.

For testing I need to mock the home directory. To make this work. I use "~" and a modified HOME-variable. The "~" can be expanded by `File.expand_path` based on `ENV['HOME']`. Later on there's a test if an executable exists in "~/bin" using ptools's `which`. Unfortunately that fails because `ptool` cannot resolve paths in `ENV['PATH']`beginning with "~".

I added this functionality and a test for that.