From: "R.. Kumar" Date: 2010-06-23T03:02:14+09:00 Subject: print gem VERSION from ruby program jeweler maintains a file VERSION in the base directory. My program in bin has an option, > prog --version. Currently. I have a constant VERSION in prog.rb. This is never in synch with the VERSION file, it should be. Is there any way of either updating the constant whenever I do a jeweler version:bump. Or else, my program inside lib/ should be able to get to the VERSION file. However, 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. thx, rkumar -- Posted via http://www.ruby-forum.com/.