From: Jonas Pfenniger Date: 2007-08-04T04:13:37+09:00 Subject: Re: Import gem to Ruby 1.9 ------=_Part_15039_3031573.1186168420096 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 2007/7/26, NAKAMURA, Hiroshi : > > -----BEGIN PGP SIGNED MESSAGE----- > This mail is for the topic > '6. What libraries does RubyGems depend on?' > > NAKAMURA, Hiroshi wrote: > > 6. What libraries does RubyGems depend on? > > YAML/Syck, WEBrick, the digest libraries, rbconfig, rdoc, thread, > > optparse, forwardable, time, openssl, open-uri, uri, net/http, > > fileutils, zlib, stringio, socket, tempfile, pathname > + test/unit > Here is a small script to check the number of loaded classes before and after rubygems. The second number only includes top level classes. Last time I checked, rubygems used more than one top level class to host it's code. ----- def count_classes x=0; t=0 ObjectSpace.each_object(Class) do |c| x+=1 t+=1 if c.name !~ /::/ end [x, t] end puts "Without rubygems : #{count_classes.inspect}" require 'rubygems' puts "With rubygems : #{count_classes.inspect}" ----- Without rubygems : [183, 59] With rubygems : [469, 76] -- Cheers, zimbatm ------=_Part_15039_3031573.1186168420096 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 2007/7/26, NAKAMURA, Hiroshi <nakahiro@sarion.co.jp>:
-----BEGIN PGP SIGNED MESSAGE-----
This mail is for the topic
'6. What libraries does RubyGems depend on?'

NAKAMURA, Hiroshi wrote:
> 6. What libraries does RubyGems depend on?
>      YAML/Syck, WEBrick, the digest libraries, rbconfig, rdoc, thread,
>      optparse, forwardable, time, openssl, open-uri, uri, net/http,
>      fileutils, zlib, stringio, socket, tempfile, pathname
       + test/unit

Here is a small script to check the number of loaded classes before and after rubygems. The second number only includes top level classes.

Last time I checked, rubygems used more than one top level class to host it's code.

-----
def count_classes
    x=0; t=0
    ObjectSpace.each_object(Class) do |c|
        x+=1
        t+=1 if c.name !~ /::/
    end
    [x, t]
end

puts "Without rubygems : #{count_classes.inspect}"
require 'rubygems'
puts "With rubygems : #{count_classes.inspect}"

-----

Without rubygems : [183, 59]
With rubygems : [469, 76]

--
Cheers,
  zimbatm ------=_Part_15039_3031573.1186168420096--