rubygems/rubygems — pull request #373 by holstvoogd (2012-09-13 10:51:16+00:00)
Title: Add support for long file names and paths in tar writer

Tar writer limits the file name size to 99 characters and the path to 155 chars. This is not necessary for tar versions that support formats other than V7 and ustar. i.e. formats.

This patch detects the default tar format that is used locally and decides wether the format supports longer filenames.

Works properly with gnutar and defaults to legacy mode for bsdtar.

Tests included.