From: "Carina C. Zona" Date: 2011-11-12T08:42:43+09:00 Subject: Re: referring to version numbers in a gem Good point, Eric On Fri, Nov 11, 2011 at 1:29 PM, Eric Hodel wrote: > On Nov 11, 2011, at 1:22 PM, Carina C. Zona wrote: >> How about DRYing it up a by fetching the value from the version info >> supplied by your gem's specification? >> >> http://rubygems.rubyforge.org/rubygems-update/Gem/Specification.html > > When developing, the code I'm running may not be installed as a gem so there's nowhere to fetch the version from. > > The authoritative source should be with the code so that the behavior is consistent for gem users, gem packagers and people who unpack gems and load them with -I. > --   Carina