diff options
Diffstat (limited to 'bundle_update.html')
-rw-r--r-- | bundle_update.html | 287 |
1 files changed, 0 insertions, 287 deletions
diff --git a/bundle_update.html b/bundle_update.html deleted file mode 100644 index b8ffd3b370..0000000000 --- a/bundle_update.html +++ /dev/null @@ -1,287 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <title>Bundler: The best way to manage a Ruby application's gems</title> - <meta content='text/html; charset=UTF-8' http-equiv='Content-Type'> - <meta content='276VSYOko8B8vIu1i8i5qbj7_ql5PXo0dU69XQy-SL' name='globalsign-domain-verification'> - <link href='/images/favicon.png' rel='shortcut icon' type='image/png'> - <link href="/stylesheets/application.css" media="screen" rel="stylesheet" type="text/css" /> - </head> - <body> - <div id='body'> - <div id='header'> - <a class="image" href="/"><img width="725" alt="The best way to manage your application's dependencies" src="/images/gembundler.png" /></a> - </div> - <div id='container'> - <div id='contents'> - <h2>bundle update</h2> - <div class='contents'> - <div class='bullet'> - <div class='description'> - Update the current environment - </div> - <pre class="highlight plaintext">$ bundle update [GEM] [--local] [--source=SOURCE]</pre> - <div class='notes'> - <p> - Options: - </p> - <p> - <code>--local</code>: Do not attempt to fetch gems remotely and use - the gem cache instead - </p> - <p> - <code>--source</code>: Update a specific source (and all gems - associated with it) - </p> - </div> - <div class='description'> - Update the gems specified (all gems, if none are specified), ignoring - the previously installed gems specified in the <code>Gemfile.lock</code>. - In general, you should use <code>bundle install</code> to install the same - exact gems and versions across machines. - You would use <code>bundle update</code> to explicitly update the version - of a gem. - </div> - </div> - <div class='bullet'> - <div class='description'> - Update the current environment. - </div> - <div class='how'> - <pre class="highlight plaintext">$ bundle update</pre> - </div> - <div class='notes'> - If you run <code>bundle update</code> with no parameters, bundler will - ignore any previously installed gems and resolve all dependencies again - based on the latest versions of all gems available in the sources. - </div> - </div> - <div class='bullet' id='source'> - <div class='description'> - Update a specific source (and all gems associated with it) - </div> - <div class='how'> - <pre class="highlight plaintext">$ bundle update --source=SOURCE</pre> - </div> - <div class='notes'> - The name of a <code>:git</code> or <code>:path</code> source used in the - <code>Gemfile</code>. For instance, with a <code>:git</code> source of - <code>http://github.com/rails/rails.git</code>, you would call - <code>bundle update --source rails</code>. - </div> - </div> - </div> - <h2>Update all gems</h2> - <div class='contents'> - <div class='bullet' id='update_all_extended'> - <div class='description'> - <p> - If you run <code>bundle update</code> with no parameters, bundler will - ignore any previously installed gems and resolve all dependencies again - based on the latest versions of all gems available in the sources. - </p> - <p> - Consider the following <code>Gemfile</code>: - <pre class="highlight ruby"><span class="n">source</span> <span class="s1">'http://rubygems.org'</span>
<span class="n">gem</span> <span class="s1">'rails'</span><span class="p">,</span> <span class="s1">'3.0.0.rc'</span>
<span class="n">gem</span> <span class="s1">'nokogiri'</span></pre> - </p> - <p> - When you run <code>bundle install</code> the first time, bundler will - resolve all of the dependencies, all the way down, and install what you - need: - <pre class="highlight plaintext">Fetching source index for http://rubygems.org/
Installing rake (0.8.7)
Installing abstract (1.0.0)
Installing activesupport (3.0.0.rc)
Installing builder (2.1.2)
Installing i18n (0.4.1)
Installing activemodel (3.0.0.rc)
Installing erubis (2.6.6)
Installing rack (1.2.1)
Installing rack-mount (0.6.9)
Installing rack-test (0.5.4)
Installing tzinfo (0.3.22)
Installing actionpack (3.0.0.rc)
Installing mime-types (1.16)
Installing polyglot (0.3.1)
Installing treetop (1.4.8)
Installing mail (2.2.5)
Installing actionmailer (3.0.0.rc)
Installing arel (0.4.0)
Installing activerecord (3.0.0.rc)
Installing activeresource (3.0.0.rc)
Installing bundler (1.0.0.rc.3)
Installing nokogiri (1.4.3.1) with native extensions
Installing thor (0.14.0)
Installing railties (3.0.0.rc)
Installing rails (3.0.0.rc)

Your bundle is complete! Use `bundle show [gemname]` to see where a
bundled gem is installed.</pre> - </p> - <p> - As you can see, even though you have just two gems in the - <code>Gemfile</code>, your application actually needs 25 different gems - in order to run. Bundler remembers the exact versions it installed in - <code>Gemfile.lock</code>. The next time you run - <code>bundle install</code>, bundler skips the dependency resolution and - installs the same gems as it installed last time. - </p> - <p> - After checking in the <code>Gemfile.lock</code> into version control and - cloning it on another machine, running <code>bundle install</code> will - _still_ install the gems that you installed last time. You don't need to - worry that a new release of <code>erubis</code> or <code>mail</code> - changes the gems you use. - </p> - <p> - However, from time to time, you might want to update the gems you are - using to the newest versions that still match the gems in your - <code>Gemfile</code>. - </p> - <p> - To do this, run <code>bundle update</code>, which will ignore the - <code>Gemfile.lock</code>, and resolve all the dependencies again. Keep - in mind that this process can result in a significantly different set - of the 25 gems, based on the requirements of new gems that the gem - authors released since the last time you ran <code>bundle update</code>. - </p> - </div> - </div> - </div> - <h2>Update a list of gems.</h2> - <div class='contents'> - <div class='bullet' id='update_list_of_gems'> - <div class='description'> - <p> - Sometimes, you want to update a single gem in the <code>Gemfile</code>, - and leave the rest of the gems that you specified locked to the - versions in the <code>Gemfile.lock</code>. - </p> - <p> - For instance, in the scenario above, imagine that - <code>nokogiri</code> releases version <code>1.4.4</code>, and you want - to update it _without_ updating Rails and all of its dependencies. To - do this, run - <pre class="highlight plaintext">bundle update nokogiri
</pre> - </p> - <p> - Bundler will update <code>nokogiri</code> and any of its dependencies, - but leave alone Rails and its dependencies. - </p> - </div> - </div> - </div> - <h2>Overlapping dependencies</h2> - <div class='contents'> - <div class='bullet' id='overlapping_dependencies'> - <div class='description'> - <p> - Sometimes, multiple gems declared in your <code>Gemfile</code> are - satisfied by the same second-level dependency. For instance, consider the - case of <code>thin</code> and <code>rack-perftools-profiler</code>. - <pre class="highlight ruby"><span class="n">source</span> <span class="s1">'http://rubygems.org'</span>

<span class="n">gem</span> <span class="s1">'thin'</span>
<span class="n">gem</span> <span class="s1">'rack-perftools-profiler'</span>
</pre> - </p> - <p> - The <code>thin</code> gem depends on <code>rack >= 1.0</code>, while - <code>rack-perftools-profiler</code> depends on <code>rack ~> 1.0</code>. - If you run bundle install, you get: - <pre class="highlight plaintext">Fetching source index for http://rubygems.org/
Installing daemons (1.1.0)
Installing eventmachine (0.12.10) with native extensions
Installing open4 (1.0.1)
Installing perftools.rb (0.4.7) with native extensions
Installing rack (1.2.1)
Installing rack-perftools_profiler (0.0.2)
Installing thin (1.2.7) with native extensions
Using bundler (1.0.0.rc.3)
</pre> - </p> - <p> - In this case, the two gems have their own set of dependencies, but they - share <code>rack</code> in common. If you run <code>bundle update - thin</code>, bundler will update <code>daemons</code>, - <code>eventmachine</code> and <code>rack</code>, which are dependencies - of <code>thin</code>, but not <code>open4</code> or - <code>perftools.rb</code>, which are dependencies of - <code>rack-perftools_profiler</code>. Note that - <code>bundle update thin</code> will update <code>rack</code> even though - it's _also_ a dependency of <code>rack-perftools_profiler</code>. - </p> - <p> - In short, when you update a gem using - <code>bundle update</code>, bundler will update all dependencies of that - gem, including those that are also dependencies of another gem. - </p> - <p> - In this scenario, updating the <code>thin</code> version manually in the - <code>Gemfile</code>, and then running <code>bundle install</code> will - only update <code>daemons</code> and <code>eventmachine</code>, but not - <code>rack</code>. - </p> - </div> - </div> - </div> - </div> - <div id='sidebar'> - <h2>Would you like to</h2> - <ul> - <li><a href="/#getting-started">Get started</a></li> - <li><a href="/issues.html">Report a bug</a></li> - <li><a href="/v1.6/whats_new.html">See what's new</a></li> - <li><a href="/v1.6/man/bundle.1.html">Read documentation</a></li> - <li><a href="/#get-involved">Discuss and Contribute</a></li> - <li><a href="/v1.6/faq.html">View FAQs</a></li> - </ul> - <div class='shirts'> - <div class='content'> - <p> - Bundler is developed entirely by a team of volunteers. - <a href="http://www.gittip.com/bundler">Support their work</a> - and help make Bundler better for everyone. - </p> - <p> - <script data-gittip-username='bundler' src='//gttp.co/v1.js'></script> - <br> - <br> - </p> - </div> - </div> - <h2>Bundler Commands</h2> - <ul> - <li><a href="/v1.6/bundle_install.html">bundle install</a></li> - <li><a href="/v1.6/bundle_update.html">bundle update</a></li> - <div class='buttons'> - <a href="/v1.6/commands.html">View all commands</a> - </div> - </ul> - <h2>Help With</h2> - <ul> - <li><a href="/v1.6/gemfile.html">Gemfiles</a></li> - <li><a href="/v1.6/groups.html">Groups</a></li> - <li><a href="/v1.6/git.html">Gems from git</a></li> - <li><a href="/v1.6/bundler_setup.html">Bundler.setup</a></li> - <li><a href="/v1.6/deploying.html">Deploying</a></li> - <li><a href="/v1.6/bundler_sharing.html">Sharing</a></li> - <li><a href="/v1.6/updating_gems.html">Updating Gems</a></li> - <li><a href="/compatibility.html">Compatible versions</a></li> - </ul> - <h2>Use Bundler with</h2> - <ul> - <li><a href="/v1.6/rails3.html">Rails 3</a></li> - <li><a href="/v1.6/rails23.html">Rails 2.3</a></li> - <li><a href="/v1.6/sinatra.html">Sinatra</a></li> - <li><a href="/v1.6/rubygems.html">Rubygems</a></li> - <li><a href="/v1.6/rubymotion.html">RubyMotion</a></li> - </ul> - <div class='shirts'> - <div class='content'> - <a class="image" onclick="ga('send', 'devswag');" href="http://www.devswag.com/collections/bundler"><img src="/images/bundler-shirt.png" /> - </a> - - <p> - <a onclick="ga('send', 'devswag');" href="http://www.devswag.com/collections/bundler">Buy Bundler Shirts & Stickers!</a> - </p> - </div> - </div> - </div> - </div> - </div> - <div id='footer'> - <img src="/images/emocow.png" /> - <img src="/images/panda.jpg" /> - <div class='spacer'></div> - <div id='credits'> - <p> - Many thanks to Bundler's <a href="/contributors.html">contributors</a> - and <a href="/sponsors.html">sponsors</a> - </p> - </div> - <div class='spacer'></div> - <img src="/images/bundler-small.png" /> - </div> - <a href='http://github.com/bundler/bundler/' id='github'> - <img alt='Fork me on GitHub' src='http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png'> - </a> - <div id='prod-versions'> - Docs: - <a href="/v0.9/">v0.9</a> - <a href="/v1.0/">v1.0</a> - <a href="/v1.1/">v1.1</a> - <a href="/v1.2/">v1.2</a> - <a href="/v1.3/">v1.3</a> - <a href="/v1.5/index.html">v1.5</a> - <a class="current" href="/">v1.6</a> - </div> - <script> - (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ - (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), - m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) - })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); - ga('create', 'UA-39559982-1', 'bundler.io'); - ga('send', 'pageview'); - </script> - </body> -</html> |