<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,13 +1,12 @@
 require 'formula'
 
-# TODO de-version the include and lib directories
-
 class Ruby &lt;Formula
-  @url='ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p243.tar.gz'
-  @homepage='http://www.ruby-lang.org/en/'
-  @md5='515bfd965814e718c0943abf3dde5494'
+  url 'ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p243.tar.gz'
+  homepage 'http://www.ruby-lang.org/en/'
+  md5 '515bfd965814e718c0943abf3dde5494'
 
   depends_on 'readline'
+  skip_clean 'bin/ruby'
   
   def install
     ENV.gcc_4_2
@@ -17,12 +16,29 @@ class Ruby &lt;Formula
                           &quot;--enable-shared&quot;
     system &quot;make&quot;
     system &quot;make install&quot;
+
+    unless ARGV.include? '--enable-super-dupe'
+      Dir.chdir prefix
+      FileUtils.rm_rf Dir['lib/ruby/*/rubygems']
+      FileUtils.rm_rf Dir['lib/ruby/*/rake']
+      File.unlink 'bin/gem'
+      File.unlink 'bin/rake'
+      File.unlink man1+'rake.1'
+    end
   end
   
-  def skip_clean? path
-    # TODO only skip the clean for the files that need it, we didn't get a
-    # comment about why we're skipping the clean, so you'll need to figure
-    # that out first --mxcl
-    true
+  def caveats; &lt;&lt;-EOS
+By default we don't install the bundled Rake or RubyGems.
+
+This is because they both come with the system installed Ruby. You can upgrade
+them with `gem update --system`.
+
+If you really want them though do:
+
+    brew install ruby --force --enable-super-dupe
+
+If you disagree with this decision, please create an issue on GitHub as we 
+should discuss the matter.
+    EOS
   end
 end</diff>
      <filename>Library/Formula/ruby.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>03cfaa14635fffb3f4d2ded50027d39b3b5dfa0b</id>
    </parent>
  </parents>
  <author>
    <name>Max Howell</name>
    <email>max@methylblue.com</email>
  </author>
  <url>http://github.com/piranha/homebrew/commit/d0ed812b3dfa94507ac3c6c9b4a8ec54c1f3251f</url>
  <id>d0ed812b3dfa94507ac3c6c9b4a8ec54c1f3251f</id>
  <committed-date>2009-11-11T15:04:56-08:00</committed-date>
  <authored-date>2009-11-11T14:02:33-08:00</authored-date>
  <message>Don't install gem or rake

Because the system comes with them. Having two of these is just complicated.
They are both gems themselves, so gem that is already installed manages them.

Optional flag to install them anyway.</message>
  <tree>5e7139385cac5b722fe0df94d711531ecfac45b1</tree>
  <committer>
    <name>Max Howell</name>
    <email>max@methylblue.com</email>
  </committer>
</commit>
