def gems_dir
    # TODO: this logic seems terribly broken, but tests fail if just base_dir
    @gems_dir ||= File.join(loaded_from && base_dir || Gem.dir, "gems")
  end
#
Returns the full path to the gems directory containing this spec's
gem directory. eg: /usr/local/lib/ruby/1.8/gems