Skip to content

Commit

Permalink
David's post about gem settings
Browse files Browse the repository at this point in the history
  • Loading branch information
David Padilla committed Sep 17, 2010
1 parent 74bcb4e commit 3985ec0
Show file tree
Hide file tree
Showing 11 changed files with 299 additions and 95 deletions.
29 changes: 29 additions & 0 deletions _posts/2010-09-17-installing-gems-skipping-rdoc-and-ri.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
layout: post
title: Installing gems skipping RDoc and RI
author: David Padilla
email: david@crowdint.com
avatar: d32b52ec6403614b1adf3e648cbbe584
published: true
---

Because, let's be honest, these days, we're always connected to the internet.

Personally, I've never used the RDoc included on gem installations.

If I need info about a class, method, module, I ask uncle *Google*.

Besides, it gets kind of annoying, specially when there's gems that take longer to generate the RDoc, than it takes for the actual gem to install.

So, here's a tip for those who don't want to wait for gem to install RDoc you'll never use.

It is as simple as, opening or creating a *.gemrc* file in your home directory, and adding the following line:

{% highlight bash %}
gem: --no-rdoc --no-ri
{% endhighlight %}

And that's it. You're setting those options as default when using the gem command. So, the next time you install a gem, it will skip the part where it compiles the gem's documentation.

There you go, enjoy!

9 changes: 0 additions & 9 deletions _posts/INCOMPLETE-a-helpful-gem-setting.markdown

This file was deleted.

10 changes: 5 additions & 5 deletions _site/2010/07/11/git-initial-configuration.html
Original file line number Diff line number Diff line change
Expand Up @@ -136,16 +136,16 @@ <h2>Add color to your life</h2>
<h1>Related Posts</h1>
<ul class="archives">

<li><span><b>06 Aug 2010</b></span> &raquo; <a href="/2010/08/06/our-git-workflow.html">Our git workflow</a></li>

<li><span><b>02 Aug 2010</b></span> &raquo; <a href="/2010/08/02/instant-blog-using-jekyll-and-heroku.html">Instant blog using Jekyll and Heroku</a></li>

<li><span><b>06 Sep 2010</b></span> &raquo; <a href="/2010/09/06/a-simple-way-to-setup-a-class-for-global-values.html">A simple way to setup a class for global values</a></li>
<li><span><b>28 Jul 2010</b></span> &raquo; <a href="/2010/07/28/getting-started-with-rvm.html">Getting started with Ruby Version Manager (RVM)</a></li>

<li><span><b>31 Aug 2010</b></span> &raquo; <a href="/2010/08/31/open-and-watch-specific-git-branches-using-gitx.html">Open and watch specific git branches using gitx</a></li>

<li><span><b>06 Aug 2010</b></span> &raquo; <a href="/2010/08/06/our-git-workflow.html">Our git workflow</a></li>

<li><span><b>10 Sep 2010</b></span> &raquo; <a href="/2010/09/10/customize-your-generators-workflow.html">Customize your Generators Workflow in Rails 3.0.0</a></li>

<li><span><b>02 Aug 2010</b></span> &raquo; <a href="/2010/08/02/instant-blog-using-jekyll-and-heroku.html">Instant blog using Jekyll and Heroku</a></li>

</ul>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions _site/2010/08/02/instant-blog-using-jekyll-and-heroku.html
Original file line number Diff line number Diff line change
Expand Up @@ -222,15 +222,15 @@ <h2>Deploying to Heroku</h2>
<h1>Related Posts</h1>
<ul class="archives">

<li><span><b>28 Jul 2010</b></span> &raquo; <a href="/2010/07/28/getting-started-with-rvm.html">Getting started with Ruby Version Manager (RVM)</a></li>

<li><span><b>10 Sep 2010</b></span> &raquo; <a href="/2010/09/10/customize-your-generators-workflow.html">Customize your Generators Workflow in Rails 3.0.0</a></li>

<li><span><b>28 Jul 2010</b></span> &raquo; <a href="/2010/07/28/getting-started-with-rvm.html">Getting started with Ruby Version Manager (RVM)</a></li>

<li><span><b>18 Jul 2010</b></span> &raquo; <a href="/2010/07/18/setting-up-automation-with-cucumber-rspec-autotest.html">Setting up Automation with Cucumber, RSpec, Autotest in RoR 2.3.8</a></li>

<li><span><b>26 Aug 2010</b></span> &raquo; <a href="/2010/08/26/thin-vs-unicorn.html">Benchmarking thin vs unicorn</a></li>

<li><span><b>11 Jul 2010</b></span> &raquo; <a href="/2010/07/11/git-initial-configuration.html">First Things First... Our initial git configuration</a></li>
<li><span><b>06 Aug 2010</b></span> &raquo; <a href="/2010/08/06/our-git-workflow.html">Our git workflow</a></li>

</ul>
</div>
Expand Down
8 changes: 4 additions & 4 deletions _site/2010/08/06/our-git-workflow.html
Original file line number Diff line number Diff line change
Expand Up @@ -164,16 +164,16 @@ <h1>Our git workflow</h1>
<h1>Related Posts</h1>
<ul class="archives">

<li><span><b>11 Jul 2010</b></span> &raquo; <a href="/2010/07/11/git-initial-configuration.html">First Things First... Our initial git configuration</a></li>

<li><span><b>18 Jul 2010</b></span> &raquo; <a href="/2010/07/18/setting-up-automation-with-cucumber-rspec-autotest.html">Setting up Automation with Cucumber, RSpec, Autotest in RoR 2.3.8</a></li>

<li><span><b>28 Jul 2010</b></span> &raquo; <a href="/2010/07/28/getting-started-with-rvm.html">Getting started with Ruby Version Manager (RVM)</a></li>

<li><span><b>31 Aug 2010</b></span> &raquo; <a href="/2010/08/31/open-and-watch-specific-git-branches-using-gitx.html">Open and watch specific git branches using gitx</a></li>

<li><span><b>26 Aug 2010</b></span> &raquo; <a href="/2010/08/26/thin-vs-unicorn.html">Benchmarking thin vs unicorn</a></li>

<li><span><b>11 Jul 2010</b></span> &raquo; <a href="/2010/07/11/git-initial-configuration.html">First Things First... Our initial git configuration</a></li>

<li><span><b>02 Aug 2010</b></span> &raquo; <a href="/2010/08/02/instant-blog-using-jekyll-and-heroku.html">Instant blog using Jekyll and Heroku</a></li>

</ul>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,16 +142,16 @@ <h2>Enjoy!</h2>
<h1>Related Posts</h1>
<ul class="archives">

<li><span><b>18 Jul 2010</b></span> &raquo; <a href="/2010/07/18/setting-up-automation-with-cucumber-rspec-autotest.html">Setting up Automation with Cucumber, RSpec, Autotest in RoR 2.3.8</a></li>

<li><span><b>17 Aug 2010</b></span> &raquo; <a href="/2010/08/17/use-a-project-specific-ruby-version-rvm.html">Use a project specific Ruby version with RVM</a></li>

<li><span><b>11 Jul 2010</b></span> &raquo; <a href="/2010/07/11/git-initial-configuration.html">First Things First... Our initial git configuration</a></li>
<li><span><b>18 Jul 2010</b></span> &raquo; <a href="/2010/07/18/setting-up-automation-with-cucumber-rspec-autotest.html">Setting up Automation with Cucumber, RSpec, Autotest in RoR 2.3.8</a></li>

<li><span><b>28 Jul 2010</b></span> &raquo; <a href="/2010/07/28/getting-started-with-rvm.html">Getting started with Ruby Version Manager (RVM)</a></li>

<li><span><b>10 Sep 2010</b></span> &raquo; <a href="/2010/09/10/customize-your-generators-workflow.html">Customize your Generators Workflow in Rails 3.0.0</a></li>

<li><span><b>11 Jul 2010</b></span> &raquo; <a href="/2010/07/11/git-initial-configuration.html">First Things First... Our initial git configuration</a></li>

</ul>
</div>
</div>
Expand Down
2 changes: 2 additions & 0 deletions _site/2010/09/10/customize-your-generators-workflow.html
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,8 @@ <h2>Generators</h2>
<div class="previous span-8"><a href="/2010/09/06/a-simple-way-to-setup-a-class-for-global-values.html"><< A simple way to setup a class for global values</a></div>


<div class="next span-8 last"><a href="/2010/09/17/installing-gems-skipping-rdoc-and-ri.html">Installing gems skipping RDoc and RI >></a></div>

</div>
</div>
<div class="post prepend-1">
Expand Down
163 changes: 163 additions & 0 deletions _site/2010/09/17/installing-gems-skipping-rdoc-and-ri.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Crowd Interactive Tech Blog :: Installing gems skipping RDoc and RI</title>
<link rel="stylesheet" href="/stylesheets/screen.css" type="text/css" media="screen, projection" />
<link rel="stylesheet" href="/stylesheets/print.css" type="text/css" media="print" />
<link rel="stylesheet" href="/stylesheets/styles.css" type="text/css" media="screen" />
<link rel="stylesheet" href="/stylesheets/syntax.css" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="RSS Feed for blog.crowdint.com" href="http://feeds.feedburner.com/CrowdInteractiveTechBlog" />
<!--[if lt IE 8]><link rel="stylesheet" href="css/blueprint/ie.css" type="text/css" media="screen, projection"><![endif]-->

<script type="text/javascript">

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-17527068-1']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

</script>

</head>
<body>
<div class="container">
<div id="empty-header">
<a href="/"><img src="/images/logo_03.png" id="logoHead" width="227" height="74" alt="LogoHead" /></a>
</div>
<div class="span-24 append-bottom testGlow">
<div class="round-top span-24">
&nbsp;
</div>
<div id="white-body" class="span-24">
<div class="left-side span-17">
<div class="post prepend-1">
<h1>Installing gems skipping RDoc and RI</h1>
<p class="author">
<span class="date"><b>Sep 17</b><br />2010</span>
</p>
<div class="body prepend-1 append-1">
<div class="gravatar span-3"><img src="http://www.gravatar.com/avatar/d32b52ec6403614b1adf3e648cbbe584" class="avatar" alt="Avatar" /></div>
<p>Because, let's be honest, these days, we're always connected to the internet.</p>

<p>Personally, I've never used the RDoc included on gem installations.</p>

<p>If I need info about a class, method, module, I ask uncle <em>Google</em>.</p>

<p>Besides, it gets kind of annoying, specially when there's gems that take longer to generate the RDoc, than it takes for the actual gem to install.</p>

<p>So, here's a tip for those who don't want to wait for gem to install RDoc you'll never use.</p>

<p>It is as simple as, opening or creating a <em>.gemrc</em> file in your home directory, and adding the following line:</p>

<div class="highlight"><pre><code class="bash">gem: --no-rdoc --no-ri
</code></pre>
</div>


<p>And that's it. You're setting those options as default when using the gem command. So, the next time you install a gem, it will skip the part where it compiles the gem's documentation.</p>

<p>There you go, enjoy!</p>

<div class="author_box">
<p><b>Author:</b> David Padilla | david@crowdint.com</p>
</div>
<div class="tweet">
<a href="http://twitter.com/share" class="twitter-share-button" data-count="none">Tweet</a>
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
</div>
<div id="disqus_thread"></div>
<script type="text/javascript">
/**
* var disqus_identifier; [Optional but recommended: Define a unique identifier (e.g. post id or slug) for this thread]
*/
// var disqus_developer = 1;
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://crowdinttech.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript=crowdinttech">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
</div>
<div class="nav_links span-16">

<div class="previous span-8"><a href="/2010/09/10/customize-your-generators-workflow.html"><< Customize your Generators Workflow in Rails 3.0.0</a></div>


</div>
</div>
<div class="post prepend-1">
<h1>Related Posts</h1>
<ul class="archives">

<li><span><b>18 Jul 2010</b></span> &raquo; <a href="/2010/07/18/setting-up-automation-with-cucumber-rspec-autotest.html">Setting up Automation with Cucumber, RSpec, Autotest in RoR 2.3.8</a></li>

<li><span><b>10 Sep 2010</b></span> &raquo; <a href="/2010/09/10/customize-your-generators-workflow.html">Customize your Generators Workflow in Rails 3.0.0</a></li>

<li><span><b>26 Aug 2010</b></span> &raquo; <a href="/2010/08/26/thin-vs-unicorn.html">Benchmarking thin vs unicorn</a></li>

<li><span><b>28 Jul 2010</b></span> &raquo; <a href="/2010/07/28/getting-started-with-rvm.html">Getting started with Ruby Version Manager (RVM)</a></li>

<li><span><b>02 Aug 2010</b></span> &raquo; <a href="/2010/08/02/instant-blog-using-jekyll-and-heroku.html">Instant blog using Jekyll and Heroku</a></li>

</ul>
</div>
</div>
<div class="right-side span-5 last prepend-1">
<h1><a href="/">Blog Home</a></h1>
<h1>About Crowd Interactive</h1>
<p class="append-1 about">Crowd Interactive is an American web design and development company that happens to work in Colima, Mexico... <a href="/about.html">Read More...</a></p>
<h1>Our Favorite Sites</h1>
<ul>
<li><a href="http://www.crowdint.com">Crowd Interactive</a></li>
<li><a href="http://rubyonrails.org">Ruby on Rails</a></li>
<li><a href="http://ruby-lang.org">Ruby-Lang</a></li>
<li><a href="http://github.com/crowdint">Github</a></li>
</ul>
<h1>Stuff we've built</h1>
<ul>
<li><a href="http://www.modcloth.com">ModCloth</a></li>
<li><a href="http://www.creativeallies.com">Creative Allies</a></li>
<li><a href="http://www.nameframe.com">Nameframe</a></li>
<li><a href="http://github.com/crowdint/rails3-jquery-autocomplete">Rails3-jQuery-Autocomplete</a></li>
<li><a href="http://github.com/crowdint/rankstar">rankstar</a></li>
<li><a href="http://github.com/crowdint/blog.crowdint.com">This site's source code</a></li>
</ul>
<h1>Older Posts</h1>
<ul>
<li><a href="/archive.html">Archive</a></li>
</ul>

Site Powered by <a href="http://github.com/mojombo/jekyll">Jekyll</a>

</div>
</div>
<div class="round-bottom span-24">
&nbsp;
</div>
</div>

</div>
<div id="footer">
<div class="copyContent" >
<p class="copy">Copyright &copy; 2010, Crowd Interactive. All rights reserved.</p>
</div>
</div>
<script type="text/javascript">
var disqus_shortname = 'crowdinttech';
(function () {
var s = document.createElement('script'); s.async = true;
s.src = 'http://disqus.com/forums/crowdinttech/count.js';
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
</script>
</body>
</html>
2 changes: 2 additions & 0 deletions _site/archive.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
<h1>Archives</h1>
<ul class="archives">

<li><span><b>17 Sep 2010</b></span> &raquo; <a href="/2010/09/17/installing-gems-skipping-rdoc-and-ri.html">Installing gems skipping RDoc and RI</a></li>

<li><span><b>10 Sep 2010</b></span> &raquo; <a href="/2010/09/10/customize-your-generators-workflow.html">Customize your Generators Workflow in Rails 3.0.0</a></li>

<li><span><b>06 Sep 2010</b></span> &raquo; <a href="/2010/09/06/a-simple-way-to-setup-a-class-for-global-values.html">A simple way to setup a class for global values</a></li>
Expand Down
Loading

0 comments on commit 3985ec0

Please sign in to comment.