- 1_8_6_287
- 1_8_7_72
- 1_8_7_330
- 1_9_1_378
- 1_9_2_180
- 1_9_3_125 (0)
- 1_9_3_392 (0)
- 2_1_10 (-38)
- 2_2_9 (0)
- 2_4_6 (0)
- 2_5_5 (0)
- 2_6_3 (0)
- What's this?
The installer installs the files contained in the .gem into the Gem.home.
Gem::Installer does the work of putting files in all the right places on the filesystem including unpacking the gem into its gem dir, installing the gemspec in the specifications dir, storing the cached gem in the cache dir, and installing either wrappers or symlinks for executables.
The installer invokes pre and post install hooks. Hooks can be added either through a rubygems_plugin.rb file in an installed gem or via a rubygems/defaults/#{RUBY_ENGINE}.rb or rubygems/defaults/operating_system.rb file. See Gem.pre_install and Gem.post_install for details.
Constants
ExtensionBuildError = Gem::Ext::BuildError # :nodoc:
ENV_PATHS = %w[/usr/bin/env /bin/env]
Attributes
[W] | exec_format |
DOC: Missing docs or :nodoc:. |
[RW] | path_warning |
True if we’ve warned about PATH not including Gem.bindir |
[W] | spec |
Sets the specification for .gem-less installs. |
[R] | options |
The options passed when the Gem::Installer was instantiated. |
[R] | gem_home |
The gem repository the gem will be installed into |
[R] | bin_dir |
The directory a gem’s executables will be installed into |
[R] | gem |
DOC: Missing docs or :nodoc:. |
[W] | wrappers |
Available through requiring rubygems/installer_test_case |
[W] | security_policy |
Available through requiring rubygems/installer_test_case |
[W] | format_executable |
Available through requiring rubygems/installer_test_case |
[W] | ignore_dependencies |
Available through requiring rubygems/installer_test_case |
[W] | env_shebang |
Available through requiring rubygems/installer_test_case |
[W] | gem_home |
Available through requiring rubygems/installer_test_case |
[W] | format |
Available through requiring rubygems/installer_test_case |
[W] | force |
Available through requiring rubygems/installer_test_case |
[W] | gem_dir |
Available through requiring rubygems/installer_test_case |
[W] | build_args |
Available through requiring rubygems/installer_test_case |
[W] | bin_dir |
Available through requiring rubygems/installer_test_case |