summaryrefslogtreecommitdiff
path: root/v0.9
diff options
context:
space:
mode:
Diffstat (limited to 'v0.9')
-rw-r--r--v0.9/bundle_install.html120
-rw-r--r--v0.9/bundle_lock.html76
-rw-r--r--v0.9/bundle_package.html75
-rw-r--r--v0.9/bundler_setup.html71
-rw-r--r--v0.9/deploying.html82
-rw-r--r--v0.9/gemfile.html100
-rw-r--r--v0.9/git.html104
-rw-r--r--v0.9/groups.html97
-rw-r--r--v0.9/index.html181
-rw-r--r--v0.9/rails23.html99
-rw-r--r--v0.9/rails3.html145
-rw-r--r--v0.9/rubygems.html97
-rw-r--r--v0.9/sinatra.html76
13 files changed, 0 insertions, 1323 deletions
diff --git a/v0.9/bundle_install.html b/v0.9/bundle_install.html
deleted file mode 100644
index 2b125a673a..0000000000
--- a/v0.9/bundle_install.html
+++ /dev/null
@@ -1,120 +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 install</h2>
- <div class='contents'>
- <div class='bullet'>
- <div class='description'>
- Make sure all dependencies in your Gemfile are
- available to your application.
- </div>
- <div class='how'>
- <pre class="highlight plaintext">$ bundle install</pre>
- <div class='notes'>
- Gems may be installed to system gems or <code>BUNDLE_PATH</code>
- (which defaults to <code>~/.bundle</code>). Git repos will
- be checked out into to <code>BUNDLE_PATH</code> as well.
- </div>
- </div>
- </div>
- <div class='bullet'>
- <div class='description'>
- Install your dependencies to a location other than
- <code>BUNDLE_PATH</code>, in this case
- <code>vendor/bundle</code>.
- </div>
- <div class='how'>
- <pre class="highlight plaintext">$ bundle install vendor/bundle</pre>
- <div class='notes'>
- Further bundle commands or
- calls to Bundler.setup or Bundler.require will
- remember this location
- </div>
- <a href="/v0.9/bundler_setup.html">Learn More: Bundler.setup</a>
- <a href="/v0.9/groups.html">Learn More: Bundler.require</a>
- </div>
- </div>
- <div class='bullet'>
- <div class='description'>
- Install all dependencies except those in groups
- that are explicitly excluded.
- </div>
- <pre class="highlight plaintext">$ bundle install --without development test</pre>
- <a href="/v0.9/groups.html">Learn More: Groups</a>
- </div>
- <div class='bullet'>
- <div class='description'>
- Install all gems to <code>BUNDLE_PATH</code>, regardless of
- whether those gems are installed in your system.
- Bundler will not install gems already in system gems
- by default, so this is especially useful if you're
- trying to package up an application with all
- dependencies unpacked.
- </div>
- <div class='how'>
- <pre class="highlight plaintext">$ bundle install --disable-shared-gems&#x000A;</pre>
- </div>
- </div>
- <div class='bullet'>
- <div class='description'>
- Install all gems into <code>vendor/bundle</code>,
- even gems that are already installed to your system
- and would normally be used from there instead of installed.
- </div>
- <div class='how'>
- <pre class="highlight plaintext">$ bundle install vendor/bundle --disable-shared-gems</pre>
- </div>
- </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 class="current" 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 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>
diff --git a/v0.9/bundle_lock.html b/v0.9/bundle_lock.html
deleted file mode 100644
index 69790f1315..0000000000
--- a/v0.9/bundle_lock.html
+++ /dev/null
@@ -1,76 +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 lock</h2>
- <div class='contents'>
- <div class='bullet'>
- <div class='description'>
- Calculate the entire dependency tree and store the results in Gemfile.lock. Check Gemfile.lock into version control
- </div>
- <pre class="highlight plaintext">$ bundle lock&#x000A;$ git add Gemfile.lock&#x000A;</pre>
- </div>
- <div class='bullet'>
- <div class='description'>
- After you have locked your gems, you've updated your Gemfile and want to update Gemfile.lock
- </div>
- <pre class="highlight plaintext">$ bundle lock&#x000A;</pre>
- </div>
- <div class='bullet'>
- <div class='description'>
- After you have locked your gems, you've updated your Gemfile and want to install the new gems
- </div>
- <pre class="highlight plaintext">$ bundle install --relock</pre>
- </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 class="current" 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 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>
diff --git a/v0.9/bundle_package.html b/v0.9/bundle_package.html
deleted file mode 100644
index 1f5af0f75c..0000000000
--- a/v0.9/bundle_package.html
+++ /dev/null
@@ -1,75 +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 install</h2>
- <div class='contents'>
- <div class='bullet'>
- <div class='description'>
- Package up all your .gem files in vendor/cache
- </div>
- <pre class="highlight plaintext">$ bundle package&#x000A;</pre>
- </div>
- <div class='bullet'>
- <div class='description'>
- Running bundle install in an application with packaged gems will use the gems in the package and skip connecting to rubygems.org
- </div>
- <div class='how'>
- <pre class="highlight plaintext">$ bundle install</pre>
- <div class='notes'>
- You can use this to avoid a dependency on rubygems.org at deploy time, or if you have private gems that are not in a public repository
- </div>
- </div>
- </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 class="current" 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 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>
diff --git a/v0.9/bundler_setup.html b/v0.9/bundler_setup.html
deleted file mode 100644
index 7e43fbaa00..0000000000
--- a/v0.9/bundler_setup.html
+++ /dev/null
@@ -1,71 +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>Bundler.setup</h2>
- <div class='contents'>
- <div class='bullet'>
- <div class='description'>
- Configure the load path so all dependencies in your Gemfile can be required
- </div>
- <pre class="highlight ruby"><span class="nb">require</span> <span class="s1">'rubygems'</span>&#x000A;<span class="nb">require</span> <span class="s1">'bundler'</span>&#x000A;<span class="no">Bundler</span><span class="p">.</span><span class="nf">setup</span>&#x000A;<span class="nb">require</span> <span class="s1">'nokogiri'</span>&#x000A;</pre>
- </div>
- <div class='bullet'>
- <div class='description'>
- Only add gems from specified groups to the load path. If you want the gems in the default group, make sure to include it
- </div>
- <pre class="highlight ruby"><span class="nb">require</span> <span class="s1">'rubygems'</span>&#x000A;<span class="nb">require</span> <span class="s1">'bundler'</span>&#x000A;<span class="no">Bundler</span><span class="p">.</span><span class="nf">setup</span><span class="p">(</span><span class="ss">:default</span><span class="p">,</span> <span class="ss">:ci</span><span class="p">)</span>&#x000A;<span class="nb">require</span> <span class="s1">'nokogiri'</span></pre>
- <a href="/v0.9/groups.html">Learn More: Groups</a>
- </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 class="current" 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 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>
diff --git a/v0.9/deploying.html b/v0.9/deploying.html
deleted file mode 100644
index 32ecb6e544..0000000000
--- a/v0.9/deploying.html
+++ /dev/null
@@ -1,82 +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>Deploying bundled applications</h2>
- <div class='contents'>
- <div class='bullet'>
- <div class='description'>
- When you are ready to deploy your application, you should lock your bundle to guarantee that dependency versions will no longer change.
- </div>
- <pre class="highlight plaintext">$ bundle lock</pre>
- <a href="/v0.9/bundle_lock.html">Learn more: bundle lock</a>
- </div>
- <div class='bullet'>
- <div class='description'>
- Add your Gemfile and lockfile to source control, but ignore the .bundle folder, which is specific to each machine.
- </div>
- <pre class="highlight plaintext">$ echo ".bundle\n" &gt;&gt; .gitignore&#x000A;$ git add Gemfile Gemfile.lock .gitignore&#x000A;$ git commit -m "Add bundler"&#x000A;</pre>
- </div>
- <div class='bullet'>
- <div class='description'>
- In your deploy script, after updating to the latest code, install your bundle to ensure all your dependencies are met.
- </div>
- <div class='how'>
- <pre class="highlight plaintext">$ bundle install</pre>
- <div class='notes'>
- Start your application servers as usual, and your application will use your bundled environment just like it does locally in development.
- </div>
- </div>
- </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 class="current" 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 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>
diff --git a/v0.9/gemfile.html b/v0.9/gemfile.html
deleted file mode 100644
index 59cf63dec8..0000000000
--- a/v0.9/gemfile.html
+++ /dev/null
@@ -1,100 +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>Gemfiles</h2>
- <div class='contents'>
- <div class='bullet'>
- <div class='description'>
- Gemfiles require at least one gem source, in the form of the URL for a Rubygems server.
- There are shortcuts for the default gem server, so all of these sources are the same.
- </div>
- <pre class="highlight ruby"><span class="n">source</span> <span class="ss">:rubygems</span>&#x000A;<span class="n">source</span> <span class="s1">'http://rubygems.org'</span>&#x000A;<span class="n">source</span> <span class="ss">:rubyforge</span>&#x000A;<span class="n">source</span> <span class="s1">'http://gems.rubyforge.org'</span>&#x000A;<span class="n">source</span> <span class="ss">:gemcutter</span>&#x000A;<span class="n">source</span> <span class="s1">'http://gemcutter.org'</span>&#x000A;</pre>
- </div>
- <div class='bullet'>
- <div class='description'>
- Declare the gems that you need, including version numbers. Specify versions using the same
- syntax that Rubygems supports for dependencies.
- </div>
- <pre class="highlight ruby"><span class="n">gem</span> <span class="s1">'nokogiri'</span>&#x000A;<span class="n">gem</span> <span class="s1">'rails'</span><span class="p">,</span> <span class="s1">'3.0.0.beta3'</span>&#x000A;<span class="n">gem</span> <span class="s1">'rack'</span><span class="p">,</span> <span class="s1">'&gt;=1.0'</span>&#x000A;<span class="n">gem</span> <span class="s1">'thin'</span><span class="p">,</span> <span class="s1">'~&gt;1.1'</span>&#x000A;</pre>
- </div>
- <div class='bullet'>
- <div class='description'>
- If a gem's main file is different than the gem name, specify how to require it.
- </div>
- <pre class="highlight ruby"><span class="n">gem</span> <span class="s1">'rspec'</span><span class="p">,</span> <span class="ss">:require</span> <span class="o">=&gt;</span> <span class="s1">'spec'</span>&#x000A;<span class="n">gem</span> <span class="s1">'sqlite3'</span>&#x000A;</pre>
- </div>
- <div class='bullet'>
- <div class='description'>
- Git repositories are also valid gem sources, as long as the repo contains one or more valid gems.
- Specify what to check out with :tag, :branch, or :ref. The default is the master branch.
- </div>
- <pre class="highlight ruby"><span class="n">gem</span> <span class="s1">'nokogiri'</span><span class="p">,</span> <span class="ss">:git</span> <span class="o">=&gt;</span> <span class="s1">'https://github.com/tenderlove/nokogiri.git'</span><span class="p">,</span> <span class="ss">:branch</span> <span class="o">=&gt;</span> <span class="s1">'1.4'</span>&#x000A;&#x000A;<span class="n">git</span> <span class="s1">'https://github.com/wycats/thor.git'</span><span class="p">,</span> <span class="ss">:tag</span> <span class="o">=&gt;</span> <span class="s1">'v0.13.4'</span>&#x000A;<span class="n">gem</span> <span class="s1">'thor'</span></pre>
- <a href="/v0.9/git.html">Learn more: Git</a>
- </div>
- <div class='bullet'>
- <div class='description'>
- If you are actively developing a gem, perhaps checked out from Github, you can use the gem
- directly from its directory on your filesystem.
- </div>
- <pre class="highlight ruby"><span class="n">gem</span> <span class="s1">'nokogiri'</span><span class="p">,</span> <span class="ss">:path</span> <span class="o">=&gt;</span> <span class="s1">'~/sw/gems/nokogiri'</span>&#x000A;</pre>
- </div>
- <div class='bullet'>
- <div class='description'>
- Dependencies can be placed into groups, to be ignored at install-time or required all at once.
- </div>
- <pre class="highlight ruby"><span class="n">gem</span> <span class="s1">'wirble'</span><span class="p">,</span> <span class="ss">:group</span> <span class="o">=&gt;</span> <span class="ss">:development</span>&#x000A;<span class="n">gem</span> <span class="s1">'ruby-debug'</span><span class="p">,</span> <span class="ss">:group</span> <span class="o">=&gt;</span> <span class="o">[</span><span class="ss">:development</span><span class="p">,</span> <span class="ss">:test</span><span class="o">]</span>&#x000A;&#x000A;<span class="n">group</span> <span class="ss">:test</span> <span class="k">do</span>&#x000A; <span class="n">gem</span> <span class="s1">'rspec'</span>&#x000A;<span class="k">end</span></pre>
- <a href="/v0.9/groups.html">Learn more: Groups</a>
- </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 class="current" 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 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>
diff --git a/v0.9/git.html b/v0.9/git.html
deleted file mode 100644
index 5a5fc3b5ee..0000000000
--- a/v0.9/git.html
+++ /dev/null
@@ -1,104 +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>Gems from git repositories</h2>
- <div class='contents'>
- <div class='bullet'>
- <div class='description'>
- Specify that a gem should come from a git repository with a .gemspec at its root
- </div>
- <pre class="highlight ruby"><span class="n">gem</span> <span class="s1">'nokogiri'</span><span class="p">,</span> <span class="ss">:git</span> <span class="o">=&gt;</span> <span class="s1">'https://github.com/tenderlove/nokogiri.git'</span>&#x000A;</pre>
- </div>
- <div class='bullet'>
- <div class='description'>
- If there is no .gemspec at the root of a git repository, you must specify a version that bundler should use when resolving dependencies
- </div>
- <pre class="highlight ruby"><span class="n">gem</span> <span class="s1">'deep_merge'</span><span class="p">,</span> <span class="s1">'1.0'</span><span class="p">,</span> <span class="ss">:git</span> <span class="o">=&gt;</span> <span class="s1">'https://github.com/peritor/deep_merge.git'</span>&#x000A;</pre>
- </div>
- <div class='bullet'>
- <div class='description'>
- Specify that a git repository containing multiple .gemspec files should be treated as a gem source
- </div>
- <pre class="highlight ruby"><span class="n">git</span> <span class="s1">'https://github.com/rails/rails.git'</span>&#x000A;<span class="n">gem</span> <span class="s1">'railties'</span>&#x000A;<span class="n">gem</span> <span class="s1">'action_pack'</span>&#x000A;<span class="n">gem</span> <span class="s1">'active_model'</span>&#x000A;<span class="k">end</span>&#x000A;</pre>
- </div>
- <div class='bullet'>
- <div class='description'>
- Specify that a git repository should use a particular ref, branch, or tag
- </div>
- <pre class="highlight ruby"><span class="n">git</span> <span class="s1">'https://github.com/rails/rails.git'</span><span class="p">,</span> <span class="ss">:ref</span> <span class="o">=&gt;</span> <span class="s1">'4aded'</span>&#x000A;&#x000A;<span class="n">git</span> <span class="s1">'https://github.com/rails/rails.git'</span><span class="p">,</span> <span class="ss">:branch</span> <span class="o">=&gt;</span> <span class="s1">'2-3-stable'</span>&#x000A;&#x000A;<span class="n">git</span> <span class="s1">'https://github.com/rails/rails.git'</span><span class="p">,</span> <span class="ss">:tag</span> <span class="o">=&gt;</span> <span class="s1">'v2.3.5'</span>&#x000A;</pre>
- </div>
- <div class='bullet'>
- <div class='description'>
- Specifying a ref, branch, or tag for a git repository specified inline works exactly the same way
- </div>
- <pre class="highlight ruby"><span class="n">gem</span> <span class="s1">'nokogiri'</span><span class="p">,</span> <span class="ss">:git</span> <span class="o">=&gt;</span> <span class="s1">'https://github.com/tenderlove/nokogiri.git'</span><span class="p">,</span> <span class="ss">:ref</span> <span class="o">=&gt;</span> <span class="s1">'0eec4'</span>&#x000A;</pre>
- </div>
- <div class='bullet'>
- <div class='description'>
- Bundler can use HTTP(S), SSH, or git
- </div>
- <pre class="highlight ruby"><span class="n">gem</span> <span class="s1">'nokogiri'</span><span class="p">,</span> <span class="ss">:git</span> <span class="o">=&gt;</span> <span class="s1">'https://github.com/tenderlove/nokogiri.git'</span>&#x000A;<span class="n">gem</span> <span class="s1">'nokogiri'</span><span class="p">,</span> <span class="ss">:git</span> <span class="o">=&gt;</span> <span class="s1">'git@github.com:tenderlove/nokogiri.git'</span>&#x000A;<span class="n">gem</span> <span class="s1">'nokogiri'</span><span class="p">,</span> <span class="ss">:git</span> <span class="o">=&gt;</span> <span class="s1">'git://github.com/tenderlove/nokogiri.git'</span>&#x000A;</pre>
- </div>
- </div>
- <h2>Security</h2>
- <div class='contents'>
- <div class='bullet'>
- <div class='description'>
- <code>http://</code> and <code>git://</code> URLs are insecure, and should
- be avoided if at all possible. These protocols are unauthenticated, so a
- man-in-the-middle attacker can tamper with the code and compromise your system.
- </div>
- </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 class="current" 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 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>
diff --git a/v0.9/groups.html b/v0.9/groups.html
deleted file mode 100644
index df9ce36555..0000000000
--- a/v0.9/groups.html
+++ /dev/null
@@ -1,97 +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>Using Groups</h2>
- <div class='contents'>
- <div class='bullet'>
- <div class='description'>
- Grouping your dependencies allows you to perform operations on the entire
- group.
- </div>
- <pre class="highlight ruby"><span class="c1"># These gems are in the :default group</span>&#x000A;<span class="n">gem</span> <span class="s1">'nokogiri'</span>&#x000A;<span class="n">gem</span> <span class="s1">'sinatra'</span>&#x000A;&#x000A;<span class="n">gem</span> <span class="s1">'wirble'</span><span class="p">,</span> <span class="ss">:group</span> <span class="o">=&gt;</span> <span class="ss">:development</span>&#x000A;&#x000A;<span class="n">group</span> <span class="ss">:test</span> <span class="k">do</span>&#x000A; <span class="n">gem</span> <span class="s1">'rspec'</span>&#x000A; <span class="n">gem</span> <span class="s1">'faker'</span>&#x000A;<span class="k">end</span>&#x000A;</pre>
- </div>
- <div class='bullet'>
- <div class='description'>
- Install all dependencies, except
- those in specified groups
- </div>
- <pre class="highlight plaintext">$ bundle install --without test&#x000A;</pre>
- </div>
- <div class='bullet'>
- <div class='description'>
- Require the gems in particular groups,
- noting that gems outside of a named group
- are in the :default group
- </div>
- <pre class="highlight ruby"><span class="no">Bundler</span><span class="p">.</span><span class="nf">require</span><span class="p">(</span><span class="ss">:default</span><span class="p">,</span> <span class="ss">:development</span><span class="p">)</span>&#x000A;</pre>
- </div>
- <div class='bullet'>
- <div class='description'>
- Require the default gems, plus the gems
- in a group named the same as the current
- Rails environment
- </div>
- <pre class="highlight ruby"><span class="no">Bundler</span><span class="p">.</span><span class="nf">require</span><span class="p">(</span><span class="ss">:default</span><span class="p">,</span> <span class="no">Rails</span><span class="p">.</span><span class="nf">env</span><span class="p">)</span>&#x000A;</pre>
- </div>
- <div class='bullet'>
- <div class='description'>
- Restrict the groups of gems that you
- want to add to the load path. Only gems
- in these groups will be require'able
- </div>
- <pre class="highlight ruby"><span class="nb">require</span> <span class="s1">'rubygems'</span>&#x000A;<span class="nb">require</span> <span class="s1">'bundler'</span>&#x000A;<span class="no">Bundler</span><span class="p">.</span><span class="nf">setup</span><span class="p">(</span><span class="ss">:default</span><span class="p">,</span> <span class="ss">:ci</span><span class="p">)</span>&#x000A;<span class="nb">require</span> <span class="s1">'nokogiri'</span></pre>
- <a href="/v0.9/bundler_setup.html">Learn More: Bundler.setup</a>
- </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 class="current" 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 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>
diff --git a/v0.9/index.html b/v0.9/index.html
deleted file mode 100644
index 1ff828b18a..0000000000
--- a/v0.9/index.html
+++ /dev/null
@@ -1,181 +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'>
- <div id='intro'>
- Bundler manages an <strong>application's dependencies</strong> through its
- entire life across many machines systematically and repeatably.
- </div>
- <h2>Getting Started</h2>
- <div class='contents'>
- <div class='bullet'>
- <div class='description'>
- Getting started with bundler is easy
- </div>
- <pre class="highlight plaintext">$ gem install bundler&#x000A;</pre>
- </div>
- <div class='bullet'>
- <div class='description'>
- If you're on an old version of Rubygems
- (before 1.3.6)
- </div>
- <pre class="highlight plaintext">$ gem update --system&#x000A;</pre>
- </div>
- <div class='bullet'>
- <div class='description'>
- Specify your dependencies in a Gemfile in your project's root
- </div>
- <pre class="highlight ruby"><span class="n">source</span> <span class="s1">'http://rubygems.org'</span>&#x000A;<span class="n">gem</span> <span class="s1">'nokogiri'</span>&#x000A;<span class="n">gem</span> <span class="s1">'rack'</span><span class="p">,</span> <span class="s1">'~&gt;1.1'</span>&#x000A;<span class="n">gem</span> <span class="s1">'rspec'</span><span class="p">,</span> <span class="ss">:require</span> <span class="o">=&gt;</span> <span class="s1">'spec'</span></pre>
- <a href="/v0.9/gemfile.html">Learn More: Gemfiles</a>
- </div>
- <div class='bullet'>
- <div class='description'>
- Install all of the required gems from your specified sources
- </div>
- <pre class="highlight plaintext">$ bundle install&#x000A;$ git add Gemfile</pre>
- <a href="/v0.9/bundle_install.html">Learn More: bundle install</a>
- </div>
- <div class='bullet'>
- <div class='description'>
- Inside your app, load up the bundled environment
- </div>
- <pre class="highlight ruby"><span class="nb">require</span> <span class="s1">'rubygems'</span>&#x000A;<span class="nb">require</span> <span class="s1">'bundler'</span>&#x000A;<span class="no">Bundler</span><span class="p">.</span><span class="nf">setup</span>&#x000A;&#x000A;<span class="nb">require</span> <span class="s1">'nokogiri'</span>&#x000A;<span class="c1"># any other requires you might need</span></pre>
- <a href="/v0.9/bundler_setup.html">Learn More: Bundler.setup</a>
- </div>
- <div class='bullet'>
- <div class='description'>
- Run a script provided by a bundled gem
- </div>
- <pre class="highlight plaintext">$ bundle exec rackup&#x000A;</pre>
- </div>
- <div class='bullet'>
- <div class='description'>
- When you're ready to share your application or deploy it, lock down all the versions of the gems you're using
- </div>
- <pre class="highlight plaintext">$ bundle lock&#x000A;$ git add Gemfile.lock</pre>
- <a href="/v0.9/bundle_lock.html">Learn more: bundle lock</a>
- </div>
- </div>
- <h2>Using Bundler with Frameworks</h2>
- <div class='contents'>
- <div class='bullet'>
- <div class='description'>
- Bundler works out of the box with Rails 3. Once you understand the basics of using bundler, you know everything you need to know.
- <a href="/v0.9/rails3.html">Using Bundler with Rails 3</a>
- </div>
- </div>
- <div class='bullet'>
- <div class='description'>
- Bundler works with Rails 2.3 with a small change to boot.rb and adding a preinitializer.rb.
- <a href="/v0.9/rails23.html">Using Bundler with Rails 2.3</a>
- </div>
- </div>
- <!-- .bullet -->
- <!-- .description -->
- <!-- Setting up Sinatra to use Bundler is as simple as using Bundler itself. -->
- <!-- = link_to 'Using Bundler with Sinatra', 'sinatra.html' -->
- </div>
- <h2>Checking Out an Application With a Gemfile</h2>
- <div class='contents'>
- <div class='bullet'>
- <div class='description'>
- Install the required gems
- </div>
- <pre class="highlight plaintext">$ bundle install</pre>
- <a href="/v0.9/bundle_install.html">Learn More: bundle install</a>
- </div>
- </div>
- <h2>Digging Further</h2>
- <div class='contents'>
- <div class='bullet'>
- <div class='description'>
- Store all of the required gems in your application. All future installs will get gems from this cache, bypassing rubygems.org
- </div>
- <pre class="highlight plaintext">$ bundle package</pre>
- <a href="/v0.9/bundle_package.html">Learn More: bundle package</a>
- </div>
- <div class='bullet'>
- <div class='description'>
- Put dependencies in a group, so they can be ignored at install time or required together in your application
- </div>
- <pre class="highlight ruby"><span class="n">group</span> <span class="ss">:development</span> <span class="k">do</span>&#x000A; <span class="n">gem</span> <span class="s1">'wirble'</span>&#x000A;<span class="k">end</span></pre>
- <a href="/v0.9/groups.html">Learn more: Groups</a>
- </div>
- <div class='bullet'>
- <div class='description'>
- Use a gem that is stored in git and has a .gemspec at its root. Gemspecs with bins or C extensions are supported
- </div>
- <pre class="highlight ruby"><span class="n">gem</span> <span class="s1">'nokogiri'</span><span class="p">,</span> <span class="ss">:git</span> <span class="o">=&gt;</span> <span class="s1">'https://github.com/tenderlove/nokogiri.git'</span></pre>
- <a href="/v0.9/git.html">Learn more: Git</a>
- </div>
- <div class='bullet'>
- <div class='description'>
- Use a gem that you are actively developing on your file system
- </div>
- <pre class="highlight ruby"><span class="n">gem</span> <span class="s1">'nokogiri'</span><span class="p">,</span> <span class="ss">:path</span> <span class="o">=&gt;</span> <span class="s1">'~/Code/nokogiri'</span>&#x000A;</pre>
- </div>
- <div class='bullet'>
- <div class='description'>
- Install gems to a different location
- (the default is ~/.bundle)
- </div>
- <div class='how'>
- <pre class="highlight plaintext">$ bundle install vendor --disable-shared-gems</pre>
- <div class='notes'>
- By specifying --disable-shared-gems, you are telling bundler to install the gems into vendor, even if they are already installed in the system
- </div>
- </div>
- <a href="/v0.9/bundle_install.html">Learn More: bundle install</a>
- </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 class="current" 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 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>
diff --git a/v0.9/rails23.html b/v0.9/rails23.html
deleted file mode 100644
index 0ed6444413..0000000000
--- a/v0.9/rails23.html
+++ /dev/null
@@ -1,99 +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'>
- <div id='intro'>
- Rails 2.3 comes with its own gem handling. We're going to override that and replace it with support for Bundler.
- </div>
- <h2>Using Bundler with Rails 2.3</h2>
- <div class='contents'>
- <div class='bullet'>
- <div class='description'>
- If you don't have a Rails 2.3 app yet, generate one
- </div>
- <pre class="highlight plaintext">$ rails myapp&#x000A;$ cd myapp&#x000A;</pre>
- </div>
- <div class='bullet'>
- <div class='description'>
- Insert the following code in config/boot.rb, right above the line `Rails.boot!`
- </div>
- <pre class="highlight ruby"><span class="k">class</span> <span class="nc">Rails</span><span class="o">::</span><span class="no">Boot</span>&#x000A; <span class="k">def</span> <span class="nf">run</span>&#x000A; <span class="n">load_initializer</span>&#x000A;&#x000A; <span class="no">Rails</span><span class="o">::</span><span class="no">Initializer</span><span class="p">.</span><span class="nf">class_eval</span> <span class="k">do</span>&#x000A; <span class="k">def</span> <span class="nf">load_gems</span>&#x000A; <span class="vi">@bundler_loaded</span> <span class="o">||=</span> <span class="no">Bundler</span><span class="p">.</span><span class="nf">require</span> <span class="ss">:default</span><span class="p">,</span> <span class="no">Rails</span><span class="p">.</span><span class="nf">env</span>&#x000A; <span class="k">end</span>&#x000A; <span class="k">end</span>&#x000A;&#x000A; <span class="no">Rails</span><span class="o">::</span><span class="no">Initializer</span><span class="p">.</span><span class="nf">run</span><span class="p">(</span><span class="ss">:set_load_path</span><span class="p">)</span>&#x000A; <span class="k">end</span>&#x000A;<span class="k">end</span>&#x000A;</pre>
- </div>
- <div class='bullet'>
- <div class='description'>
- Create a new file <code>config/preinitializer.rb</code> and insert the following
- </div>
- <pre class="highlight ruby"><span class="k">begin</span>&#x000A; <span class="nb">require</span> <span class="s1">'rubygems'</span>&#x000A; <span class="nb">require</span> <span class="s1">'bundler'</span>&#x000A;<span class="k">rescue</span> <span class="no">LoadError</span>&#x000A; <span class="k">raise</span> <span class="s2">"Could not load the bundler gem. Install it with `gem install bundler`."</span>&#x000A;<span class="k">end</span>&#x000A;&#x000A;<span class="k">if</span> <span class="no">Gem</span><span class="o">::</span><span class="no">Version</span><span class="p">.</span><span class="nf">new</span><span class="p">(</span><span class="no">Bundler</span><span class="o">::</span><span class="no">VERSION</span><span class="p">)</span> <span class="o">&lt;=</span> <span class="no">Gem</span><span class="o">::</span><span class="no">Version</span><span class="p">.</span><span class="nf">new</span><span class="p">(</span><span class="s2">"0.9.24"</span><span class="p">)</span>&#x000A; <span class="k">raise</span> <span class="no">RuntimeError</span><span class="p">,</span> <span class="s2">"Your bundler version is too old."</span> <span class="o">+</span>&#x000A; <span class="s2">"Run `gem install bundler` to upgrade."</span>&#x000A;<span class="k">end</span>&#x000A;&#x000A;<span class="k">begin</span>&#x000A; <span class="c1"># Set up load paths for all bundled gems</span>&#x000A; <span class="no">ENV</span><span class="o">[</span><span class="s2">"BUNDLE_GEMFILE"</span><span class="o">]</span> <span class="o">=</span> <span class="no">File</span><span class="p">.</span><span class="nf">expand_path</span><span class="p">(</span><span class="s2">"../../Gemfile"</span><span class="p">,</span> <span class="kp">__FILE__</span><span class="p">)</span>&#x000A; <span class="no">Bundler</span><span class="p">.</span><span class="nf">setup</span>&#x000A;<span class="k">rescue</span> <span class="no">Bundler</span><span class="o">::</span><span class="no">GemNotFound</span>&#x000A; <span class="k">raise</span> <span class="no">RuntimeError</span><span class="p">,</span> <span class="s2">"Bundler couldn't find some gems."</span> <span class="o">+</span>&#x000A; <span class="s2">"Did you run `bundle install`?"</span>&#x000A;<span class="k">end</span>&#x000A;</pre>
- </div>
- <div class='bullet'>
- <div class='description'>
- Get all config.gem declarations from your application, and place them into the Gemfile. If you have declarations in development.rb, for instance, place them in a named group. Make sure to include Rails itself and at least one source
- </div>
- <pre class="highlight ruby"><span class="n">source</span> <span class="ss">:gemcutter</span>&#x000A;<span class="n">gem</span> <span class="s1">'rails'</span><span class="p">,</span> <span class="s1">'~&gt; 2.3.5'</span>&#x000A;<span class="n">gem</span> <span class="s1">'sqlite3-ruby'</span><span class="p">,</span> <span class="ss">:require</span> <span class="o">=&gt;</span> <span class="s1">'sqlite3'</span>&#x000A;&#x000A;<span class="c1"># bundler requires these gems in all environments</span>&#x000A;<span class="c1"># gem 'nokogiri', '1.4.2'</span>&#x000A;<span class="c1"># gem 'geokit'</span>&#x000A;&#x000A;<span class="n">group</span> <span class="ss">:development</span> <span class="k">do</span>&#x000A; <span class="c1"># bundler requires these gems in development</span>&#x000A; <span class="c1"># gem 'rails-footnotes'</span>&#x000A;<span class="k">end</span>&#x000A;&#x000A;<span class="n">group</span> <span class="ss">:test</span> <span class="k">do</span>&#x000A; <span class="c1"># bundler requires these gems while running tests</span>&#x000A; <span class="c1"># gem 'rspec'</span>&#x000A; <span class="c1"># gem 'faker'</span>&#x000A;<span class="k">end</span></pre>
- <a href="/v0.9/groups.html">Learn More: Groups</a>
- </div>
- <div class='bullet'>
- <div class='description'>
- Once you have everything set up, you can use script/console, script/server, and other Rake tasks as usual. From this point on, you can follow the instructions in the Rails 3 guide
- </div>
- <pre class="highlight plaintext">$ rake db:migrate</pre>
- <a href="/v0.9/rails3.html#shared_with_23">Learn More: Rails 3</a>
- </div>
- <div class='bullet'>
- <div class='description'>
- Don't forget that non-Rails commands must be executed with bundle exec
- </div>
- <pre class="highlight plaintext">$ bundle exec cucumber</pre>
- </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 class="current" 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 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>
diff --git a/v0.9/rails3.html b/v0.9/rails3.html
deleted file mode 100644
index c796a63958..0000000000
--- a/v0.9/rails3.html
+++ /dev/null
@@ -1,145 +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'>
- <div id='intro'>
- Rails 3 comes with baked in support with bundler.
- </div>
- <h2>Using Bundler with Rails 3</h2>
- <div class='contents'>
- <div class='bullet'>
- <div class='description'>
- Install Rails as you normally would. Use sudo if you would normally use sudo to install gems.
- </div>
- <div class='how'>
- <pre class="highlight plaintext">$ gem install rails</pre>
- <div class='notes'>
- We recommend using rvm for dependable Ruby installations, especially if you are switching between different versions of Ruby
- </div>
- </div>
- </div>
- <div class='bullet'>
- <div class='description'>
- Generate a Rails app as usual
- </div>
- <pre class="highlight plaintext">$ rails new myapp&#x000A;$ cd myapp&#x000A;</pre>
- </div>
- <div class='bullet'>
- <div class='description'>
- Run the server. Bundler is transparently managing your dependencies!
- </div>
- <pre class="highlight plaintext">$ rails server&#x000A;</pre>
- </div>
- <div class='bullet'>
- <div class='description'>
- Add new dependencies to your Gemfile as you need them.
- </div>
- <pre class="highlight ruby"><span class="n">gem</span> <span class="s1">'nokogiri'</span>&#x000A;<span class="n">gem</span> <span class="s1">'geokit'</span>&#x000A;</pre>
- </div>
- <div class='bullet'>
- <div class='description'>
- If you want a dependency to be loaded only in a certain Rails environment, place it in a group named after that Rails environment
- </div>
- <pre class="highlight ruby"><span class="n">group</span> <span class="ss">:test</span> <span class="k">do</span>&#x000A; <span class="n">gem</span> <span class="s1">'rspec'</span>&#x000A; <span class="n">gem</span> <span class="s1">'faker'</span>&#x000A;<span class="k">end</span>&#x000A;</pre>
- </div>
- <div class='bullet' id='shared_with_23'>
- <div class='description'>
- You can place a dependency in multiple groups at once as well
- </div>
- <pre class="highlight ruby"><span class="n">group</span> <span class="ss">:development</span><span class="p">,</span> <span class="ss">:test</span> <span class="k">do</span>&#x000A; <span class="n">gem</span> <span class="s1">'wirble'</span>&#x000A; <span class="n">gem</span> <span class="s1">'ruby-debug'</span>&#x000A;<span class="k">end</span></pre>
- <a href="/v0.9/groups.html">Learn More: Groups</a>
- </div>
- <div class='bullet'>
- <div class='description'>
- After adding a dependency, if it is not yet installed, install it
- </div>
- <div class='how'>
- <pre class="highlight plaintext">$ bundle install</pre>
- <div class='notes'>
- This will update all dependencies in your Gemfile to the latest versions that do not conflict with other dependencies
- </div>
- </div>
- </div>
- <div class='bullet'>
- <div class='description'>
- Don't forget that non-Rails commands must be executed with bundle exec
- </div>
- <pre class="highlight plaintext">$ bundle exec cucumber&#x000A;</pre>
- </div>
- </div>
- <h2>Sharing</h2>
- <div class='contents'>
- <div class='bullet'>
- <div class='description'>
- When you're ready to share your application, lock down your dependencies to the specific
- versions you are using now. This will ensure that other machines use exactly these gems,
- and are not affected by new releases of gems in the interim
- </div>
- <pre class="highlight plaintext">$ bundle lock&#x000A;$ git add Gemfile.lock</pre>
- <a href="/v0.9/bundle_lock.html">Learn More: bundle lock</a>
- </div>
- <div class='bullet'>
- <div class='description'>
- After locking your dependencies you may not modify the Gemfile without unlocking first
- </div>
- <pre class="highlight plaintext">$ bundle unlock&#x000A;</pre>
- </div>
- <div class='bullet'>
- <div class='description'>
- If you've updated your Gemfile and want to install the new gems and re-lock once the new
- gems are finished installing
- </div>
- <pre class="highlight plaintext">$ bundle install --relock</pre>
- </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 class="current" 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 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>
diff --git a/v0.9/rubygems.html b/v0.9/rubygems.html
deleted file mode 100644
index 2725e2ab71..0000000000
--- a/v0.9/rubygems.html
+++ /dev/null
@@ -1,97 +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>Using Bundler with Rubygem gemspecs</h2>
- <div class='contents'>
- <div class='bullet'>
- <div class='description'>
- If you already have a gem with a gemspec, you can generate a Gemfile for your gem.
- </div>
- <div class='how'>
- <pre class="highlight plaintext">$ bundle init</pre>
- <div class='notes'>
- If you are creating a new gem, simply create a new Gemfile. Otherwise, add the following to your new Gemfile
- <pre class="highlight ruby"><span class="n">gemspec</span>&#x000A;</pre>
- </div>
- </div>
- </div>
- <div class='bullet'>
- <div class='description'>
- Runtime dependencies in your gemspec are treated like base dependencies, and development dependencies are added by default to the group, <code>:development</code>. You can change that group with the <code>:development_group</code> option
- </div>
- <pre class="highlight ruby"><span class="n">gemspec</span> <span class="ss">:development_group</span> <span class="o">=&gt;</span> <span class="ss">:dev</span>&#x000A;</pre>
- </div>
- <div class='bullet'>
- <div class='description'>
- As well, you can point to a specific gemspec using <code>:path</code>. If your gemspec is in <code>/gemspec/path</code>, use
- <pre class="highlight ruby"><span class="n">gemspec</span> <span class="ss">:path</span> <span class="o">=&gt;</span> <span class="s1">'/gemspec/path'</span>&#x000A;</pre>
- </div>
- </div>
- <div class='bullet'>
- <div class='description'>
- If you have multiple gemspecs in the same directory, specify which one you'd like to reference using <code>:name</code>
- <pre class="highlight ruby"><span class="n">gemspec</span> <span class="ss">:name</span> <span class="o">=&gt;</span> <span class="s1">'my_awesome_gem'</span></pre>
- <div class='notes'>
- This will use <code>my_awesome_gem.gemspec</code>
- </div>
- </div>
- </div>
- <div class='bullet'>
- <div class='description'>
- That's it! Use bundler when developing your gem, and otherwise, use gemspecs normally!
- </div>
- <pre class="highlight plaintext">$ gem build my_gem.gemspec</pre>
- </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 class="current" 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 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>
diff --git a/v0.9/sinatra.html b/v0.9/sinatra.html
deleted file mode 100644
index 909ad36769..0000000000
--- a/v0.9/sinatra.html
+++ /dev/null
@@ -1,76 +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>Using Bundler with Sinatra</h2>
- <div class='contents'>
- <div class='bullet'>
- <div class='description'>
- To use bundler with a Sinatra application, you only need to do two things. First, create a Gemfile.
- </div>
- <pre class="highlight ruby"><span class="n">gem</span> <span class="s1">'sinatra'</span>&#x000A;</pre>
- </div>
- <div class='bullet'>
- <div class='description'>
- Then, set up your config.ru file to load the bundle before it loads your Sinatra app.
- </div>
- <pre class="highlight ruby"><span class="nb">require</span> <span class="s1">'rubygems'</span>&#x000A;<span class="nb">require</span> <span class="s1">'bundler'</span>&#x000A;<span class="no">Bundler</span><span class="p">.</span><span class="nf">setup</span>&#x000A;&#x000A;<span class="nb">require</span> <span class="s1">'sinatra'</span>&#x000A;<span class="nb">require</span> <span class="s1">'my_sinatra_app'</span>&#x000A;<span class="n">run</span> <span class="no">MySinatraApp</span>&#x000A;</pre>
- </div>
- <div class='bullet'>
- <div class='description'>
- Start your development server with rackup, and Sinatra will be loaded via Bundler.
- </div>
- <pre class="highlight plaintext">$ rackup</pre>
- </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 class="current" 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 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>