From: Yossef Mendelssohn Date: 2011-11-13T07:52:41+09:00 Subject: Re: referring to version numbers in a gem On Nov 12, 5:31 pm, Intransition wrote: > Keep the data where ever you want, Rubygems has tossed the FHS out the > window so it doesn't really matter. > > The common way that has sprouted up, popularized by Bundler, is rather ass > backwards from the developers point of view. So flip it: > >     module MyShit >       VERSION = File.read(File.dirname(__FILE__)+'/../VERSION').strip >     end > > Now that's a rather simplistic approach, I can show you much better, but it > conveys the idea. What do you think is backwards? You obviously don't think it's backwards to have a constant of Whatever::VERSION. And you obviously don't think it's backwards to have the version contained in a separate file. Why not make it actually simple instead of just simplistic? module MyShit VERSION = 'whatever you were trying to store in a separate file for no obvious reason goes here' end -- -yossef