2010-09-25 05:36:30 +02:00
<?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: Gem::Specification< / 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/resolver_rb.html?TB_iframe=true&height=550&width=785"
class="thickbox" title="lib/bundler/resolver.rb">lib/bundler/resolver.rb< / a > < / li >
< li > < a href = "../lib/bundler/rubygems_ext_rb.html?TB_iframe=true&height=550&width=785"
class="thickbox" title="lib/bundler/rubygems_ext.rb">lib/bundler/rubygems_ext.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 -->
<!-- Method Quickref -->
< div id = "method-list-section" class = "section" >
< h3 class = "section-header" > Methods< / h3 >
< ul class = "link-list" >
< li > < a href = "#method-i-add_bundler_dependencies" > #add_bundler_dependencies< / a > < / li >
< li > < a href = "#method-i-dependencies_to_gemfile" > #dependencies_to_gemfile< / a > < / li >
< li > < a href = "#method-i-full_gem_path" > #full_gem_path< / a > < / li >
< li > < a href = "#method-i-git_version" > #git_version< / a > < / li >
< li > < a href = "#method-i-groups" > #groups< / a > < / li >
< li > < a href = "#method-i-load_paths" > #load_paths< / a > < / li >
< li > < a href = "#method-i-loaded_from" > #loaded_from< / a > < / li >
< li > < a href = "#method-i-nondevelopment_dependencies" > #nondevelopment_dependencies< / a > < / li >
< li > < a href = "#method-i-required_by" > #required_by< / a > < / li >
< li > < a href = "#method-i-rg_full_gem_path" > #rg_full_gem_path< / a > < / li >
< li > < a href = "#method-i-rg_loaded_from" > #rg_loaded_from< / a > < / li >
< li > < a href = "#method-i-to_gemfile" > #to_gemfile< / a > < / li >
< / ul >
< / div >
<!-- Included Modules -->
< div id = "includes-section" class = "section" >
< h3 class = "section-header" > Included Modules< / h3 >
< ul class = "link-list" >
< li > < a class = "include" href = "../Bundler/MatchPlatform.html" > Bundler::MatchPlatform< / a > < / li >
< / ul >
< / div >
< / 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 >
2010-12-07 04:11:19 +01:00
< li > < a href = "../Bundler/Deployment.html" > Bundler::Deployment< / a > < / li >
2010-09-25 05:36:30 +02:00
< 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 >
2010-12-07 04:11:19 +01:00
< li > < a href = "../Gem/Requirement.html" > Gem::Requirement< / a > < / li >
2010-09-25 05:36:30 +02:00
< 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" > Gem::Specification< / h1 >
< div id = "description" >
< / div >
<!-- Constants -->
<!-- Attributes -->
< div id = "attribute-method-details" class = "method-section section" >
< h3 class = "section-header" > Attributes< / h3 >
< div id = "source-attribute-method" class = "method-detail" >
< a name = "source" > < / a >
< a name = "source=" > < / a >
< div class = "method-heading attribute-method-heading" >
< span class = "method-name" > source< / span > < span
class="attribute-access-type">[RW]< / span >
< / div >
< div class = "method-description" >
< / div >
< / div >
< div id = "location-attribute-method" class = "method-detail" >
< a name = "location" > < / a >
< a name = "location=" > < / a >
< div class = "method-heading attribute-method-heading" >
< span class = "method-name" > location< / span > < span
class="attribute-access-type">[RW]< / span >
< / div >
< div class = "method-description" >
< / div >
< / div >
< div id = "relative-loaded-from-attribute-method" class = "method-detail" >
< a name = "relative_loaded_from" > < / a >
< a name = "relative_loaded_from=" > < / a >
< div class = "method-heading attribute-method-heading" >
< span class = "method-name" > relative_loaded_from< / span > < span
class="attribute-access-type">[RW]< / span >
< / div >
< div class = "method-description" >
< / div >
< / div >
< / div >
<!-- Methods -->
< div id = "public-instance-method-details" class = "method-section section" >
< h3 class = "section-header" > Public Instance Methods< / h3 >
< div id = "add-bundler-dependencies-method" class = "method-detail " >
< a name = "method-i-add_bundler_dependencies" > < / a >
< div class = "method-heading" >
< span class = "method-name" > add_bundler_dependencies< / span > < span
class="method-args">(*groups)< / span >
< span class = "method-click-advice" > click to toggle source< / span >
< / div >
< div class = "method-description" >
< div class = "method-source-code"
id="add-bundler-dependencies-source">
< pre >
< span class = "ruby-comment cmt" > # File lib/bundler/rubygems_ext.rb, line 67< / span >
67: < span class = "ruby-keyword kw" > def< / span > < span class = "ruby-identifier" > add_bundler_dependencies< / span > (*< span class = "ruby-identifier" > groups< / span > )
68: < span class = "ruby-constant" > Bundler< / span > .< span class = "ruby-identifier" > ui< / span > .< span class = "ruby-identifier" > warn< / span > < span class = "ruby-node" > " #add_bundler_dependencies is deprecated and will " < / span > < span class = "ruby-node" > " be removed in Bundler 1.0. Instead, please use the #gemspec method " < / span > < span class = "ruby-value str" > " in your Gemfile, which will pull in any dependencies specified in " < / span > < span class = "ruby-value str" > " your gemspec" < / span >
69:
70: < span class = "ruby-identifier" > groups< / span > = [< span class = "ruby-value" > :default< / span > ] < span class = "ruby-keyword kw" > if< / span > < span class = "ruby-identifier" > groups< / span > .< span class = "ruby-identifier" > empty?< / span >
71: < span class = "ruby-constant" > Bundler< / span > .< span class = "ruby-identifier" > definition< / span > .< span class = "ruby-identifier" > dependencies< / span > .< span class = "ruby-identifier" > each< / span > < span class = "ruby-keyword kw" > do< / span > < span class = "ruby-operator" > |< / span > < span class = "ruby-identifier" > dep< / span > < span class = "ruby-operator" > |< / span >
72: < span class = "ruby-keyword kw" > if< / span > < span class = "ruby-identifier" > dep< / span > .< span class = "ruby-identifier" > groups< / span > .< span class = "ruby-identifier" > include?< / span > (< span class = "ruby-value" > :development< / span > )
73: < span class = "ruby-keyword kw" > self< / span > .< span class = "ruby-identifier" > add_development_dependency< / span > (< span class = "ruby-identifier" > dep< / span > .< span class = "ruby-identifier" > name< / span > , < span class = "ruby-identifier" > dep< / span > .< span class = "ruby-identifier" > requirement< / span > .< span class = "ruby-identifier" > to_s< / span > )
74: < span class = "ruby-keyword kw" > elsif< / span > (< span class = "ruby-identifier" > dep< / span > .< span class = "ruby-identifier" > groups< / span > & < span class = "ruby-identifier" > groups< / span > ).< span class = "ruby-identifier" > any?< / span >
75: < span class = "ruby-keyword kw" > self< / span > .< span class = "ruby-identifier" > add_dependency< / span > (< span class = "ruby-identifier" > dep< / span > .< span class = "ruby-identifier" > name< / span > , < span class = "ruby-identifier" > dep< / span > .< span class = "ruby-identifier" > requirement< / span > .< span class = "ruby-identifier" > to_s< / span > )
76: < span class = "ruby-keyword kw" > end< / span >
77: < span class = "ruby-keyword kw" > end< / span >
78: < span class = "ruby-keyword kw" > end< / span > < / pre >
< / div >
< / div >
< / div >
< div id = "full-gem-path-method" class = "method-detail " >
< a name = "method-i-full_gem_path" > < / a >
< div class = "method-heading" >
< span class = "method-name" > full_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="full-gem-path-source">
< pre >
< span class = "ruby-comment cmt" > # File lib/bundler/rubygems_ext.rb, line 20< / span >
20: < span class = "ruby-keyword kw" > def< / span > < span class = "ruby-identifier" > full_gem_path< / span >
21: < span class = "ruby-identifier" > source< / span > .< span class = "ruby-identifier" > respond_to?< / span > (< span class = "ruby-value" > :path< / span > ) < span class = "ruby-operator" > ?< / span >
22: < span class = "ruby-constant" > Pathname< / span > .< span class = "ruby-identifier" > new< / span > (< span class = "ruby-identifier" > loaded_from< / span > ).< span class = "ruby-identifier" > dirname< / span > .< span class = "ruby-identifier" > expand_path< / span > .< span class = "ruby-identifier" > to_s< / span > < span class = "ruby-operator" > :< / span >
23: < span class = "ruby-identifier" > rg_full_gem_path< / span >
24: < span class = "ruby-keyword kw" > end< / span > < / pre >
< / div >
< / div >
< div class = "aliases" >
Also aliased as: < a href = "Specification.html#method-i-rg_full_gem_path" > rg_full_gem_path< / a >
< / div >
< / div >
< div id = "git-version-method" class = "method-detail " >
< a name = "method-i-git_version" > < / a >
< div class = "method-heading" >
< span class = "method-name" > git_version< / 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="git-version-source">
< pre >
< span class = "ruby-comment cmt" > # File lib/bundler/rubygems_ext.rb, line 46< / span >
46: < span class = "ruby-keyword kw" > def< / span > < span class = "ruby-identifier" > git_version< / span >
47: < span class = "ruby-keyword kw" > if< / span > < span class = "ruby-ivar" > @loaded_from< / span > < span class = "ruby-operator" > & & < / span > < span class = "ruby-constant" > File< / span > .< span class = "ruby-identifier" > exist?< / span > (< span class = "ruby-constant" > File< / span > .< span class = "ruby-identifier" > join< / span > (< span class = "ruby-identifier" > full_gem_path< / span > , < span class = "ruby-value str" > " .git" < / span > ))
48: < span class = "ruby-identifier" > sha< / span > = < span class = "ruby-constant" > Dir< / span > .< span class = "ruby-identifier" > chdir< / span > (< span class = "ruby-identifier" > full_gem_path< / span > ){ < span class = "ruby-value" > `git rev-parse HEAD`< / span > .< span class = "ruby-identifier" > strip< / span > }
49: < span class = "ruby-node" > " #{sha[0..6]}" < / span >
50: < span class = "ruby-keyword kw" > end< / span >
51: < span class = "ruby-keyword kw" > end< / span > < / pre >
< / div >
< / div >
< / div >
< div id = "groups-method" class = "method-detail " >
< a name = "method-i-groups" > < / a >
< div class = "method-heading" >
< span class = "method-name" > groups< / 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="groups-source">
< pre >
< span class = "ruby-comment cmt" > # File lib/bundler/rubygems_ext.rb, line 42< / span >
42: < span class = "ruby-keyword kw" > def< / span > < span class = "ruby-identifier" > groups< / span >
43: < span class = "ruby-ivar" > @groups< / span > < span class = "ruby-operator" > ||=< / span > []
44: < span class = "ruby-keyword kw" > end< / span > < / pre >
< / div >
< / div >
< / div >
< div id = "load-paths-method" class = "method-detail " >
< a name = "method-i-load_paths" > < / a >
< div class = "method-heading" >
< span class = "method-name" > load_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="load-paths-source">
< pre >
< span class = "ruby-comment cmt" > # File lib/bundler/rubygems_ext.rb, line 32< / span >
32: < span class = "ruby-keyword kw" > def< / span > < span class = "ruby-identifier" > load_paths< / span >
33: < span class = "ruby-identifier" > require_paths< / span > .< span class = "ruby-identifier" > map< / span > < span class = "ruby-keyword kw" > do< / span > < span class = "ruby-operator" > |< / span > < span class = "ruby-identifier" > require_path< / span > < span class = "ruby-operator" > |< / span >
34: < span class = "ruby-keyword kw" > if< / span > < span class = "ruby-identifier" > require_path< / span > .< span class = "ruby-identifier" > include?< / span > (< span class = "ruby-identifier" > full_gem_path< / span > )
35: < span class = "ruby-identifier" > require_path< / span >
36: < span class = "ruby-keyword kw" > else< / span >
37: < span class = "ruby-constant" > File< / span > .< span class = "ruby-identifier" > join< / span > (< span class = "ruby-identifier" > full_gem_path< / span > , < span class = "ruby-identifier" > require_path< / span > )
38: < span class = "ruby-keyword kw" > end< / span >
39: < span class = "ruby-keyword kw" > end< / span >
40: < span class = "ruby-keyword kw" > end< / span > < / pre >
< / div >
< / div >
< / div >
< div id = "loaded-from-method" class = "method-detail " >
< a name = "method-i-loaded_from" > < / a >
< div class = "method-heading" >
< span class = "method-name" > loaded_from< / 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="loaded-from-source">
< pre >
< span class = "ruby-comment cmt" > # File lib/bundler/rubygems_ext.rb, line 26< / span >
26: < span class = "ruby-keyword kw" > def< / span > < span class = "ruby-identifier" > loaded_from< / span >
27: < span class = "ruby-identifier" > relative_loaded_from< / span > < span class = "ruby-operator" > ?< / span >
28: < span class = "ruby-identifier" > source< / span > .< span class = "ruby-identifier" > path< / span > .< span class = "ruby-identifier" > join< / span > (< span class = "ruby-identifier" > relative_loaded_from< / span > ).< span class = "ruby-identifier" > to_s< / span > < span class = "ruby-operator" > :< / span >
29: < span class = "ruby-identifier" > rg_loaded_from< / span >
30: < span class = "ruby-keyword kw" > end< / span > < / pre >
< / div >
< / div >
< div class = "aliases" >
Also aliased as: < a href = "Specification.html#method-i-rg_loaded_from" > rg_loaded_from< / a >
< / div >
< / div >
< div id = "nondevelopment-dependencies-method" class = "method-detail " >
< a name = "method-i-nondevelopment_dependencies" > < / a >
< div class = "method-heading" >
< span class = "method-name" > nondevelopment_dependencies< / 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="nondevelopment-dependencies-source">
< pre >
< span class = "ruby-comment cmt" > # File lib/bundler/rubygems_ext.rb, line 63< / span >
63: < span class = "ruby-keyword kw" > def< / span > < span class = "ruby-identifier" > nondevelopment_dependencies< / span >
64: < span class = "ruby-identifier" > dependencies< / span > < span class = "ruby-operator" > -< / span > < span class = "ruby-identifier" > development_dependencies< / span >
65: < span class = "ruby-keyword kw" > end< / span > < / pre >
< / div >
< / div >
< / div >
< div id = "required-by-method" class = "method-detail " >
< a name = "method-i-required_by" > < / a >
< div class = "method-heading" >
< span class = "method-name" > required_by< / 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="required-by-source">
< pre >
< span class = "ruby-comment cmt" > # File lib/bundler/resolver.rb, line 11< / span >
11: < span class = "ruby-keyword kw" > def< / span > < span class = "ruby-identifier" > required_by< / span >
12: < span class = "ruby-ivar" > @required_by< / span > < span class = "ruby-operator" > ||=< / span > []
13: < span class = "ruby-keyword kw" > end< / span > < / pre >
< / div >
< / div >
< / div >
< div id = "rg-full-gem-path-method" class = "method-detail method-alias" >
< a name = "method-i-rg_full_gem_path" > < / a >
< div class = "method-heading" >
< span class = "method-name" > rg_full_gem_path< / span > < span
class="method-args">()< / span >
< span class = "method-click-advice" > click to toggle source< / span >
< / div >
< div class = "method-description" >
< / div >
< div class = "aliases" >
Alias for: < a href = "Specification.html#method-i-full_gem_path" > full_gem_path< / a >
< / div >
< / div >
< div id = "rg-loaded-from-method" class = "method-detail method-alias" >
< a name = "method-i-rg_loaded_from" > < / a >
< div class = "method-heading" >
< span class = "method-name" > rg_loaded_from< / span > < span
class="method-args">()< / span >
< span class = "method-click-advice" > click to toggle source< / span >
< / div >
< div class = "method-description" >
< / div >
< div class = "aliases" >
Alias for: < a href = "Specification.html#method-i-loaded_from" > loaded_from< / a >
< / div >
< / div >
< div id = "to-gemfile-method" class = "method-detail " >
< a name = "method-i-to_gemfile" > < / a >
< div class = "method-heading" >
< span class = "method-name" > to_gemfile< / span > < span
class="method-args">(path = nil)< / span >
< span class = "method-click-advice" > click to toggle source< / span >
< / div >
< div class = "method-description" >
< div class = "method-source-code"
id="to-gemfile-source">
< pre >
< span class = "ruby-comment cmt" > # File lib/bundler/rubygems_ext.rb, line 53< / span >
53: < span class = "ruby-keyword kw" > def< / span > < span class = "ruby-identifier" > to_gemfile< / span > (< span class = "ruby-identifier" > path< / span > = < span class = "ruby-keyword kw" > nil< / span > )
54: < span class = "ruby-identifier" > gemfile< / span > = < span class = "ruby-value str" > " source :gemcutter\n" < / span >
55: < span class = "ruby-identifier" > gemfile< / span > < span class = "ruby-operator" > < < < / span > < span class = "ruby-identifier" > dependencies_to_gemfile< / span > (< span class = "ruby-identifier" > nondevelopment_dependencies< / span > )
56: < span class = "ruby-keyword kw" > unless< / span > < span class = "ruby-identifier" > development_dependencies< / span > .< span class = "ruby-identifier" > empty?< / span >
57: < span class = "ruby-identifier" > gemfile< / span > < span class = "ruby-operator" > < < < / span > < span class = "ruby-value str" > " \n" < / span >
58: < span class = "ruby-identifier" > gemfile< / span > < span class = "ruby-operator" > < < < / span > < span class = "ruby-identifier" > dependencies_to_gemfile< / span > (< span class = "ruby-identifier" > development_dependencies< / span > , < span class = "ruby-value" > :development< / span > )
59: < span class = "ruby-keyword kw" > end< / span >
60: < span class = "ruby-identifier" > gemfile< / span >
61: < 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 = "dependencies-to-gemfile-method" class = "method-detail " >
< a name = "method-i-dependencies_to_gemfile" > < / a >
< div class = "method-heading" >
< span class = "method-name" > dependencies_to_gemfile< / span > < span
class="method-args">(dependencies, group = nil)< / span >
< span class = "method-click-advice" > click to toggle source< / span >
< / div >
< div class = "method-description" >
< div class = "method-source-code"
id="dependencies-to-gemfile-source">
< pre >
< span class = "ruby-comment cmt" > # File lib/bundler/rubygems_ext.rb, line 85< / span >
85: < span class = "ruby-keyword kw" > def< / span > < span class = "ruby-identifier" > dependencies_to_gemfile< / span > (< span class = "ruby-identifier" > dependencies< / span > , < span class = "ruby-identifier" > group< / span > = < span class = "ruby-keyword kw" > nil< / span > )
86: < span class = "ruby-identifier" > gemfile< / span > = < span class = "ruby-value str" > ''< / span >
87: < span class = "ruby-keyword kw" > if< / span > < span class = "ruby-identifier" > dependencies< / span > .< span class = "ruby-identifier" > any?< / span >
88: < span class = "ruby-identifier" > gemfile< / span > < span class = "ruby-operator" > < < < / span > < span class = "ruby-node" > " group :#{group} do\n" < / span > < span class = "ruby-keyword kw" > if< / span > < span class = "ruby-identifier" > group< / span >
89: < span class = "ruby-identifier" > dependencies< / span > .< span class = "ruby-identifier" > each< / span > < span class = "ruby-keyword kw" > do< / span > < span class = "ruby-operator" > |< / span > < span class = "ruby-identifier" > dependency< / span > < span class = "ruby-operator" > |< / span >
90: < span class = "ruby-identifier" > gemfile< / span > < span class = "ruby-operator" > < < < / span > < span class = "ruby-value str" > ' '< / span > < span class = "ruby-keyword kw" > if< / span > < span class = "ruby-identifier" > group< / span >
91: < span class = "ruby-identifier" > gemfile< / span > < span class = "ruby-operator" > < < < / span > < span class = "ruby-node" > %gem " #{dependency.name}" |< / span >
92: < span class = "ruby-identifier" > req< / span > = < span class = "ruby-identifier" > dependency< / span > .< span class = "ruby-identifier" > requirements_list< / span > .< span class = "ruby-identifier" > first< / span >
93: < span class = "ruby-identifier" > gemfile< / span > < span class = "ruby-operator" > < < < / span > < span class = "ruby-node" > %, " #{req}" |< / span > < span class = "ruby-keyword kw" > if< / span > < span class = "ruby-identifier" > req< / span >
94: < span class = "ruby-identifier" > gemfile< / span > < span class = "ruby-operator" > < < < / span > < span class = "ruby-value str" > " \n" < / span >
95: < span class = "ruby-keyword kw" > end< / span >
96: < span class = "ruby-identifier" > gemfile< / span > < span class = "ruby-operator" > < < < / span > < span class = "ruby-value str" > " end\n" < / span > < span class = "ruby-keyword kw" > if< / span > < span class = "ruby-identifier" > group< / span >
97: < span class = "ruby-keyword kw" > end< / span >
98: < span class = "ruby-identifier" > gemfile< / span >
99: < 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 >