[Rubygems-developers] Is zlib an official dependency?

Eric Hodel drbrain at segment7.net
Tue Jun 23 16:50:34 EDT 2009

On Jun 21, 2009, at 22:04, Daniel Berger wrote:
> Is it really necessary to have this many require's spread throughout  
> the
> rubygems source?
> lib\rubygems\commands\mirror_command.rb:2:require 'zlib'
> lib\rubygems\indexer.rb:3:require 'zlib'
> lib\rubygems\old_format.rb:10:require 'zlib'
> lib\rubygems\package.rb:10:require 'zlib'
> lib\rubygems\server.rb:3:require 'zlib'
> lib\rubygems\source_index.rb:527:    require 'zlib'
> lib\rubygems\spec_fetcher.rb:1:require 'zlib'
> lib\rubygems.rb:456:    require 'zlib'
> lib\rubygems.rb:572:    require 'zlib'
> lib\rubygems.rb:583:    require 'zlib'
> lib\rubygems.rb:595:    require 'zlib'
> test\gemutilities.rb:386:    require 'zlib'
> test\test_gem_remote_fetcher.rb:9:require 'zlib'
> I ask because I'd like to default to pr/zlib if zlib isn't found. If  
> we can
> limit it to a single require near the top of rubygems.rb, it would  
> simplify
> the process drastically. :)

I'd be happy to see if they were all pushed down into lib/ 
rubygems.rb.  zlib shouldn't be required for the runtime, the runtime  
should only load what it needs (smaller is better).

More information about the Rubygems-developers mailing list