1048 lines
35 KiB
HTML
1048 lines
35 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::Dependency</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/dependency_rb.html?TB_iframe=true&height=550&width=785"
|
|
class="thickbox" title="lib/bundler/dependency.rb">lib/bundler/dependency.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"><a href="../Gem/Dependency.html">Gem::Dependency</a></p>
|
|
|
|
</div>
|
|
|
|
|
|
<!-- Namespace Contents -->
|
|
|
|
|
|
<!-- 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-current_env%3F">#current_env?</a></li>
|
|
|
|
<li><a href="#method-i-current_platform%3F">#current_platform?</a></li>
|
|
|
|
<li><a href="#method-i-gem_platforms">#gem_platforms</a></li>
|
|
|
|
<li><a href="#method-i-jruby%3F">#jruby?</a></li>
|
|
|
|
<li><a href="#method-i-mingw%3F">#mingw?</a></li>
|
|
|
|
<li><a href="#method-i-mingw_18%3F">#mingw_18?</a></li>
|
|
|
|
<li><a href="#method-i-mingw_19%3F">#mingw_19?</a></li>
|
|
|
|
<li><a href="#method-i-mri%3F">#mri?</a></li>
|
|
|
|
<li><a href="#method-i-mri_18%3F">#mri_18?</a></li>
|
|
|
|
<li><a href="#method-i-mri_19%3F">#mri_19?</a></li>
|
|
|
|
<li><a href="#method-i-mswin%3F">#mswin?</a></li>
|
|
|
|
<li><a href="#method-i-ruby%3F">#ruby?</a></li>
|
|
|
|
<li><a href="#method-i-ruby_18%3F">#ruby_18?</a></li>
|
|
|
|
<li><a href="#method-i-ruby_19%3F">#ruby_19?</a></li>
|
|
|
|
<li><a href="#method-i-should_include%3F">#should_include?</a></li>
|
|
|
|
<li><a href="#method-i-to_lock">#to_lock</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-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/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/SharedHelpers/Gem.html">Bundler::SharedHelpers::Gem</a></li>
|
|
|
|
<li><a href="../Bundler/SharedHelpers/Gem/SourceIndex.html">Bundler::SharedHelpers::Gem::SourceIndex</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::Dependency</h1>
|
|
|
|
<div id="description">
|
|
|
|
</div>
|
|
|
|
<!-- Constants -->
|
|
|
|
<div id="constants-list" class="section">
|
|
<h3 class="section-header">Constants</h3>
|
|
<dl>
|
|
|
|
<dt><a name="PLATFORM_MAP">PLATFORM_MAP</a></dt>
|
|
|
|
<dd class="description"></dd>
|
|
|
|
|
|
</dl>
|
|
</div>
|
|
|
|
|
|
<!-- Attributes -->
|
|
|
|
<div id="attribute-method-details" class="method-section section">
|
|
<h3 class="section-header">Attributes</h3>
|
|
|
|
|
|
<div id="autorequire-attribute-method" class="method-detail">
|
|
<a name="autorequire"></a>
|
|
|
|
<div class="method-heading attribute-method-heading">
|
|
<span class="method-name">autorequire</span><span
|
|
class="attribute-access-type">[R]</span>
|
|
</div>
|
|
|
|
<div class="method-description">
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div id="groups-attribute-method" class="method-detail">
|
|
<a name="groups"></a>
|
|
|
|
<div class="method-heading attribute-method-heading">
|
|
<span class="method-name">groups</span><span
|
|
class="attribute-access-type">[R]</span>
|
|
</div>
|
|
|
|
<div class="method-description">
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div id="platforms-attribute-method" class="method-detail">
|
|
<a name="platforms"></a>
|
|
|
|
<div class="method-heading attribute-method-heading">
|
|
<span class="method-name">platforms</span><span
|
|
class="attribute-access-type">[R]</span>
|
|
</div>
|
|
|
|
<div class="method-description">
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
<!-- 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">(name, version, options = {}, &blk)</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/dependency.rb, line 25</span>
|
|
25: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">version</span>, <span class="ruby-identifier">options</span> = {}, &<span class="ruby-identifier">blk</span>)
|
|
26: <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">version</span>)
|
|
27:
|
|
28: <span class="ruby-ivar">@autorequire</span> = <span class="ruby-keyword kw">nil</span>
|
|
29: <span class="ruby-ivar">@groups</span> = <span class="ruby-constant">Array</span>(<span class="ruby-identifier">options</span>[<span class="ruby-value str">"group"</span>] <span class="ruby-operator">||</span> <span class="ruby-value">:default</span>).<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">g</span><span class="ruby-operator">|</span> <span class="ruby-identifier">g</span>.<span class="ruby-identifier">to_sym</span> }
|
|
30: <span class="ruby-ivar">@source</span> = <span class="ruby-identifier">options</span>[<span class="ruby-value str">"source"</span>]
|
|
31: <span class="ruby-ivar">@platforms</span> = <span class="ruby-constant">Array</span>(<span class="ruby-identifier">options</span>[<span class="ruby-value str">"platforms"</span>])
|
|
32: <span class="ruby-ivar">@env</span> = <span class="ruby-identifier">options</span>[<span class="ruby-value str">"env"</span>]
|
|
33:
|
|
34: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>.<span class="ruby-identifier">key?</span>(<span class="ruby-value str">'require'</span>)
|
|
35: <span class="ruby-ivar">@autorequire</span> = <span class="ruby-constant">Array</span>(<span class="ruby-identifier">options</span>[<span class="ruby-value str">'require'</span>] <span class="ruby-operator">||</span> [])
|
|
36: <span class="ruby-keyword kw">end</span>
|
|
37: <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="current-env--method" class="method-detail ">
|
|
<a name="method-i-current_env%3F"></a>
|
|
|
|
<div class="method-heading">
|
|
|
|
<span class="method-name">current_env?</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="current-env--source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/bundler/dependency.rb, line 55</span>
|
|
55: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">current_env?</span>
|
|
56: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@env</span>
|
|
57: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">Hash</span> <span class="ruby-operator">===</span> <span class="ruby-ivar">@env</span>
|
|
58: <span class="ruby-ivar">@env</span>.<span class="ruby-identifier">all?</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>, <span class="ruby-identifier">val</span><span class="ruby-operator">|</span>
|
|
59: <span class="ruby-constant">ENV</span>[<span class="ruby-identifier">key</span>.<span class="ruby-identifier">to_s</span>] <span class="ruby-operator">&&</span> (<span class="ruby-constant">String</span> <span class="ruby-operator">===</span> <span class="ruby-identifier">val</span> <span class="ruby-operator">?</span> <span class="ruby-constant">ENV</span>[<span class="ruby-identifier">key</span>.<span class="ruby-identifier">to_s</span>] <span class="ruby-operator">==</span> <span class="ruby-identifier">val</span> <span class="ruby-operator">:</span> <span class="ruby-constant">ENV</span>[<span class="ruby-identifier">key</span>.<span class="ruby-identifier">to_s</span>] <span class="ruby-operator">=~</span> <span class="ruby-identifier">val</span>)
|
|
60: <span class="ruby-keyword kw">end</span>
|
|
61: <span class="ruby-keyword kw">else</span>
|
|
62: <span class="ruby-constant">ENV</span>[<span class="ruby-ivar">@env</span>.<span class="ruby-identifier">to_s</span>]
|
|
63: <span class="ruby-keyword kw">end</span>
|
|
64: <span class="ruby-keyword kw">end</span></pre>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div id="current-platform--method" class="method-detail ">
|
|
<a name="method-i-current_platform%3F"></a>
|
|
|
|
<div class="method-heading">
|
|
|
|
<span class="method-name">current_platform?</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="current-platform--source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/bundler/dependency.rb, line 66</span>
|
|
66: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">current_platform?</span>
|
|
67: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@platforms</span>.<span class="ruby-identifier">empty?</span>
|
|
68: <span class="ruby-ivar">@platforms</span>.<span class="ruby-identifier">any?</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">p</span><span class="ruby-operator">|</span> <span class="ruby-identifier">send</span>(<span class="ruby-node">"#{p}?"</span>) }
|
|
69: <span class="ruby-keyword kw">end</span></pre>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div id="gem-platforms-method" class="method-detail ">
|
|
<a name="method-i-gem_platforms"></a>
|
|
|
|
<div class="method-heading">
|
|
|
|
<span class="method-name">gem_platforms</span><span
|
|
class="method-args">(valid_platforms)</span>
|
|
<span class="method-click-advice">click to toggle source</span>
|
|
|
|
</div>
|
|
|
|
<div class="method-description">
|
|
|
|
|
|
|
|
|
|
|
|
<div class="method-source-code"
|
|
id="gem-platforms-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/bundler/dependency.rb, line 39</span>
|
|
39: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">gem_platforms</span>(<span class="ruby-identifier">valid_platforms</span>)
|
|
40: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">valid_platforms</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@platforms</span>.<span class="ruby-identifier">empty?</span>
|
|
41:
|
|
42: <span class="ruby-identifier">platforms</span> = []
|
|
43: <span class="ruby-ivar">@platforms</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">p</span><span class="ruby-operator">|</span>
|
|
44: <span class="ruby-identifier">platform</span> = <span class="ruby-constant">PLATFORM_MAP</span>[<span class="ruby-identifier">p</span>]
|
|
45: <span class="ruby-keyword kw">next</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">valid_platforms</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">platform</span>)
|
|
46: <span class="ruby-identifier">platforms</span> <span class="ruby-operator">|=</span> [<span class="ruby-identifier">platform</span>]
|
|
47: <span class="ruby-keyword kw">end</span>
|
|
48: <span class="ruby-identifier">platforms</span>
|
|
49: <span class="ruby-keyword kw">end</span></pre>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div id="should-include--method" class="method-detail ">
|
|
<a name="method-i-should_include%3F"></a>
|
|
|
|
<div class="method-heading">
|
|
|
|
<span class="method-name">should_include?</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="should-include--source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/bundler/dependency.rb, line 51</span>
|
|
51: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">should_include?</span>
|
|
52: <span class="ruby-identifier">current_env?</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">current_platform?</span>
|
|
53: <span class="ruby-keyword kw">end</span></pre>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div id="to-lock-method" class="method-detail ">
|
|
<a name="method-i-to_lock"></a>
|
|
|
|
<div class="method-heading">
|
|
|
|
<span class="method-name">to_lock</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="to-lock-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/bundler/dependency.rb, line 71</span>
|
|
71: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_lock</span>
|
|
72: <span class="ruby-identifier">out</span> = <span class="ruby-node">" #{name}"</span>
|
|
73:
|
|
74: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">requirement</span> <span class="ruby-operator">==</span> <span class="ruby-constant">Gem</span><span class="ruby-operator">::</span><span class="ruby-constant">Requirement</span>.<span class="ruby-identifier">default</span>
|
|
75: <span class="ruby-identifier">out</span> <span class="ruby-operator"><<</span> <span class="ruby-node">" (#{requirement.to_s})"</span>
|
|
76: <span class="ruby-keyword kw">end</span>
|
|
77:
|
|
78: <span class="ruby-identifier">out</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">'!'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">source</span>
|
|
79:
|
|
80: <span class="ruby-identifier">out</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n"</span>
|
|
81: <span class="ruby-keyword kw">end</span></pre>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
<div id="private-instance-method-details" class="method-section section">
|
|
<h3 class="section-header">Private Instance Methods</h3>
|
|
|
|
|
|
<div id="jruby--method" class="method-detail ">
|
|
<a name="method-i-jruby%3F"></a>
|
|
|
|
<div class="method-heading">
|
|
|
|
<span class="method-name">jruby?</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="jruby--source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/bundler/dependency.rb, line 109</span>
|
|
109: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">jruby?</span>
|
|
110: <span class="ruby-keyword kw">defined?</span>(<span class="ruby-constant">RUBY_ENGINE</span>) <span class="ruby-operator">&&</span> <span class="ruby-constant">RUBY_ENGINE</span> <span class="ruby-operator">==</span> <span class="ruby-value str">"jruby"</span>
|
|
111: <span class="ruby-keyword kw">end</span></pre>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div id="mingw--method" class="method-detail ">
|
|
<a name="method-i-mingw%3F"></a>
|
|
|
|
<div class="method-heading">
|
|
|
|
<span class="method-name">mingw?</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="mingw--source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/bundler/dependency.rb, line 117</span>
|
|
117: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mingw?</span>
|
|
118: <span class="ruby-constant">Bundler</span><span class="ruby-operator">::</span><span class="ruby-constant">WINDOWS</span> <span class="ruby-operator">&&</span> <span class="ruby-constant">Gem</span><span class="ruby-operator">::</span><span class="ruby-constant">Platform</span>.<span class="ruby-identifier">local</span>.<span class="ruby-identifier">os</span> <span class="ruby-operator">==</span> <span class="ruby-value str">"mingw32"</span>
|
|
119: <span class="ruby-keyword kw">end</span></pre>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div id="mingw--method" class="method-detail ">
|
|
<a name="method-i-mingw_18%3F"></a>
|
|
|
|
<div class="method-heading">
|
|
|
|
<span class="method-name">mingw_18?</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="mingw--source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/bundler/dependency.rb, line 121</span>
|
|
121: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mingw_18?</span>
|
|
122: <span class="ruby-identifier">mingw?</span> <span class="ruby-operator">&&</span> <span class="ruby-constant">RUBY_VERSION</span> <span class="ruby-operator"><</span> <span class="ruby-value str">"1.9"</span>
|
|
123: <span class="ruby-keyword kw">end</span></pre>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div id="mingw--method" class="method-detail ">
|
|
<a name="method-i-mingw_19%3F"></a>
|
|
|
|
<div class="method-heading">
|
|
|
|
<span class="method-name">mingw_19?</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="mingw--source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/bundler/dependency.rb, line 125</span>
|
|
125: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mingw_19?</span>
|
|
126: <span class="ruby-identifier">mingw?</span> <span class="ruby-operator">&&</span> <span class="ruby-constant">RUBY_VERSION</span> <span class="ruby-operator">>=</span> <span class="ruby-value str">"1.9"</span>
|
|
127: <span class="ruby-keyword kw">end</span></pre>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div id="mri--method" class="method-detail ">
|
|
<a name="method-i-mri%3F"></a>
|
|
|
|
<div class="method-heading">
|
|
|
|
<span class="method-name">mri?</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="mri--source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/bundler/dependency.rb, line 97</span>
|
|
97: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mri?</span>
|
|
98: <span class="ruby-operator">!</span><span class="ruby-identifier">mswin?</span> <span class="ruby-operator">&&</span> (<span class="ruby-operator">!</span><span class="ruby-keyword kw">defined?</span>(<span class="ruby-constant">RUBY_ENGINE</span>) <span class="ruby-operator">||</span> <span class="ruby-constant">RUBY_ENGINE</span> <span class="ruby-operator">==</span> <span class="ruby-value str">"ruby"</span>)
|
|
99: <span class="ruby-keyword kw">end</span></pre>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div id="mri--method" class="method-detail ">
|
|
<a name="method-i-mri_18%3F"></a>
|
|
|
|
<div class="method-heading">
|
|
|
|
<span class="method-name">mri_18?</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="mri--source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/bundler/dependency.rb, line 101</span>
|
|
101: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mri_18?</span>
|
|
102: <span class="ruby-identifier">mri?</span> <span class="ruby-operator">&&</span> <span class="ruby-constant">RUBY_VERSION</span> <span class="ruby-operator"><</span> <span class="ruby-value str">"1.9"</span>
|
|
103: <span class="ruby-keyword kw">end</span></pre>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div id="mri--method" class="method-detail ">
|
|
<a name="method-i-mri_19%3F"></a>
|
|
|
|
<div class="method-heading">
|
|
|
|
<span class="method-name">mri_19?</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="mri--source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/bundler/dependency.rb, line 105</span>
|
|
105: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mri_19?</span>
|
|
106: <span class="ruby-identifier">mri?</span> <span class="ruby-operator">&&</span> <span class="ruby-constant">RUBY_VERSION</span> <span class="ruby-operator">>=</span> <span class="ruby-value str">"1.9"</span>
|
|
107: <span class="ruby-keyword kw">end</span></pre>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div id="mswin--method" class="method-detail ">
|
|
<a name="method-i-mswin%3F"></a>
|
|
|
|
<div class="method-heading">
|
|
|
|
<span class="method-name">mswin?</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="mswin--source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/bundler/dependency.rb, line 113</span>
|
|
113: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mswin?</span>
|
|
114: <span class="ruby-constant">Bundler</span><span class="ruby-operator">::</span><span class="ruby-constant">WINDOWS</span>
|
|
115: <span class="ruby-keyword kw">end</span></pre>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div id="ruby--method" class="method-detail ">
|
|
<a name="method-i-ruby%3F"></a>
|
|
|
|
<div class="method-heading">
|
|
|
|
<span class="method-name">ruby?</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--source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/bundler/dependency.rb, line 85</span>
|
|
85: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ruby?</span>
|
|
86: <span class="ruby-operator">!</span><span class="ruby-identifier">mswin?</span> <span class="ruby-operator">&&</span> (<span class="ruby-operator">!</span><span class="ruby-keyword kw">defined?</span>(<span class="ruby-constant">RUBY_ENGINE</span>) <span class="ruby-operator">||</span> <span class="ruby-constant">RUBY_ENGINE</span> <span class="ruby-operator">==</span> <span class="ruby-value str">"ruby"</span> <span class="ruby-operator">||</span> <span class="ruby-constant">RUBY_ENGINE</span> <span class="ruby-operator">==</span> <span class="ruby-value str">"rbx"</span>)
|
|
87: <span class="ruby-keyword kw">end</span></pre>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div id="ruby--method" class="method-detail ">
|
|
<a name="method-i-ruby_18%3F"></a>
|
|
|
|
<div class="method-heading">
|
|
|
|
<span class="method-name">ruby_18?</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--source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/bundler/dependency.rb, line 89</span>
|
|
89: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ruby_18?</span>
|
|
90: <span class="ruby-identifier">ruby?</span> <span class="ruby-operator">&&</span> <span class="ruby-constant">RUBY_VERSION</span> <span class="ruby-operator"><</span> <span class="ruby-value str">"1.9"</span>
|
|
91: <span class="ruby-keyword kw">end</span></pre>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div id="ruby--method" class="method-detail ">
|
|
<a name="method-i-ruby_19%3F"></a>
|
|
|
|
<div class="method-heading">
|
|
|
|
<span class="method-name">ruby_19?</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--source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/bundler/dependency.rb, line 93</span>
|
|
93: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ruby_19?</span>
|
|
94: <span class="ruby-identifier">ruby?</span> <span class="ruby-operator">&&</span> <span class="ruby-constant">RUBY_VERSION</span> <span class="ruby-operator">>=</span> <span class="ruby-value str">"1.9"</span>
|
|
95: <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>
|
|
|