From: Rein Henrichs Date: 2010-06-23T16:30:08+09:00 Subject: Re: print gem VERSION from ruby program On 2010-06-22 11:38:09 -0700, Roger Pack said: > , note that File.open("../VERSION") fails since >> it tries to check in the parent of the dir where user currently is >> running the app from. > > File.open(File.dirname(__FILE__) + "/../VERSION") Roger, you shouldn't depend on files outside of the lib/ dir when bundling your library as a gem. This was a problem for Rack for a while as some tools will move the lib dir out and break your relative path. -- Rein Henrichs http://puppetlabs.com http://reinh.com