From: Stefan Lang Date: 2005-11-21T17:19:03+09:00 Subject: Re: gem help! On Monday 21 November 2005 02:44, Ara.T.Howard wrote: > i have the somewhat standard lib dir hiearchy which looks like > > lib/ > lib/foo.rb > lib/foo/ > lib/foo/a.rb > lib/foo/b.rb > > here foo.rb obviously does a relative require of both foo/a.rb and > foo/b.rb. > > my gemspec has something like > > spec.files = Dir[ File::join("{lib,bin}", "*") ] > > but, for some reason, the foo/ directory is not included in the > gem! any thoughts on how to do this? Try this: spec.files = Dir[ File::join("{lib,bin}", "**", "*") ] Which is as well as: spec.files = Dir[ "{lib,bin}/**/*" ] It builds a list of all entries under lib/ and bin/, also recursing into subdirectories. HTH, Stefan