<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -18,12 +18,15 @@ class RackRubygems &lt; Sinatra::Base
   end
 
   get '/gemlist.js' do
+    content_type 'text/javascript'
     specs, total_file_count = get_specs_and_file_count
     
     body = &quot;document.writeln('&lt;select style=\&quot;float:right;margin: 10px 10px 0 0 \&quot; onchange=\&quot;window.parent.location=this.value\&quot;&gt;');&quot;
     body &lt;&lt; &quot;document.writeln('&lt;option value=\&quot;/\&quot;&gt;Gems:&lt;/option&gt;');&quot;
     specs.each do |spec|
-      body &lt;&lt; &quot;document.writeln(\&quot;&lt;option value='#{spec['doc_path']}'&gt;#{spec['name']} - #{spec['version']}&lt;/option&gt;\&quot;);&quot;
+      if spec[&quot;rdoc_installed&quot;]
+        body &lt;&lt; &quot;document.writeln(\&quot;&lt;option value='#{spec['doc_path']}'&gt;#{spec['name']} - #{spec['version']}&lt;/option&gt;\&quot;);&quot;
+      end
     end
     body &lt;&lt; &quot;document.writeln('&lt;/select&gt;');&quot;
     body</diff>
      <filename>lib/rack_rubygems.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e0ac2980f1fe07f2d99abe4756c1183c309fb798</id>
    </parent>
  </parents>
  <author>
    <name>Jesse Newland</name>
    <email>jnewland@gmail.com</email>
  </author>
  <url>http://github.com/jnewland/sinatra-rubygems/commit/3a09f5713207cbc8334a805ab0386443e349c2aa</url>
  <id>3a09f5713207cbc8334a805ab0386443e349c2aa</id>
  <committed-date>2009-02-22T09:36:57-08:00</committed-date>
  <authored-date>2009-02-22T09:36:57-08:00</authored-date>
  <message>proper content type, and only show gems with rdoc installed</message>
  <tree>81a80bf0d92e9c45cf04e9cabccf7a1d23971280</tree>
  <committer>
    <name>Jesse Newland</name>
    <email>jnewland@gmail.com</email>
  </committer>
</commit>
