RubyGems API also available from gem server. As of RubyGems 1. You can submit bugs to the RubyGems bug tracker on GitHub. Exception classes used in a Gem. Not all of these are defined in Ruby 1. Exception classes used in Gem. The list of hooks to be run after Gem::DependencyInstaller installs a set of gems.
GemDependencyAPI object, which is set when. This contains all the information from the Gemfile. Hash of loaded Gem::Specification keyed by name.
The list of hooks to be run after Gem::Installer install extracts files and builds extensions. The list of hooks to be run after Gem::Installer install completes installation. The list of hooks to be run after Gem::Specification.
The list of hooks to be run after Gem::Uninstaller uninstall completes installation. The list of hooks to be run before Gem::Installer install does any work. The list of hooks to be run before Gem::Specification. The list of hooks to be run before Gem::Uninstaller uninstall does any work. Find the full path to the executable for gem name. Reset the dir and path values. The next time dir or path is requested, the values will be calculated from scratch.
This is mainly used by the unit tests to provide test isolation. Use the given configuration object which implements the ConfigFile protocol as the standard configuration object. The path to the data directory specified by the gem name. If the package is not available as a gem, return nil. Returns binary extensions dir for specified RubyGems base dir or nil if such directory cannot be determined. By default, the binary extensions are located side by side with their Ruby counterparts, therefore nil is returned.
Adds a post-installs hook that will be passed a Gem::DependencyInstaller and a list of installed specifications when Gem::DependencyInstaller install is complete.
Quietly ensure the Gem directory dir contains all the proper subdirectories for handling default gems. If we can't create a directory due to a permission problem, then we will silently continue. Quietly ensure the Gem directory dir contains all the proper subdirectories.
Returns a list of paths matching glob that can be used by a gem to pick up features from other gems. For example:. Returns a list of paths matching glob from the latest gems that can be used by a gem to pick up features from other gems. Find a Gem::Specification of default gem from path. The activated gem's paths are inserted before site lib directory by default. Retrieve the PathSupport object that RubyGems uses to lookup files.
Initialize the filesystem paths to use from env. Adds a post-build hook that will be passed an Gem::Installer instance when Gem::Installer install is called. The hook is called after the gem has been extracted and extensions have been built but before the executables or gemspec has been written. If the hook returns false then the gem's files will be removed and the install will be aborted.
Adds a post-install hook that will be passed an Gem::Installer instance when Gem::Installer install is called. Adds a hook that will get run after Gem::Specification. Connect and share knowledge within a single location that is structured and easy to search. I'm working on Windows 10 environment with ruby version 2. I observe that I need to install the development kit. I installed the devkit as instructed. However, when I try to install the gem now, I observe a different error and the error log indicates that it failed to create a Makefile due to lack of necessary libraries or headers.
Is there anyone who has faced similar issue and found a way through installing openssl gem with rubyv 2. I'm a novice to ruby environment and this might be a trivial question. It looks like the Openssl gem comes preinstalled with ruby v2. In my case, when I did a 'gem list' there was no mention of Openssl gem as such. How are we doing? Please help us improve Stack Overflow. Take our short survey. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Gem RubyGems is the Ruby standard for publishing and managing third party libraries. Hash of loaded Gem::Specification keyed by name. File rubygems. The mode needed to read a file as straight binary.
The path where gem executables are to be installed. Clear default gem related variables. It is for test File rubygems. Gem :: Security end. The standard configuration object for gems.
Path to specification files of default gems. A Zlib::Deflate. The path where gems are to be installed. Adds a post-installs hook that will be passed a Gem::DependencyInstaller and a list of installed specifications when Gem::DependencyInstaller install is complete File rubygems. If mode is given, missing directories are created with this mode. World-writable directories will never be created. For example: Gem.
Find a Gem::Specification of default gem from path File rubygems. Top level install helper method. Is this a java platform? Returns the latest release version of RubyGems. Returns the latest release-version specification for the gem name. Returns the version of the latest release-version of gem name File rubygems. Find rubygems plugin files in the standard location and load them File rubygems. The file name and line number of the caller of the caller of this method. The version of the Marshal format for your Ruby.
Default options for gem commands for Ruby packagers. Example: def self. How String Gem paths should be split. Overridable for esoteric platforms. Please use a String or nil. Default options for gem commands for Ruby implementers. Array of platforms this RubyGems supports. Set array of platforms this RubyGems supports primarily for testing. Glob pattern for require-able plugin suffixes. Regexp for require-able plugin suffixes. The path were rubygems plugins are to be installed.
Adds a post-install hook that will be passed an Gem::Installer instance when Gem::Installer install is called File rubygems. Adds a post-uninstall hook that will be passed a Gem::Uninstaller instance and the spec that was uninstalled when Gem::Uninstaller uninstall is called File rubygems. Adds a pre-uninstall hook that will be passed an Gem::Uninstaller instance and the spec that will be uninstalled when Gem::Uninstaller uninstall is called File rubygems.
Safely read a file in binary mode on all platforms.
0コメント