ensure_gem_subdirectories

ensure_gem_subdirectories(dir = Gem.dir, mode = nil) Class Public methods Quietly ensure the Gem directory dir contains all the proper subdirectories. If we can't create a directory due to a permission problem, then we will silently continue. If mode is given, missing directories are created with this mode. World-writable directories will never be created.

find_files

find_files(glob, check_load_path=true) Class Public methods Returns a list of paths matching glob that can be used by a gem to pick up features from other gems. For example: Gem.find_files('rdoc/discover').each do |path| load path end if check_load_path is true (the default), then ::find_files also searches $LOAD_PATH for files as well as gems. Note that ::find_files will return all files even if they are from different versions of the same gem.

find_unresolved_default_spec

find_unresolved_default_spec(path) Class Public methods Find a Gem::Specification of default gem from path

finish_resolve

finish_resolve(request_set=Gem::RequestSet.new) Class Public methods

gunzip

gunzip(data) Class Public methods Zlib::GzipReader wrapper that unzips data.

gzip

gzip(data) Class Public methods Zlib::GzipWriter wrapper that zips data.

host

host() Class Public methods Get the default RubyGems API host. This is normally https://rubygems.org.

host=

host=(host) Class Public methods Set the default RubyGems API host.

inflate

inflate(data) Class Public methods A Zlib::Inflate#inflate wrapper

install

install(name, version = Gem::Requirement.default) Class Public methods Top level install helper method. Allows you to install gems interactively: % irb >> Gem.install "minitest" Fetching: minitest-3.0.1.gem (100%) => [#<Gem::Specification:0x1013b4528 @name="minitest", ...>]