From: Martin DeMello Date: 2007-03-18T18:15:56+09:00 Subject: Re: gems and require On 3/18/07, Eric Hodel wrote: > > Furthermore, there's no way to find out > > what file I *do* need to require other than looking at the directory > > structure of the gem. An option to gem that would list all requirable > > files would be a nice addition. > > You mean "gem contents"? > $ gem contents memcache-client > /usr/local/lib/ruby/gems/1.8/gems/memcache-client-1.3.0/History.txt > /usr/local/lib/ruby/gems/1.8/gems/memcache-client-1.3.0/LICENSE.txt > /usr/local/lib/ruby/gems/1.8/gems/memcache-client-1.3.0/Manifest.txt > /usr/local/lib/ruby/gems/1.8/gems/memcache-client-1.3.0/README.txt > /usr/local/lib/ruby/gems/1.8/gems/memcache-client-1.3.0/Rakefile > /usr/local/lib/ruby/gems/1.8/gems/memcache-client-1.3.0/lib/memcache.rb > /usr/local/lib/ruby/gems/1.8/gems/memcache-client-1.3.0/lib/ > memcache_util.rb > /usr/local/lib/ruby/gems/1.8/gems/memcache-client-1.3.0/test/ > test_mem_cache.rb No - that just spits out everything in the gem. What's needed is a command that just lists those files in the directories that 'gem' adds to $: martin