On Jan 18, 2011, at 14:28, James Tucker wrote: > On Jan 17, 2011, at 5:23 PM, Hiroshi Nakamura wrote: > >> Hi Nick, >> >> You are right. Thanks for pointing this! >> >> On Tue, Jan 18, 2011 at 01:01, Nick Quaranto <n...@quaran.to> wrote: >>> I'm not sure what to do about the cert stuff, but we do need OpenSSL >>> as a dependency since `gem push`, `gem owner`, and the like use SSL to >>> talk to rubygems.org. Unless if you prefer your passwords sent in the >>> clear. :) >> >> I wrote too much. Sorry. I should have written; >> >> - It's the only reason why rubygems depends on openssl *by default*, >> even if user doesn't want to use its feature. With removing 'cert' >> command, *some features of* rubygems gets openss free. >> >> Users who want to push gem still needs openssl. And users who adds >> 'https://rubygems.org/' like me needs openssl to scan the central >> repository. >> >> *For me*, it's more important that rubygems tries to require 'openssl' >> only when it's really needed, not by default. I know current rubygems >> doesn't depends on openssl. It works even if there's no openssl >> installed but this hidden dependency makes it harder for jruby to >> reduce startup time. > > > i think i already did this in the rubygems repo, didn't i?
rubygems/security (thus rubygems/gem_openssl and openssl) are required only from commands, rubygems/package and rubygems/builder. None of these are required by require 'rubygems': $ ruby -Ilib -e 'require "rubygems"; p $".grep(/openssl/)' [] $ ruby -v -Ilib -e 'require "rubygems"; p $"' ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0] ["enumerator.so", "rubygems/defaults.rb", "rbconfig.rb", "thread.bundle", "thread.rb", "rubygems/exceptions.rb", "rubygems/custom_require.rb", "rubygems.rb"] $ ruby19 -v -Ilib -e 'require "rubygems"; p $"' ruby 1.9.3dev (2011-01-19 trunk 30599) [x86_64-darwin10.6.0] ["enumerator.so", "/usr/local/lib/ruby/1.9.1/x86_64-darwin10.6.0/enc/encdb.bundle", "/usr/local/lib/ruby/1.9.1/x86_64-darwin10.6.0/enc/trans/transdb.bundle", "/Users/drbrain/Work/git/rubygems/lib/rubygems/defaults.rb", "/usr/local/lib/ruby/1.9.1/x86_64-darwin10.6.0/rbconfig.rb", "/usr/local/lib/ruby/1.9.1/thread.rb", "/Users/drbrain/Work/git/rubygems/lib/rubygems/exceptions.rb", "/Users/drbrain/Work/git/rubygems/lib/rubygems/custom_require.rb", "/Users/drbrain/Work/git/rubygems/lib/rubygems.rb"] _______________________________________________ Rubygems-developers mailing list http://rubyforge.org/projects/rubygems Rubygems-developers@rubyforge.org http://rubyforge.org/mailman/listinfo/rubygems-developers