1620 lines
60 KiB
HTML
1620 lines
60 KiB
HTML
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||
|
<head>
|
||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||
|
|
||
|
<title>Class: Bundler::RubygemsIntegration</title>
|
||
|
|
||
|
<link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
|
||
|
|
||
|
<script src="../js/jquery.js" type="text/javascript"
|
||
|
charset="utf-8"></script>
|
||
|
<script src="../js/thickbox-compressed.js" type="text/javascript"
|
||
|
charset="utf-8"></script>
|
||
|
<script src="../js/quicksearch.js" type="text/javascript"
|
||
|
charset="utf-8"></script>
|
||
|
<script src="../js/darkfish.js" type="text/javascript"
|
||
|
charset="utf-8"></script>
|
||
|
|
||
|
</head>
|
||
|
<body class="class">
|
||
|
|
||
|
<div id="metadata">
|
||
|
<div id="home-metadata">
|
||
|
<div id="home-section" class="section">
|
||
|
<h3 class="section-header">
|
||
|
<a href="../index.html">Home</a>
|
||
|
<a href="../index.html#classes">Classes</a>
|
||
|
<a href="../index.html#methods">Methods</a>
|
||
|
</h3>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div id="file-metadata">
|
||
|
<div id="file-list-section" class="section">
|
||
|
<h3 class="section-header">In Files</h3>
|
||
|
<div class="section-body">
|
||
|
<ul>
|
||
|
|
||
|
<li><a href="../lib/bundler/rubygems_integration_rb.html?TB_iframe=true&height=550&width=785"
|
||
|
class="thickbox" title="lib/bundler/rubygems_integration.rb">lib/bundler/rubygems_integration.rb</a></li>
|
||
|
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div id="class-metadata">
|
||
|
|
||
|
<!-- Parent Class -->
|
||
|
|
||
|
<div id="parent-class-section" class="section">
|
||
|
<h3 class="section-header">Parent</h3>
|
||
|
|
||
|
<p class="link">Object</p>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<!-- Namespace Contents -->
|
||
|
|
||
|
<div id="namespace-list-section" class="section">
|
||
|
<h3 class="section-header">Namespace</h3>
|
||
|
<ul class="link-list">
|
||
|
|
||
|
<li><span class="type">MODULE</span> <a href="RubygemsIntegration/Gem.html">Bundler::RubygemsIntegration::Gem</a></li>
|
||
|
|
||
|
<li><span class="type">MODULE</span> <a href="RubygemsIntegration/Gem/SourceIndex.html">Bundler::RubygemsIntegration::Gem::SourceIndex</a></li>
|
||
|
|
||
|
<li><span class="type">CLASS</span> <a href="RubygemsIntegration/AlmostModern.html">Bundler::RubygemsIntegration::AlmostModern</a></li>
|
||
|
|
||
|
<li><span class="type">CLASS</span> <a href="RubygemsIntegration/Deprecate.html">Bundler::RubygemsIntegration::Deprecate</a></li>
|
||
|
|
||
|
<li><span class="type">CLASS</span> <a href="RubygemsIntegration/Legacy.html">Bundler::RubygemsIntegration::Legacy</a></li>
|
||
|
|
||
|
<li><span class="type">CLASS</span> <a href="RubygemsIntegration/Modern.html">Bundler::RubygemsIntegration::Modern</a></li>
|
||
|
|
||
|
<li><span class="type">CLASS</span> <a href="RubygemsIntegration/Transitional.html">Bundler::RubygemsIntegration::Transitional</a></li>
|
||
|
|
||
|
</ul>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<!-- Method Quickref -->
|
||
|
|
||
|
<div id="method-list-section" class="section">
|
||
|
<h3 class="section-header">Methods</h3>
|
||
|
<ul class="link-list">
|
||
|
|
||
|
<li><a href="#method-c-new">::new</a></li>
|
||
|
|
||
|
<li><a href="#method-i-bin_path">#bin_path</a></li>
|
||
|
|
||
|
<li><a href="#method-i-clear_paths">#clear_paths</a></li>
|
||
|
|
||
|
<li><a href="#method-i-configuration">#configuration</a></li>
|
||
|
|
||
|
<li><a href="#method-i-download_gem">#download_gem</a></li>
|
||
|
|
||
|
<li><a href="#method-i-fetch_specs">#fetch_specs</a></li>
|
||
|
|
||
|
<li><a href="#method-i-gem_bindir">#gem_bindir</a></li>
|
||
|
|
||
|
<li><a href="#method-i-gem_dir">#gem_dir</a></li>
|
||
|
|
||
|
<li><a href="#method-i-gem_path">#gem_path</a></li>
|
||
|
|
||
|
<li><a href="#method-i-inflate">#inflate</a></li>
|
||
|
|
||
|
<li><a href="#method-i-loaded_specs">#loaded_specs</a></li>
|
||
|
|
||
|
<li><a href="#method-i-mark_loaded">#mark_loaded</a></li>
|
||
|
|
||
|
<li><a href="#method-i-marshal_spec_dir">#marshal_spec_dir</a></li>
|
||
|
|
||
|
<li><a href="#method-i-path">#path</a></li>
|
||
|
|
||
|
<li><a href="#method-i-platforms">#platforms</a></li>
|
||
|
|
||
|
<li><a href="#method-i-preserve_paths">#preserve_paths</a></li>
|
||
|
|
||
|
<li><a href="#method-i-read_binary">#read_binary</a></li>
|
||
|
|
||
|
<li><a href="#method-i-replace_bin_path">#replace_bin_path</a></li>
|
||
|
|
||
|
<li><a href="#method-i-replace_entrypoints">#replace_entrypoints</a></li>
|
||
|
|
||
|
<li><a href="#method-i-replace_gem">#replace_gem</a></li>
|
||
|
|
||
|
<li><a href="#method-i-replace_refresh">#replace_refresh</a></li>
|
||
|
|
||
|
<li><a href="#method-i-reverse_rubygems_kernel_mixin">#reverse_rubygems_kernel_mixin</a></li>
|
||
|
|
||
|
<li><a href="#method-i-ruby_engine">#ruby_engine</a></li>
|
||
|
|
||
|
<li><a href="#method-i-sources">#sources</a></li>
|
||
|
|
||
|
<li><a href="#method-i-sources%3D">#sources=</a></li>
|
||
|
|
||
|
<li><a href="#method-i-spec_from_gem">#spec_from_gem</a></li>
|
||
|
|
||
|
<li><a href="#method-i-stub_source_index137">#stub_source_index137</a></li>
|
||
|
|
||
|
<li><a href="#method-i-stub_source_index170">#stub_source_index170</a></li>
|
||
|
|
||
|
<li><a href="#method-i-ui%3D">#ui=</a></li>
|
||
|
|
||
|
<li><a href="#method-i-user_home">#user_home</a></li>
|
||
|
|
||
|
<li><a href="#method-i-with_build_args">#with_build_args</a></li>
|
||
|
|
||
|
</ul>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<!-- Included Modules -->
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div id="project-metadata">
|
||
|
|
||
|
|
||
|
<div id="fileindex-section" class="section project-section">
|
||
|
<h3 class="section-header">Files</h3>
|
||
|
<ul>
|
||
|
|
||
|
<li class="file"><a href="../lib/bundler/man/bundle.html">bundle</a></li>
|
||
|
|
||
|
<li class="file"><a href="../lib/bundler/man/bundle-benchmark.html">bundle-benchmark</a></li>
|
||
|
|
||
|
<li class="file"><a href="../lib/bundler/man/bundle-benchmark_txt.html">bundle-benchmark.txt</a></li>
|
||
|
|
||
|
<li class="file"><a href="../lib/bundler/man/bundle-config.html">bundle-config</a></li>
|
||
|
|
||
|
<li class="file"><a href="../lib/bundler/man/bundle-config_txt.html">bundle-config.txt</a></li>
|
||
|
|
||
|
<li class="file"><a href="../lib/bundler/man/bundle-exec.html">bundle-exec</a></li>
|
||
|
|
||
|
<li class="file"><a href="../lib/bundler/man/bundle-exec_txt.html">bundle-exec.txt</a></li>
|
||
|
|
||
|
<li class="file"><a href="../lib/bundler/man/bundle-install.html">bundle-install</a></li>
|
||
|
|
||
|
<li class="file"><a href="../lib/bundler/man/bundle-install_txt.html">bundle-install.txt</a></li>
|
||
|
|
||
|
<li class="file"><a href="../lib/bundler/man/bundle-package.html">bundle-package</a></li>
|
||
|
|
||
|
<li class="file"><a href="../lib/bundler/man/bundle-package_txt.html">bundle-package.txt</a></li>
|
||
|
|
||
|
<li class="file"><a href="../lib/bundler/man/bundle-update.html">bundle-update</a></li>
|
||
|
|
||
|
<li class="file"><a href="../lib/bundler/man/bundle-update_txt.html">bundle-update.txt</a></li>
|
||
|
|
||
|
<li class="file"><a href="../lib/bundler/man/bundle_txt.html">bundle.txt</a></li>
|
||
|
|
||
|
<li class="file"><a href="../lib/bundler/man/gemfile_5_txt.html">gemfile.5.txt</a></li>
|
||
|
|
||
|
<li class="file"><a href="../lib/bundler/templates/Gemfile.html">Gemfile</a></li>
|
||
|
|
||
|
</ul>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div id="classindex-section" class="section project-section">
|
||
|
<h3 class="section-header">Class Index
|
||
|
<span class="search-toggle"><img src="../images/find.png"
|
||
|
height="16" width="16" alt="[+]"
|
||
|
title="show/hide quicksearch" /></span></h3>
|
||
|
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
||
|
<fieldset>
|
||
|
<legend>Quicksearch</legend>
|
||
|
<input type="text" name="quicksearch" value=""
|
||
|
class="quicksearch-field" />
|
||
|
</fieldset>
|
||
|
</form>
|
||
|
|
||
|
<ul class="link-list">
|
||
|
|
||
|
<li><a href="../Bundler.html">Bundler</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/BundlerError.html">Bundler::BundlerError</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/CLI.html">Bundler::CLI</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/Definition.html">Bundler::Definition</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/DepProxy.html">Bundler::DepProxy</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/Dependency.html">Bundler::Dependency</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/Deployment.html">Bundler::Deployment</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/DeprecatedError.html">Bundler::DeprecatedError</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/Dsl.html">Bundler::Dsl</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/DslError.html">Bundler::DslError</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/Environment.html">Bundler::Environment</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/GemHelper.html">Bundler::GemHelper</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/GemHelpers.html">Bundler::GemHelpers</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/GemNotFound.html">Bundler::GemNotFound</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/GemfileError.html">Bundler::GemfileError</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/GemfileNotFound.html">Bundler::GemfileNotFound</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/GemspecError.html">Bundler::GemspecError</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/GitError.html">Bundler::GitError</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/Graph.html">Bundler::Graph</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/GraphNode.html">Bundler::GraphNode</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/Index.html">Bundler::Index</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/Installer.html">Bundler::Installer</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/InvalidOption.html">Bundler::InvalidOption</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/InvalidSpecSet.html">Bundler::InvalidSpecSet</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/LazySpecification.html">Bundler::LazySpecification</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/LockfileParser.html">Bundler::LockfileParser</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/MatchPlatform.html">Bundler::MatchPlatform</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/PathError.html">Bundler::PathError</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/ProductionError.html">Bundler::ProductionError</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/RemoteSpecification.html">Bundler::RemoteSpecification</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/Resolver.html">Bundler::Resolver</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/Resolver/SpecGroup.html">Bundler::Resolver::SpecGroup</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/RubygemsIntegration.html">Bundler::RubygemsIntegration</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/RubygemsIntegration/AlmostModern.html">Bundler::RubygemsIntegration::AlmostModern</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/RubygemsIntegration/Deprecate.html">Bundler::RubygemsIntegration::Deprecate</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/RubygemsIntegration/Gem.html">Bundler::RubygemsIntegration::Gem</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/RubygemsIntegration/Gem/SourceIndex.html">Bundler::RubygemsIntegration::Gem::SourceIndex</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/RubygemsIntegration/Legacy.html">Bundler::RubygemsIntegration::Legacy</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/RubygemsIntegration/Modern.html">Bundler::RubygemsIntegration::Modern</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/RubygemsIntegration/Transitional.html">Bundler::RubygemsIntegration::Transitional</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/Runtime.html">Bundler::Runtime</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/Settings.html">Bundler::Settings</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/SharedHelpers.html">Bundler::SharedHelpers</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/Source.html">Bundler::Source</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/Source/Git.html">Bundler::Source::Git</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/Source/Path.html">Bundler::Source::Path</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/Source/Path/Installer.html">Bundler::Source::Path::Installer</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/Source/Rubygems.html">Bundler::Source::Rubygems</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/SpecSet.html">Bundler::SpecSet</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/UI.html">Bundler::UI</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/UI/RGProxy.html">Bundler::UI::RGProxy</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/UI/Shell.html">Bundler::UI::Shell</a></li>
|
||
|
|
||
|
<li><a href="../Bundler/VersionConflict.html">Bundler::VersionConflict</a></li>
|
||
|
|
||
|
<li><a href="../Thor.html">Thor</a></li>
|
||
|
|
||
|
<li><a href="../Thor/Actions.html">Thor::Actions</a></li>
|
||
|
|
||
|
<li><a href="../Thor/Actions/ClassMethods.html">Thor::Actions::ClassMethods</a></li>
|
||
|
|
||
|
<li><a href="../Thor/Base.html">Thor::Base</a></li>
|
||
|
|
||
|
<li><a href="../Thor/Base/ClassMethods.html">Thor::Base::ClassMethods</a></li>
|
||
|
|
||
|
<li><a href="../Thor/DynamicTask.html">Thor::DynamicTask</a></li>
|
||
|
|
||
|
<li><a href="../Thor/Error.html">Thor::Error</a></li>
|
||
|
|
||
|
<li><a href="../Thor/HiddenTask.html">Thor::HiddenTask</a></li>
|
||
|
|
||
|
<li><a href="../Thor/Invocation.html">Thor::Invocation</a></li>
|
||
|
|
||
|
<li><a href="../Thor/Invocation/ClassMethods.html">Thor::Invocation::ClassMethods</a></li>
|
||
|
|
||
|
<li><a href="../Thor/InvocationError.html">Thor::InvocationError</a></li>
|
||
|
|
||
|
<li><a href="../Thor/MalformattedArgumentError.html">Thor::MalformattedArgumentError</a></li>
|
||
|
|
||
|
<li><a href="../Thor/RequiredArgumentMissingError.html">Thor::RequiredArgumentMissingError</a></li>
|
||
|
|
||
|
<li><a href="../Thor/Shell.html">Thor::Shell</a></li>
|
||
|
|
||
|
<li><a href="../Thor/Shell/Basic.html">Thor::Shell::Basic</a></li>
|
||
|
|
||
|
<li><a href="../Thor/Shell/Color.html">Thor::Shell::Color</a></li>
|
||
|
|
||
|
<li><a href="../Thor/Shell/HTML.html">Thor::Shell::HTML</a></li>
|
||
|
|
||
|
<li><a href="../Thor/Task.html">Thor::Task</a></li>
|
||
|
|
||
|
<li><a href="../Thor/UndefinedTaskError.html">Thor::UndefinedTaskError</a></li>
|
||
|
|
||
|
<li><a href="../Thor/UnknownArgumentError.html">Thor::UnknownArgumentError</a></li>
|
||
|
|
||
|
<li><a href="../Thor/Util.html">Thor::Util</a></li>
|
||
|
|
||
|
<li><a href="../Gem.html">Gem</a></li>
|
||
|
|
||
|
<li><a href="../Gem/Dependency.html">Gem::Dependency</a></li>
|
||
|
|
||
|
<li><a href="../Gem/Platform.html">Gem::Platform</a></li>
|
||
|
|
||
|
<li><a href="../Gem/Requirement.html">Gem::Requirement</a></li>
|
||
|
|
||
|
<li><a href="../Gem/Specification.html">Gem::Specification</a></li>
|
||
|
|
||
|
</ul>
|
||
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div id="documentation">
|
||
|
<h1 class="class">Bundler::RubygemsIntegration</h1>
|
||
|
|
||
|
<div id="description">
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<!-- Constants -->
|
||
|
|
||
|
<div id="constants-list" class="section">
|
||
|
<h3 class="section-header">Constants</h3>
|
||
|
<dl>
|
||
|
|
||
|
<dt><a name="Deprecate">Deprecate</a></dt>
|
||
|
|
||
|
<dd class="description"></dd>
|
||
|
|
||
|
|
||
|
<dt><a name="Deprecate">Deprecate</a></dt>
|
||
|
|
||
|
<dd class="description"></dd>
|
||
|
|
||
|
|
||
|
</dl>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<!-- Attributes -->
|
||
|
|
||
|
|
||
|
<!-- Methods -->
|
||
|
|
||
|
<div id="public-class-method-details" class="method-section section">
|
||
|
<h3 class="section-header">Public Class Methods</h3>
|
||
|
|
||
|
|
||
|
<div id="new-method" class="method-detail ">
|
||
|
<a name="method-c-new"></a>
|
||
|
|
||
|
<div class="method-heading">
|
||
|
|
||
|
<span class="method-name">new</span><span
|
||
|
class="method-args">()</span>
|
||
|
<span class="method-click-advice">click to toggle source</span>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="method-description">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="method-source-code"
|
||
|
id="new-source">
|
||
|
<pre>
|
||
|
<span class="ruby-comment cmt"># File lib/bundler/rubygems_integration.rb, line 3</span>
|
||
|
3: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
|
||
|
4: <span class="ruby-comment cmt"># Work around a RubyGems bug</span>
|
||
|
5: <span class="ruby-identifier">configuration</span>
|
||
|
6: <span class="ruby-keyword kw">end</span></pre>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div id="public-instance-method-details" class="method-section section">
|
||
|
<h3 class="section-header">Public Instance Methods</h3>
|
||
|
|
||
|
|
||
|
<div id="bin-path-method" class="method-detail ">
|
||
|
<a name="method-i-bin_path"></a>
|
||
|
|
||
|
<div class="method-heading">
|
||
|
|
||
|
<span class="method-name">bin_path</span><span
|
||
|
class="method-args">(gem, bin, ver)</span>
|
||
|
<span class="method-click-advice">click to toggle source</span>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="method-description">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="method-source-code"
|
||
|
id="bin-path-source">
|
||
|
<pre>
|
||
|
<span class="ruby-comment cmt"># File lib/bundler/rubygems_integration.rb, line 72</span>
|
||
|
72: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bin_path</span>(<span class="ruby-identifier">gem</span>, <span class="ruby-identifier">bin</span>, <span class="ruby-identifier">ver</span>)
|
||
|
73: <span class="ruby-constant">Gem</span>.<span class="ruby-identifier">bin_path</span>(<span class="ruby-identifier">gem</span>, <span class="ruby-identifier">bin</span>, <span class="ruby-identifier">ver</span>)
|
||
|
74: <span class="ruby-keyword kw">end</span></pre>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div id="clear-paths-method" class="method-detail ">
|
||
|
<a name="method-i-clear_paths"></a>
|
||
|
|
||
|
<div class="method-heading">
|
||
|
|
||
|
<span class="method-name">clear_paths</span><span
|
||
|
class="method-args">()</span>
|
||
|
<span class="method-click-advice">click to toggle source</span>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="method-description">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="method-source-code"
|
||
|
id="clear-paths-source">
|
||
|
<pre>
|
||
|
<span class="ruby-comment cmt"># File lib/bundler/rubygems_integration.rb, line 68</span>
|
||
|
68: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clear_paths</span>
|
||
|
69: <span class="ruby-constant">Gem</span>.<span class="ruby-identifier">clear_paths</span>
|
||
|
70: <span class="ruby-keyword kw">end</span></pre>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div id="configuration-method" class="method-detail ">
|
||
|
<a name="method-i-configuration"></a>
|
||
|
|
||
|
<div class="method-heading">
|
||
|
|
||
|
<span class="method-name">configuration</span><span
|
||
|
class="method-args">()</span>
|
||
|
<span class="method-click-advice">click to toggle source</span>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="method-description">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="method-source-code"
|
||
|
id="configuration-source">
|
||
|
<pre>
|
||
|
<span class="ruby-comment cmt"># File lib/bundler/rubygems_integration.rb, line 24</span>
|
||
|
24: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">configuration</span>
|
||
|
25: <span class="ruby-constant">Gem</span>.<span class="ruby-identifier">configuration</span>
|
||
|
26: <span class="ruby-keyword kw">end</span></pre>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div id="download-gem-method" class="method-detail ">
|
||
|
<a name="method-i-download_gem"></a>
|
||
|
|
||
|
<div class="method-heading">
|
||
|
|
||
|
<span class="method-name">download_gem</span><span
|
||
|
class="method-args">(spec, uri, path)</span>
|
||
|
<span class="method-click-advice">click to toggle source</span>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="method-description">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="method-source-code"
|
||
|
id="download-gem-source">
|
||
|
<pre>
|
||
|
<span class="ruby-comment cmt"># File lib/bundler/rubygems_integration.rb, line 103</span>
|
||
|
103: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">download_gem</span>(<span class="ruby-identifier">spec</span>, <span class="ruby-identifier">uri</span>, <span class="ruby-identifier">path</span>)
|
||
|
104: <span class="ruby-constant">Gem</span><span class="ruby-operator">::</span><span class="ruby-constant">RemoteFetcher</span>.<span class="ruby-identifier">fetcher</span>.<span class="ruby-identifier">download</span>(<span class="ruby-identifier">spec</span>, <span class="ruby-identifier">uri</span>, <span class="ruby-identifier">path</span>)
|
||
|
105: <span class="ruby-keyword kw">end</span></pre>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div id="fetch-specs-method" class="method-detail ">
|
||
|
<a name="method-i-fetch_specs"></a>
|
||
|
|
||
|
<div class="method-heading">
|
||
|
|
||
|
<span class="method-name">fetch_specs</span><span
|
||
|
class="method-args">(all, pre, &blk)</span>
|
||
|
<span class="method-click-advice">click to toggle source</span>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="method-description">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="method-source-code"
|
||
|
id="fetch-specs-source">
|
||
|
<pre>
|
||
|
<span class="ruby-comment cmt"># File lib/bundler/rubygems_integration.rb, line 85</span>
|
||
|
85: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">fetch_specs</span>(<span class="ruby-identifier">all</span>, <span class="ruby-identifier">pre</span>, &<span class="ruby-identifier">blk</span>)
|
||
|
86: <span class="ruby-constant">Gem</span><span class="ruby-operator">::</span><span class="ruby-constant">SpecFetcher</span>.<span class="ruby-identifier">new</span>.<span class="ruby-identifier">list</span>(<span class="ruby-identifier">all</span>, <span class="ruby-identifier">pre</span>).<span class="ruby-identifier">each</span>(&<span class="ruby-identifier">blk</span>)
|
||
|
87: <span class="ruby-keyword kw">end</span></pre>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div id="gem-bindir-method" class="method-detail ">
|
||
|
<a name="method-i-gem_bindir"></a>
|
||
|
|
||
|
<div class="method-heading">
|
||
|
|
||
|
<span class="method-name">gem_bindir</span><span
|
||
|
class="method-args">()</span>
|
||
|
<span class="method-click-advice">click to toggle source</span>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="method-description">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="method-source-code"
|
||
|
id="gem-bindir-source">
|
||
|
<pre>
|
||
|
<span class="ruby-comment cmt"># File lib/bundler/rubygems_integration.rb, line 52</span>
|
||
|
52: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">gem_bindir</span>
|
||
|
53: <span class="ruby-constant">Gem</span>.<span class="ruby-identifier">bindir</span>
|
||
|
54: <span class="ruby-keyword kw">end</span></pre>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div id="gem-dir-method" class="method-detail ">
|
||
|
<a name="method-i-gem_dir"></a>
|
||
|
|
||
|
<div class="method-heading">
|
||
|
|
||
|
<span class="method-name">gem_dir</span><span
|
||
|
class="method-args">()</span>
|
||
|
<span class="method-click-advice">click to toggle source</span>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="method-description">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="method-source-code"
|
||
|
id="gem-dir-source">
|
||
|
<pre>
|
||
|
<span class="ruby-comment cmt"># File lib/bundler/rubygems_integration.rb, line 48</span>
|
||
|
48: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">gem_dir</span>
|
||
|
49: <span class="ruby-constant">Gem</span>.<span class="ruby-identifier">dir</span>
|
||
|
50: <span class="ruby-keyword kw">end</span></pre>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div id="gem-path-method" class="method-detail ">
|
||
|
<a name="method-i-gem_path"></a>
|
||
|
|
||
|
<div class="method-heading">
|
||
|
|
||
|
<span class="method-name">gem_path</span><span
|
||
|
class="method-args">()</span>
|
||
|
<span class="method-click-advice">click to toggle source</span>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="method-description">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="method-source-code"
|
||
|
id="gem-path-source">
|
||
|
<pre>
|
||
|
<span class="ruby-comment cmt"># File lib/bundler/rubygems_integration.rb, line 60</span>
|
||
|
60: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">gem_path</span>
|
||
|
61: <span class="ruby-constant">Gem</span>.<span class="ruby-identifier">path</span>
|
||
|
62: <span class="ruby-keyword kw">end</span></pre>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div id="inflate-method" class="method-detail ">
|
||
|
<a name="method-i-inflate"></a>
|
||
|
|
||
|
<div class="method-heading">
|
||
|
|
||
|
<span class="method-name">inflate</span><span
|
||
|
class="method-args">(obj)</span>
|
||
|
<span class="method-click-advice">click to toggle source</span>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="method-description">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="method-source-code"
|
||
|
id="inflate-source">
|
||
|
<pre>
|
||
|
<span class="ruby-comment cmt"># File lib/bundler/rubygems_integration.rb, line 36</span>
|
||
|
36: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inflate</span>(<span class="ruby-identifier">obj</span>)
|
||
|
37: <span class="ruby-constant">Gem</span>.<span class="ruby-identifier">inflate</span>(<span class="ruby-identifier">obj</span>)
|
||
|
38: <span class="ruby-keyword kw">end</span></pre>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div id="loaded-specs-method" class="method-detail ">
|
||
|
<a name="method-i-loaded_specs"></a>
|
||
|
|
||
|
<div class="method-heading">
|
||
|
|
||
|
<span class="method-name">loaded_specs</span><span
|
||
|
class="method-args">(name)</span>
|
||
|
<span class="method-click-advice">click to toggle source</span>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="method-description">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="method-source-code"
|
||
|
id="loaded-specs-source">
|
||
|
<pre>
|
||
|
<span class="ruby-comment cmt"># File lib/bundler/rubygems_integration.rb, line 8</span>
|
||
|
8: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">loaded_specs</span>(<span class="ruby-identifier">name</span>)
|
||
|
9: <span class="ruby-constant">Gem</span>.<span class="ruby-identifier">loaded_specs</span>[<span class="ruby-identifier">name</span>]
|
||
|
10: <span class="ruby-keyword kw">end</span></pre>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div id="mark-loaded-method" class="method-detail ">
|
||
|
<a name="method-i-mark_loaded"></a>
|
||
|
|
||
|
<div class="method-heading">
|
||
|
|
||
|
<span class="method-name">mark_loaded</span><span
|
||
|
class="method-args">(spec)</span>
|
||
|
<span class="method-click-advice">click to toggle source</span>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="method-description">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="method-source-code"
|
||
|
id="mark-loaded-source">
|
||
|
<pre>
|
||
|
<span class="ruby-comment cmt"># File lib/bundler/rubygems_integration.rb, line 12</span>
|
||
|
12: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mark_loaded</span>(<span class="ruby-identifier">spec</span>)
|
||
|
13: <span class="ruby-constant">Gem</span>.<span class="ruby-identifier">loaded_specs</span>[<span class="ruby-identifier">spec</span>.<span class="ruby-identifier">name</span>] = <span class="ruby-identifier">spec</span>
|
||
|
14: <span class="ruby-keyword kw">end</span></pre>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div id="marshal-spec-dir-method" class="method-detail ">
|
||
|
<a name="method-i-marshal_spec_dir"></a>
|
||
|
|
||
|
<div class="method-heading">
|
||
|
|
||
|
<span class="method-name">marshal_spec_dir</span><span
|
||
|
class="method-args">()</span>
|
||
|
<span class="method-click-advice">click to toggle source</span>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="method-description">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="method-source-code"
|
||
|
id="marshal-spec-dir-source">
|
||
|
<pre>
|
||
|
<span class="ruby-comment cmt"># File lib/bundler/rubygems_integration.rb, line 64</span>
|
||
|
64: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">marshal_spec_dir</span>
|
||
|
65: <span class="ruby-constant">Gem</span><span class="ruby-operator">::</span><span class="ruby-constant">MARSHAL_SPEC_DIR</span>
|
||
|
66: <span class="ruby-keyword kw">end</span></pre>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div id="path-method" class="method-detail ">
|
||
|
<a name="method-i-path"></a>
|
||
|
|
||
|
<div class="method-heading">
|
||
|
|
||
|
<span class="method-name">path</span><span
|
||
|
class="method-args">(obj)</span>
|
||
|
<span class="method-click-advice">click to toggle source</span>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="method-description">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="method-source-code"
|
||
|
id="path-source">
|
||
|
<pre>
|
||
|
<span class="ruby-comment cmt"># File lib/bundler/rubygems_integration.rb, line 16</span>
|
||
|
16: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">path</span>(<span class="ruby-identifier">obj</span>)
|
||
|
17: <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">to_s</span>
|
||
|
18: <span class="ruby-keyword kw">end</span></pre>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div id="platforms-method" class="method-detail ">
|
||
|
<a name="method-i-platforms"></a>
|
||
|
|
||
|
<div class="method-heading">
|
||
|
|
||
|
<span class="method-name">platforms</span><span
|
||
|
class="method-args">()</span>
|
||
|
<span class="method-click-advice">click to toggle source</span>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="method-description">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="method-source-code"
|
||
|
id="platforms-source">
|
||
|
<pre>
|
||
|
<span class="ruby-comment cmt"># File lib/bundler/rubygems_integration.rb, line 20</span>
|
||
|
20: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">platforms</span>
|
||
|
21: <span class="ruby-constant">Gem</span>.<span class="ruby-identifier">platforms</span>
|
||
|
22: <span class="ruby-keyword kw">end</span></pre>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div id="preserve-paths-method" class="method-detail ">
|
||
|
<a name="method-i-preserve_paths"></a>
|
||
|
|
||
|
<div class="method-heading">
|
||
|
|
||
|
<span class="method-name">preserve_paths</span><span
|
||
|
class="method-args">()</span>
|
||
|
<span class="method-click-advice">click to toggle source</span>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="method-description">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="method-source-code"
|
||
|
id="preserve-paths-source">
|
||
|
<pre>
|
||
|
<span class="ruby-comment cmt"># File lib/bundler/rubygems_integration.rb, line 76</span>
|
||
|
76: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">preserve_paths</span>
|
||
|
77: <span class="ruby-comment cmt"># this is a no-op outside of Rubygems 1.8</span>
|
||
|
78: <span class="ruby-keyword kw">yield</span>
|
||
|
79: <span class="ruby-keyword kw">end</span></pre>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div id="read-binary-method" class="method-detail ">
|
||
|
<a name="method-i-read_binary"></a>
|
||
|
|
||
|
<div class="method-heading">
|
||
|
|
||
|
<span class="method-name">read_binary</span><span
|
||
|
class="method-args">(path)</span>
|
||
|
<span class="method-click-advice">click to toggle source</span>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="method-description">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="method-source-code"
|
||
|
id="read-binary-source">
|
||
|
<pre>
|
||
|
<span class="ruby-comment cmt"># File lib/bundler/rubygems_integration.rb, line 32</span>
|
||
|
32: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">read_binary</span>(<span class="ruby-identifier">path</span>)
|
||
|
33: <span class="ruby-constant">Gem</span>.<span class="ruby-identifier">read_binary</span>(<span class="ruby-identifier">path</span>)
|
||
|
34: <span class="ruby-keyword kw">end</span></pre>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div id="replace-bin-path-method" class="method-detail ">
|
||
|
<a name="method-i-replace_bin_path"></a>
|
||
|
|
||
|
<div class="method-heading">
|
||
|
|
||
|
<span class="method-name">replace_bin_path</span><span
|
||
|
class="method-args">(specs)</span>
|
||
|
<span class="method-click-advice">click to toggle source</span>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="method-description">
|
||
|
|
||
|
<p>
|
||
|
Used to make bin stubs that are not created by bundler work under bundler.
|
||
|
The new Gem.bin_path only considers gems in <tt>specs</tt>
|
||
|
</p>
|
||
|
|
||
|
|
||
|
|
||
|
<div class="method-source-code"
|
||
|
id="replace-bin-path-source">
|
||
|
<pre>
|
||
|
<span class="ruby-comment cmt"># File lib/bundler/rubygems_integration.rb, line 204</span>
|
||
|
204: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">replace_bin_path</span>(<span class="ruby-identifier">specs</span>)
|
||
|
205: <span class="ruby-identifier">gem_class</span> = (<span class="ruby-keyword kw">class</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">Gem</span> ; <span class="ruby-keyword kw">self</span> ; <span class="ruby-keyword kw">end</span>)
|
||
|
206: <span class="ruby-identifier">gem_class</span>.<span class="ruby-identifier">send</span>(<span class="ruby-value">:remove_method</span>, <span class="ruby-value">:bin_path</span>)
|
||
|
207: <span class="ruby-identifier">gem_class</span>.<span class="ruby-identifier">send</span>(<span class="ruby-value">:define_method</span>, <span class="ruby-value">:bin_path</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">name</span>, *<span class="ruby-identifier">args</span><span class="ruby-operator">|</span>
|
||
|
208: <span class="ruby-identifier">exec_name</span>, *<span class="ruby-identifier">reqs</span> = <span class="ruby-identifier">args</span>
|
||
|
209:
|
||
|
210: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">exec_name</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'bundle'</span>
|
||
|
211: <span class="ruby-keyword kw">return</span> <span class="ruby-constant">ENV</span>[<span class="ruby-value str">'BUNDLE_BIN_PATH'</span>]
|
||
|
212: <span class="ruby-keyword kw">end</span>
|
||
|
213:
|
||
|
214: <span class="ruby-identifier">spec</span> = <span class="ruby-keyword kw">nil</span>
|
||
|
215:
|
||
|
216: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">exec_name</span>
|
||
|
217: <span class="ruby-identifier">spec</span> = <span class="ruby-identifier">specs</span>.<span class="ruby-identifier">find</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span> <span class="ruby-identifier">s</span>.<span class="ruby-identifier">executables</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">exec_name</span>) }
|
||
|
218: <span class="ruby-identifier">spec</span> <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">raise</span> <span class="ruby-constant">Gem</span><span class="ruby-operator">::</span><span class="ruby-constant">Exception</span>, <span class="ruby-node">"can't find executable #{exec_name}"</span>
|
||
|
219: <span class="ruby-keyword kw">else</span>
|
||
|
220: <span class="ruby-identifier">spec</span> = <span class="ruby-identifier">specs</span>.<span class="ruby-identifier">find</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span> <span class="ruby-identifier">s</span>.<span class="ruby-identifier">name</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">name</span> }
|
||
|
221: <span class="ruby-identifier">exec_name</span> = <span class="ruby-identifier">spec</span>.<span class="ruby-identifier">default_executable</span> <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">raise</span> <span class="ruby-constant">Gem</span><span class="ruby-operator">::</span><span class="ruby-constant">Exception</span>, <span class="ruby-node">"no default executable for #{spec.full_name}"</span>
|
||
|
222: <span class="ruby-keyword kw">end</span>
|
||
|
223:
|
||
|
224: <span class="ruby-identifier">gem_bin</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">spec</span>.<span class="ruby-identifier">full_gem_path</span>, <span class="ruby-identifier">spec</span>.<span class="ruby-identifier">bindir</span>, <span class="ruby-identifier">exec_name</span>)
|
||
|
225: <span class="ruby-identifier">gem_from_path_bin</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-identifier">spec</span>.<span class="ruby-identifier">loaded_from</span>), <span class="ruby-identifier">spec</span>.<span class="ruby-identifier">bindir</span>, <span class="ruby-identifier">exec_name</span>)
|
||
|
226: <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-identifier">gem_bin</span>) <span class="ruby-operator">?</span> <span class="ruby-identifier">gem_bin</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">gem_from_path_bin</span>
|
||
|
227: <span class="ruby-keyword kw">end</span>
|
||
|
228: <span class="ruby-keyword kw">end</span></pre>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div id="replace-entrypoints-method" class="method-detail ">
|
||
|
<a name="method-i-replace_entrypoints"></a>
|
||
|
|
||
|
<div class="method-heading">
|
||
|
|
||
|
<span class="method-name">replace_entrypoints</span><span
|
||
|
class="method-args">(specs)</span>
|
||
|
<span class="method-click-advice">click to toggle source</span>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="method-description">
|
||
|
|
||
|
<p>
|
||
|
Replace or hook into Rubygems to provide a bundlerized view of the world.
|
||
|
</p>
|
||
|
|
||
|
|
||
|
|
||
|
<div class="method-source-code"
|
||
|
id="replace-entrypoints-source">
|
||
|
<pre>
|
||
|
<span class="ruby-comment cmt"># File lib/bundler/rubygems_integration.rb, line 240</span>
|
||
|
240: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">replace_entrypoints</span>(<span class="ruby-identifier">specs</span>)
|
||
|
241: <span class="ruby-identifier">reverse_rubygems_kernel_mixin</span>
|
||
|
242:
|
||
|
243: <span class="ruby-identifier">replace_gem</span>(<span class="ruby-identifier">specs</span>)
|
||
|
244:
|
||
|
245: <span class="ruby-identifier">stub_rubygems</span>(<span class="ruby-identifier">specs</span>)
|
||
|
246:
|
||
|
247: <span class="ruby-identifier">replace_bin_path</span>(<span class="ruby-identifier">specs</span>)
|
||
|
248: <span class="ruby-identifier">replace_refresh</span>
|
||
|
249:
|
||
|
250: <span class="ruby-constant">Gem</span>.<span class="ruby-identifier">clear_paths</span>
|
||
|
251: <span class="ruby-keyword kw">end</span></pre>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div id="replace-gem-method" class="method-detail ">
|
||
|
<a name="method-i-replace_gem"></a>
|
||
|
|
||
|
<div class="method-heading">
|
||
|
|
||
|
<span class="method-name">replace_gem</span><span
|
||
|
class="method-args">(specs)</span>
|
||
|
<span class="method-click-advice">click to toggle source</span>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="method-description">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="method-source-code"
|
||
|
id="replace-gem-source">
|
||
|
<pre>
|
||
|
<span class="ruby-comment cmt"># File lib/bundler/rubygems_integration.rb, line 119</span>
|
||
|
119: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">replace_gem</span>(<span class="ruby-identifier">specs</span>)
|
||
|
120: <span class="ruby-identifier">executables</span> = <span class="ruby-identifier">specs</span>.<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span> <span class="ruby-identifier">s</span>.<span class="ruby-identifier">executables</span> }.<span class="ruby-identifier">flatten</span>
|
||
|
121:
|
||
|
122: <span class="ruby-operator">::</span><span class="ruby-constant">Kernel</span>.<span class="ruby-identifier">send</span>(<span class="ruby-value">:define_method</span>, <span class="ruby-value">:gem</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">dep</span>, *<span class="ruby-identifier">reqs</span><span class="ruby-operator">|</span>
|
||
|
123: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">executables</span>.<span class="ruby-identifier">include?</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-identifier">caller</span>.<span class="ruby-identifier">first</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">':'</span>).<span class="ruby-identifier">first</span>)
|
||
|
124: <span class="ruby-keyword kw">return</span>
|
||
|
125: <span class="ruby-keyword kw">end</span>
|
||
|
126: <span class="ruby-identifier">opts</span> = <span class="ruby-identifier">reqs</span>.<span class="ruby-identifier">last</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Hash</span>) <span class="ruby-operator">?</span> <span class="ruby-identifier">reqs</span>.<span class="ruby-identifier">pop</span> <span class="ruby-operator">:</span> {}
|
||
|
127:
|
||
|
128: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">dep</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-value">:name</span>) <span class="ruby-operator">&&</span> <span class="ruby-identifier">dep</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-value">:requirement</span>)
|
||
|
129: <span class="ruby-identifier">dep</span> = <span class="ruby-constant">Gem</span><span class="ruby-operator">::</span><span class="ruby-constant">Dependency</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">dep</span>, <span class="ruby-identifier">reqs</span>)
|
||
|
130: <span class="ruby-keyword kw">end</span>
|
||
|
131:
|
||
|
132: <span class="ruby-identifier">spec</span> = <span class="ruby-identifier">specs</span>.<span class="ruby-identifier">find</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span> <span class="ruby-identifier">s</span>.<span class="ruby-identifier">name</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">dep</span>.<span class="ruby-identifier">name</span> }
|
||
|
133:
|
||
|
134: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">spec</span>.<span class="ruby-identifier">nil?</span>
|
||
|
135:
|
||
|
136: <span class="ruby-identifier">e</span> = <span class="ruby-constant">Gem</span><span class="ruby-operator">::</span><span class="ruby-constant">LoadError</span>.<span class="ruby-identifier">new</span> <span class="ruby-node">"#{dep.name} is not part of the bundle. Add it to Gemfile."</span>
|
||
|
137: <span class="ruby-identifier">e</span>.<span class="ruby-identifier">name</span> = <span class="ruby-identifier">dep</span>.<span class="ruby-identifier">name</span>
|
||
|
138: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-value">:requirement=</span>)
|
||
|
139: <span class="ruby-identifier">e</span>.<span class="ruby-identifier">requirement</span> = <span class="ruby-identifier">dep</span>.<span class="ruby-identifier">requirement</span>
|
||
|
140: <span class="ruby-keyword kw">else</span>
|
||
|
141: <span class="ruby-identifier">e</span>.<span class="ruby-identifier">version_requirement</span> = <span class="ruby-identifier">dep</span>.<span class="ruby-identifier">requirement</span>
|
||
|
142: <span class="ruby-keyword kw">end</span>
|
||
|
143: <span class="ruby-identifier">raise</span> <span class="ruby-identifier">e</span>
|
||
|
144: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">dep</span> <span class="ruby-operator">!~</span> <span class="ruby-identifier">spec</span>
|
||
|
145: <span class="ruby-identifier">e</span> = <span class="ruby-constant">Gem</span><span class="ruby-operator">::</span><span class="ruby-constant">LoadError</span>.<span class="ruby-identifier">new</span> <span class="ruby-node">"can't activate #{dep}, already activated #{spec.full_name}. "</span> <span class="ruby-value str">"Make sure all dependencies are added to Gemfile."</span>
|
||
|
146: <span class="ruby-identifier">e</span>.<span class="ruby-identifier">name</span> = <span class="ruby-identifier">dep</span>.<span class="ruby-identifier">name</span>
|
||
|
147: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-value">:requirement=</span>)
|
||
|
148: <span class="ruby-identifier">e</span>.<span class="ruby-identifier">requirement</span> = <span class="ruby-identifier">dep</span>.<span class="ruby-identifier">requirement</span>
|
||
|
149: <span class="ruby-keyword kw">else</span>
|
||
|
150: <span class="ruby-identifier">e</span>.<span class="ruby-identifier">version_requirement</span> = <span class="ruby-identifier">dep</span>.<span class="ruby-identifier">requirement</span>
|
||
|
151: <span class="ruby-keyword kw">end</span>
|
||
|
152: <span class="ruby-identifier">raise</span> <span class="ruby-identifier">e</span>
|
||
|
153: <span class="ruby-keyword kw">end</span>
|
||
|
154:
|
||
|
155: <span class="ruby-keyword kw">true</span>
|
||
|
156: <span class="ruby-keyword kw">end</span>
|
||
|
157: <span class="ruby-keyword kw">end</span></pre>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div id="replace-refresh-method" class="method-detail ">
|
||
|
<a name="method-i-replace_refresh"></a>
|
||
|
|
||
|
<div class="method-heading">
|
||
|
|
||
|
<span class="method-name">replace_refresh</span><span
|
||
|
class="method-args">()</span>
|
||
|
<span class="method-click-advice">click to toggle source</span>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="method-description">
|
||
|
|
||
|
<p>
|
||
|
Because <a href="../Bundler.html">Bundler</a> has a static view of what
|
||
|
specs are available, we don’t reflesh, so stub it out.
|
||
|
</p>
|
||
|
|
||
|
|
||
|
|
||
|
<div class="method-source-code"
|
||
|
id="replace-refresh-source">
|
||
|
<pre>
|
||
|
<span class="ruby-comment cmt"># File lib/bundler/rubygems_integration.rb, line 232</span>
|
||
|
232: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">replace_refresh</span>
|
||
|
233: <span class="ruby-identifier">gem_class</span> = (<span class="ruby-keyword kw">class</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">Gem</span> ; <span class="ruby-keyword kw">self</span> ; <span class="ruby-keyword kw">end</span>)
|
||
|
234: <span class="ruby-identifier">gem_class</span>.<span class="ruby-identifier">send</span>(<span class="ruby-value">:remove_method</span>, <span class="ruby-value">:refresh</span>)
|
||
|
235: <span class="ruby-identifier">gem_class</span>.<span class="ruby-identifier">send</span>(<span class="ruby-value">:define_method</span>, <span class="ruby-value">:refresh</span>) { }
|
||
|
236: <span class="ruby-keyword kw">end</span></pre>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div id="reverse-rubygems-kernel-mixin-method" class="method-detail ">
|
||
|
<a name="method-i-reverse_rubygems_kernel_mixin"></a>
|
||
|
|
||
|
<div class="method-heading">
|
||
|
|
||
|
<span class="method-name">reverse_rubygems_kernel_mixin</span><span
|
||
|
class="method-args">()</span>
|
||
|
<span class="method-click-advice">click to toggle source</span>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="method-description">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="method-source-code"
|
||
|
id="reverse-rubygems-kernel-mixin-source">
|
||
|
<pre>
|
||
|
<span class="ruby-comment cmt"># File lib/bundler/rubygems_integration.rb, line 107</span>
|
||
|
107: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reverse_rubygems_kernel_mixin</span>
|
||
|
108: <span class="ruby-comment cmt"># Disable rubygems' gem activation system</span>
|
||
|
109: <span class="ruby-operator">::</span><span class="ruby-constant">Kernel</span>.<span class="ruby-identifier">class_eval</span> <span class="ruby-keyword kw">do</span>
|
||
|
110: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">private_method_defined?</span>(<span class="ruby-value">:gem_original_require</span>)
|
||
|
111: <span class="ruby-keyword kw">alias</span> <span class="ruby-identifier">rubygems_require</span> <span class="ruby-identifier">require</span>
|
||
|
112: <span class="ruby-keyword kw">alias</span> <span class="ruby-identifier">require</span> <span class="ruby-identifier">gem_original_require</span>
|
||
|
113: <span class="ruby-keyword kw">end</span>
|
||
|
114:
|
||
|
115: <span class="ruby-keyword kw">undef</span> <span class="ruby-identifier">gem</span>
|
||
|
116: <span class="ruby-keyword kw">end</span>
|
||
|
117: <span class="ruby-keyword kw">end</span></pre>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div id="ruby-engine-method" class="method-detail ">
|
||
|
<a name="method-i-ruby_engine"></a>
|
||
|
|
||
|
<div class="method-heading">
|
||
|
|
||
|
<span class="method-name">ruby_engine</span><span
|
||
|
class="method-args">()</span>
|
||
|
<span class="method-click-advice">click to toggle source</span>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="method-description">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="method-source-code"
|
||
|
id="ruby-engine-source">
|
||
|
<pre>
|
||
|
<span class="ruby-comment cmt"># File lib/bundler/rubygems_integration.rb, line 28</span>
|
||
|
28: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ruby_engine</span>
|
||
|
29: <span class="ruby-constant">Gem</span>.<span class="ruby-identifier">ruby_engine</span>
|
||
|
30: <span class="ruby-keyword kw">end</span></pre>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div id="sources-method" class="method-detail ">
|
||
|
<a name="method-i-sources"></a>
|
||
|
|
||
|
<div class="method-heading">
|
||
|
|
||
|
<span class="method-name">sources</span><span
|
||
|
class="method-args">()</span>
|
||
|
<span class="method-click-advice">click to toggle source</span>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="method-description">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="method-source-code"
|
||
|
id="sources-source">
|
||
|
<pre>
|
||
|
<span class="ruby-comment cmt"># File lib/bundler/rubygems_integration.rb, line 44</span>
|
||
|
44: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sources</span>
|
||
|
45: <span class="ruby-constant">Gem</span>.<span class="ruby-identifier">sources</span>
|
||
|
46: <span class="ruby-keyword kw">end</span></pre>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div id="sources--method" class="method-detail ">
|
||
|
<a name="method-i-sources%3D"></a>
|
||
|
|
||
|
<div class="method-heading">
|
||
|
|
||
|
<span class="method-name">sources=</span><span
|
||
|
class="method-args">(val)</span>
|
||
|
<span class="method-click-advice">click to toggle source</span>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="method-description">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="method-source-code"
|
||
|
id="sources--source">
|
||
|
<pre>
|
||
|
<span class="ruby-comment cmt"># File lib/bundler/rubygems_integration.rb, line 40</span>
|
||
|
40: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sources=</span>(<span class="ruby-identifier">val</span>)
|
||
|
41: <span class="ruby-constant">Gem</span>.<span class="ruby-identifier">sources</span> = <span class="ruby-identifier">val</span>
|
||
|
42: <span class="ruby-keyword kw">end</span></pre>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div id="spec-from-gem-method" class="method-detail ">
|
||
|
<a name="method-i-spec_from_gem"></a>
|
||
|
|
||
|
<div class="method-heading">
|
||
|
|
||
|
<span class="method-name">spec_from_gem</span><span
|
||
|
class="method-args">(path)</span>
|
||
|
<span class="method-click-advice">click to toggle source</span>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="method-description">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="method-source-code"
|
||
|
id="spec-from-gem-source">
|
||
|
<pre>
|
||
|
<span class="ruby-comment cmt"># File lib/bundler/rubygems_integration.rb, line 99</span>
|
||
|
99: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">spec_from_gem</span>(<span class="ruby-identifier">path</span>)
|
||
|
100: <span class="ruby-constant">Gem</span><span class="ruby-operator">::</span><span class="ruby-constant">Format</span>.<span class="ruby-identifier">from_file_by_path</span>(<span class="ruby-identifier">path</span>).<span class="ruby-identifier">spec</span>
|
||
|
101: <span class="ruby-keyword kw">end</span></pre>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div id="stub-source-index--method" class="method-detail ">
|
||
|
<a name="method-i-stub_source_index137"></a>
|
||
|
|
||
|
<div class="method-heading">
|
||
|
|
||
|
<span class="method-name">stub_source_index137</span><span
|
||
|
class="method-args">(specs)</span>
|
||
|
<span class="method-click-advice">click to toggle source</span>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="method-description">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="method-source-code"
|
||
|
id="stub-source-index--source">
|
||
|
<pre>
|
||
|
<span class="ruby-comment cmt"># File lib/bundler/rubygems_integration.rb, line 170</span>
|
||
|
170: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stub_source_index137</span>(<span class="ruby-identifier">specs</span>)
|
||
|
171: <span class="ruby-comment cmt"># Rubygems versions lower than 1.7 use SourceIndex#from_gems_in</span>
|
||
|
172: <span class="ruby-identifier">source_index_class</span> = (<span class="ruby-keyword kw">class</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">Gem</span><span class="ruby-operator">::</span><span class="ruby-constant">SourceIndex</span> ; <span class="ruby-keyword kw">self</span> ; <span class="ruby-keyword kw">end</span>)
|
||
|
173: <span class="ruby-identifier">source_index_class</span>.<span class="ruby-identifier">send</span>(<span class="ruby-value">:remove_method</span>, <span class="ruby-value">:from_gems_in</span>)
|
||
|
174: <span class="ruby-identifier">source_index_class</span>.<span class="ruby-identifier">send</span>(<span class="ruby-value">:define_method</span>, <span class="ruby-value">:from_gems_in</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span>*<span class="ruby-identifier">args</span><span class="ruby-operator">|</span>
|
||
|
175: <span class="ruby-identifier">source_index</span> = <span class="ruby-constant">Gem</span><span class="ruby-operator">::</span><span class="ruby-constant">SourceIndex</span>.<span class="ruby-identifier">new</span>
|
||
|
176: <span class="ruby-identifier">source_index</span>.<span class="ruby-identifier">spec_dirs</span> = *<span class="ruby-identifier">args</span>
|
||
|
177: <span class="ruby-identifier">source_index</span>.<span class="ruby-identifier">add_specs</span>(*<span class="ruby-identifier">specs</span>)
|
||
|
178: <span class="ruby-identifier">source_index</span>
|
||
|
179: <span class="ruby-keyword kw">end</span>
|
||
|
180: <span class="ruby-keyword kw">end</span></pre>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div id="stub-source-index--method" class="method-detail ">
|
||
|
<a name="method-i-stub_source_index170"></a>
|
||
|
|
||
|
<div class="method-heading">
|
||
|
|
||
|
<span class="method-name">stub_source_index170</span><span
|
||
|
class="method-args">(specs)</span>
|
||
|
<span class="method-click-advice">click to toggle source</span>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="method-description">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="method-source-code"
|
||
|
id="stub-source-index--source">
|
||
|
<pre>
|
||
|
<span class="ruby-comment cmt"># File lib/bundler/rubygems_integration.rb, line 182</span>
|
||
|
182: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stub_source_index170</span>(<span class="ruby-identifier">specs</span>)
|
||
|
183: <span class="ruby-constant">Gem</span><span class="ruby-operator">::</span><span class="ruby-constant">SourceIndex</span>.<span class="ruby-identifier">send</span>(<span class="ruby-value">:define_method</span>, <span class="ruby-value">:initialize</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span>*<span class="ruby-identifier">args</span><span class="ruby-operator">|</span>
|
||
|
184: <span class="ruby-ivar">@gems</span> = {}
|
||
|
185: <span class="ruby-comment cmt"># You're looking at this thinking: Oh! This is how I make those</span>
|
||
|
186: <span class="ruby-comment cmt"># rubygems deprecations go away!</span>
|
||
|
187: <span class="ruby-comment cmt">#</span>
|
||
|
188: <span class="ruby-comment cmt"># You'd be correct BUT using of this method in production code</span>
|
||
|
189: <span class="ruby-comment cmt"># must be approved by the rubygems team itself!</span>
|
||
|
190: <span class="ruby-comment cmt">#</span>
|
||
|
191: <span class="ruby-comment cmt"># This is your warning. If you use this and don't have approval</span>
|
||
|
192: <span class="ruby-comment cmt"># we can't protect you.</span>
|
||
|
193: <span class="ruby-comment cmt">#</span>
|
||
|
194: <span class="ruby-constant">Deprecate</span>.<span class="ruby-identifier">skip_during</span> <span class="ruby-keyword kw">do</span>
|
||
|
195: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">spec_dirs</span> = *<span class="ruby-identifier">args</span>
|
||
|
196: <span class="ruby-identifier">add_specs</span>(*<span class="ruby-identifier">specs</span>)
|
||
|
197: <span class="ruby-keyword kw">end</span>
|
||
|
198: <span class="ruby-keyword kw">end</span>
|
||
|
199: <span class="ruby-keyword kw">end</span></pre>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div id="ui--method" class="method-detail ">
|
||
|
<a name="method-i-ui%3D"></a>
|
||
|
|
||
|
<div class="method-heading">
|
||
|
|
||
|
<span class="method-name">ui=</span><span
|
||
|
class="method-args">(obj)</span>
|
||
|
<span class="method-click-advice">click to toggle source</span>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="method-description">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="method-source-code"
|
||
|
id="ui--source">
|
||
|
<pre>
|
||
|
<span class="ruby-comment cmt"># File lib/bundler/rubygems_integration.rb, line 81</span>
|
||
|
81: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ui=</span>(<span class="ruby-identifier">obj</span>)
|
||
|
82: <span class="ruby-constant">Gem</span><span class="ruby-operator">::</span><span class="ruby-constant">DefaultUserInteraction</span>.<span class="ruby-identifier">ui</span> = <span class="ruby-identifier">obj</span>
|
||
|
83: <span class="ruby-keyword kw">end</span></pre>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div id="user-home-method" class="method-detail ">
|
||
|
<a name="method-i-user_home"></a>
|
||
|
|
||
|
<div class="method-heading">
|
||
|
|
||
|
<span class="method-name">user_home</span><span
|
||
|
class="method-args">()</span>
|
||
|
<span class="method-click-advice">click to toggle source</span>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="method-description">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="method-source-code"
|
||
|
id="user-home-source">
|
||
|
<pre>
|
||
|
<span class="ruby-comment cmt"># File lib/bundler/rubygems_integration.rb, line 56</span>
|
||
|
56: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">user_home</span>
|
||
|
57: <span class="ruby-constant">Gem</span>.<span class="ruby-identifier">user_home</span>
|
||
|
58: <span class="ruby-keyword kw">end</span></pre>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div id="with-build-args-method" class="method-detail ">
|
||
|
<a name="method-i-with_build_args"></a>
|
||
|
|
||
|
<div class="method-heading">
|
||
|
|
||
|
<span class="method-name">with_build_args</span><span
|
||
|
class="method-args">(args)</span>
|
||
|
<span class="method-click-advice">click to toggle source</span>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="method-description">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="method-source-code"
|
||
|
id="with-build-args-source">
|
||
|
<pre>
|
||
|
<span class="ruby-comment cmt"># File lib/bundler/rubygems_integration.rb, line 89</span>
|
||
|
89: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">with_build_args</span>(<span class="ruby-identifier">args</span>)
|
||
|
90: <span class="ruby-identifier">old_args</span> = <span class="ruby-constant">Gem</span><span class="ruby-operator">::</span><span class="ruby-constant">Command</span>.<span class="ruby-identifier">build_args</span>
|
||
|
91: <span class="ruby-keyword kw">begin</span>
|
||
|
92: <span class="ruby-constant">Gem</span><span class="ruby-operator">::</span><span class="ruby-constant">Command</span>.<span class="ruby-identifier">build_args</span> = <span class="ruby-identifier">args</span>
|
||
|
93: <span class="ruby-keyword kw">yield</span>
|
||
|
94: <span class="ruby-keyword kw">ensure</span>
|
||
|
95: <span class="ruby-constant">Gem</span><span class="ruby-operator">::</span><span class="ruby-constant">Command</span>.<span class="ruby-identifier">build_args</span> = <span class="ruby-identifier">old_args</span>
|
||
|
96: <span class="ruby-keyword kw">end</span>
|
||
|
97: <span class="ruby-keyword kw">end</span></pre>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
||
|
|
||
|
<p>Disabled; run with --debug to generate this.</p>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div id="validator-badges">
|
||
|
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||
|
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
||
|
Rdoc Generator</a> 1.1.6</small>.</p>
|
||
|
</div>
|
||
|
|
||
|
</body>
|
||
|
</html>
|
||
|
|