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?
>=20
> 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.=