From: Eric Hodel Date: 2011-11-12T06:29:08+09:00 Subject: Re: referring to version numbers in a gem 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.