diff options
Diffstat (limited to 'v0.9')
-rw-r--r-- | v0.9/bundle_install.html | 120 | ||||
-rw-r--r-- | v0.9/bundle_lock.html | 76 | ||||
-rw-r--r-- | v0.9/bundle_package.html | 75 | ||||
-rw-r--r-- | v0.9/bundler_setup.html | 71 | ||||
-rw-r--r-- | v0.9/deploying.html | 82 | ||||
-rw-r--r-- | v0.9/gemfile.html | 100 | ||||
-rw-r--r-- | v0.9/git.html | 104 | ||||
-rw-r--r-- | v0.9/groups.html | 97 | ||||
-rw-r--r-- | v0.9/index.html | 181 | ||||
-rw-r--r-- | v0.9/rails23.html | 99 | ||||
-rw-r--r-- | v0.9/rails3.html | 145 | ||||
-rw-r--r-- | v0.9/rubygems.html | 97 | ||||
-rw-r--r-- | v0.9/sinatra.html | 76 |
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
</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
$ git add Gemfile.lock
</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
</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
</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>
<span class="nb">require</span> <span class="s1">'bundler'</span>
<span class="no">Bundler</span><span class="p">.</span><span class="nf">setup</span>
<span class="nb">require</span> <span class="s1">'nokogiri'</span>
</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>
<span class="nb">require</span> <span class="s1">'bundler'</span>
<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>
<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" >> .gitignore
$ git add Gemfile Gemfile.lock .gitignore
$ git commit -m "Add bundler"
</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>
<span class="n">source</span> <span class="s1">'http://rubygems.org'</span>
<span class="n">source</span> <span class="ss">:rubyforge</span>
<span class="n">source</span> <span class="s1">'http://gems.rubyforge.org'</span>
<span class="n">source</span> <span class="ss">:gemcutter</span>
<span class="n">source</span> <span class="s1">'http://gemcutter.org'</span>
</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>
<span class="n">gem</span> <span class="s1">'rails'</span><span class="p">,</span> <span class="s1">'3.0.0.beta3'</span>
<span class="n">gem</span> <span class="s1">'rack'</span><span class="p">,</span> <span class="s1">'>=1.0'</span>
<span class="n">gem</span> <span class="s1">'thin'</span><span class="p">,</span> <span class="s1">'~>1.1'</span>
</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">=></span> <span class="s1">'spec'</span>
<span class="n">gem</span> <span class="s1">'sqlite3'</span>
</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">=></span> <span class="s1">'https://github.com/tenderlove/nokogiri.git'</span><span class="p">,</span> <span class="ss">:branch</span> <span class="o">=></span> <span class="s1">'1.4'</span>

<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">=></span> <span class="s1">'v0.13.4'</span>
<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">=></span> <span class="s1">'~/sw/gems/nokogiri'</span>
</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">=></span> <span class="ss">:development</span>
<span class="n">gem</span> <span class="s1">'ruby-debug'</span><span class="p">,</span> <span class="ss">:group</span> <span class="o">=></span> <span class="o">[</span><span class="ss">:development</span><span class="p">,</span> <span class="ss">:test</span><span class="o">]</span>

<span class="n">group</span> <span class="ss">:test</span> <span class="k">do</span>
 <span class="n">gem</span> <span class="s1">'rspec'</span>
<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">=></span> <span class="s1">'https://github.com/tenderlove/nokogiri.git'</span>
</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">=></span> <span class="s1">'https://github.com/peritor/deep_merge.git'</span>
</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>
<span class="n">gem</span> <span class="s1">'railties'</span>
<span class="n">gem</span> <span class="s1">'action_pack'</span>
<span class="n">gem</span> <span class="s1">'active_model'</span>
<span class="k">end</span>
</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">=></span> <span class="s1">'4aded'</span>

<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">=></span> <span class="s1">'2-3-stable'</span>

<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">=></span> <span class="s1">'v2.3.5'</span>
</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">=></span> <span class="s1">'https://github.com/tenderlove/nokogiri.git'</span><span class="p">,</span> <span class="ss">:ref</span> <span class="o">=></span> <span class="s1">'0eec4'</span>
</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">=></span> <span class="s1">'https://github.com/tenderlove/nokogiri.git'</span>
<span class="n">gem</span> <span class="s1">'nokogiri'</span><span class="p">,</span> <span class="ss">:git</span> <span class="o">=></span> <span class="s1">'git@github.com:tenderlove/nokogiri.git'</span>
<span class="n">gem</span> <span class="s1">'nokogiri'</span><span class="p">,</span> <span class="ss">:git</span> <span class="o">=></span> <span class="s1">'git://github.com/tenderlove/nokogiri.git'</span>
</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>
<span class="n">gem</span> <span class="s1">'nokogiri'</span>
<span class="n">gem</span> <span class="s1">'sinatra'</span>

<span class="n">gem</span> <span class="s1">'wirble'</span><span class="p">,</span> <span class="ss">:group</span> <span class="o">=></span> <span class="ss">:development</span>

<span class="n">group</span> <span class="ss">:test</span> <span class="k">do</span>
 <span class="n">gem</span> <span class="s1">'rspec'</span>
 <span class="n">gem</span> <span class="s1">'faker'</span>
<span class="k">end</span>
</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
</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>
</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>
</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>
<span class="nb">require</span> <span class="s1">'bundler'</span>
<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>
<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
</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
</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>
<span class="n">gem</span> <span class="s1">'nokogiri'</span>
<span class="n">gem</span> <span class="s1">'rack'</span><span class="p">,</span> <span class="s1">'~>1.1'</span>
<span class="n">gem</span> <span class="s1">'rspec'</span><span class="p">,</span> <span class="ss">:require</span> <span class="o">=></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
$ 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>
<span class="nb">require</span> <span class="s1">'bundler'</span>
<span class="no">Bundler</span><span class="p">.</span><span class="nf">setup</span>

<span class="nb">require</span> <span class="s1">'nokogiri'</span>
<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
</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
$ 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>
 <span class="n">gem</span> <span class="s1">'wirble'</span>
<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">=></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">=></span> <span class="s1">'~/Code/nokogiri'</span>
</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
$ cd myapp
</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>
 <span class="k">def</span> <span class="nf">run</span>
 <span class="n">load_initializer</span>

 <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>
 <span class="k">def</span> <span class="nf">load_gems</span>
 <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>
 <span class="k">end</span>
 <span class="k">end</span>

 <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>
 <span class="k">end</span>
<span class="k">end</span>
</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>
 <span class="nb">require</span> <span class="s1">'rubygems'</span>
 <span class="nb">require</span> <span class="s1">'bundler'</span>
<span class="k">rescue</span> <span class="no">LoadError</span>
 <span class="k">raise</span> <span class="s2">"Could not load the bundler gem. Install it with `gem install bundler`."</span>
<span class="k">end</span>

<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"><=</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>
 <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>
 <span class="s2">"Run `gem install bundler` to upgrade."</span>
<span class="k">end</span>

<span class="k">begin</span>
 <span class="c1"># Set up load paths for all bundled gems</span>
 <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>
 <span class="no">Bundler</span><span class="p">.</span><span class="nf">setup</span>
<span class="k">rescue</span> <span class="no">Bundler</span><span class="o">::</span><span class="no">GemNotFound</span>
 <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>
 <span class="s2">"Did you run `bundle install`?"</span>
<span class="k">end</span>
</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>
<span class="n">gem</span> <span class="s1">'rails'</span><span class="p">,</span> <span class="s1">'~> 2.3.5'</span>
<span class="n">gem</span> <span class="s1">'sqlite3-ruby'</span><span class="p">,</span> <span class="ss">:require</span> <span class="o">=></span> <span class="s1">'sqlite3'</span>

<span class="c1"># bundler requires these gems in all environments</span>
<span class="c1"># gem 'nokogiri', '1.4.2'</span>
<span class="c1"># gem 'geokit'</span>

<span class="n">group</span> <span class="ss">:development</span> <span class="k">do</span>
 <span class="c1"># bundler requires these gems in development</span>
 <span class="c1"># gem 'rails-footnotes'</span>
<span class="k">end</span>

<span class="n">group</span> <span class="ss">:test</span> <span class="k">do</span>
 <span class="c1"># bundler requires these gems while running tests</span>
 <span class="c1"># gem 'rspec'</span>
 <span class="c1"># gem 'faker'</span>
<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
$ cd myapp
</pre> - </div> - <div class='bullet'> - <div class='description'> - Run the server. Bundler is transparently managing your dependencies! - </div> - <pre class="highlight plaintext">$ rails server
</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>
<span class="n">gem</span> <span class="s1">'geokit'</span>
</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>
 <span class="n">gem</span> <span class="s1">'rspec'</span>
 <span class="n">gem</span> <span class="s1">'faker'</span>
<span class="k">end</span>
</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>
 <span class="n">gem</span> <span class="s1">'wirble'</span>
 <span class="n">gem</span> <span class="s1">'ruby-debug'</span>
<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
</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
$ 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
</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>
</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">=></span> <span class="ss">:dev</span>
</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">=></span> <span class="s1">'/gemspec/path'</span>
</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">=></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>
</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>
<span class="nb">require</span> <span class="s1">'bundler'</span>
<span class="no">Bundler</span><span class="p">.</span><span class="nf">setup</span>

<span class="nb">require</span> <span class="s1">'sinatra'</span>
<span class="nb">require</span> <span class="s1">'my_sinatra_app'</span>
<span class="n">run</span> <span class="no">MySinatraApp</span>
</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> |