From: Eric Hodel Date: 2007-02-01T03:59:30+09:00 Subject: Re: Rake GemPackageTask Suggestion On Jan 31, 2007, at 02:35, Trans wrote: > On Jan 31, 4:28 am, Eric Hodel wrote: >> On Jan 31, 2007, at 24:40, Trans wrote: >> >>> When using the GemPackageTask, one has to build the GemSpec in order >>> to define the task. For a large project and/or slow machine this >>> actualy can take a second or so. >> >>> spec = Gem::Specification.new do |s| >>> s.files = FileList.new('**/*').to_a >> >> How many files do you have? > > 1,530 Scanning 1500 files is your time sink. >> I solve this by using a Manifest.txt, that way I know exactly what I >> want is included, and nothing I don't: > > It's not an issue of knowing what is included. It is a matter of > efficency. Its both. Since I have to verify what I've added to the Manifest.txt and check it in, files won't mysteriously appear in my releases that shouldn't have been there. >> s.files = File.read('Manifest.txt').split >> >> Plus the check_manifest task from Hoe to make sure everything is up- >> to-date. > > What does Hoe do to check the manifest? A Find.find followed by a diff. If you like the changes, you can pipe it to patch.