<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>config.ru</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,2 +1,4 @@
 .DS_Store
-pkg/*
\ No newline at end of file
+pkg/*
+_site
+_layouts
\ No newline at end of file</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -2,11 +2,11 @@ History.txt
 PostInstall.txt
 README.rdoc
 Rakefile
+config.ru
 bin/gembox
 lib/extensions.rb
 lib/gembox.rb
 lib/gembox/app.rb
-lib/gembox/config.ru
 lib/gembox/gem_list.rb
 lib/gembox/gems.rb
 lib/gembox/view_helpers.rb</diff>
      <filename>Manifest.txt</filename>
    </modified>
    <modified>
      <diff>@@ -2,6 +2,8 @@ $:.unshift(File.dirname(__FILE__)) unless
   $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
 
 require 'rubygems'
+require 'haml'
+require 'sass'
 require 'active_support'
 require 'will_paginate/array'
 require 'will_paginate/view_helpers'</diff>
      <filename>lib/gembox.rb</filename>
    </modified>
    <modified>
      <diff>@@ -9,11 +9,12 @@ module Gembox
 
     set :root,  @@root    
     set :app_file, __FILE__
-    
+        
     before do
       Gembox::Gems.load
-      @gems = Gembox::Gems.local_gems.paginate :page =&gt; params[:page], :per_page =&gt; 30
+      @gems  = Gembox::Gems.local_gems.paginate :page =&gt; params[:page], :per_page =&gt; 30
       @stats = Gembox::Gems.stats
+      @search ||= ''
     end
 
     get '/stylesheets/:stylesheet.css' do
@@ -46,7 +47,7 @@ module Gembox
         action = params[:action] || 'view'
         file_path = File.join(@gem.full_gem_path, params[:file])
         if File.readable?(file_path)
-          if action == 'edit'
+          if action == 'edit' &amp;&amp; !production?
             `$EDITOR #{file_path}`
           else
             content_type 'text/plain'</diff>
      <filename>lib/gembox/app.rb</filename>
    </modified>
    <modified>
      <diff>@@ -42,9 +42,11 @@
           } else {
             // build controls
             var $controls = $('&lt;span class=&quot;controls&quot;&gt;&lt;/span&gt;');
-            $('&lt;a&gt;&lt;img src=&quot;/images/edit.png&quot; alt=&quot;Edit&quot;/&gt;&lt;/a&gt;')
-            .attr('href', meta.url + '&amp;action=edit')
-            .appendTo($controls);
+            if ($('body').data('sinatra-env') != 'production') {
+              $('&lt;a&gt;&lt;img src=&quot;/images/edit.png&quot; alt=&quot;Edit&quot;/&gt;&lt;/a&gt;')
+                .attr('href', meta.url + '&amp;action=edit')
+                .appendTo($controls);
+            }
             if (!meta.subdirs) {
               $('&lt;a&gt;&lt;img src=&quot;/images/page_white_text.png&quot; alt=&quot;View Raw&quot;/&gt;&lt;/a&gt;')
               .attr('href', meta.url + '&amp;action=view')</diff>
      <filename>public/javascripts/gembox.js</filename>
    </modified>
    <modified>
      <diff>@@ -40,4 +40,9 @@
           =link_to 'Sinatra.', 'http://sinatrrb.com'
         %p.copyright 
           Hey! I'm 
-          =link_to 'open-source!', 'http://github.com/quirkey/gembox'
\ No newline at end of file
+          =link_to 'open-source!', 'http://github.com/quirkey/gembox'
+
+      :erb
+        &lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;
+          jQuery('body').data('sinatra-env', '&lt;%= options.environment %&gt;');
+        &lt;/script&gt;
\ No newline at end of file</diff>
      <filename>views/layout.haml</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>lib/gembox/config.ru</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>b0ef949e05c52e93c1fcaae872ebb033bf6f473d</id>
    </parent>
  </parents>
  <author>
    <name>Aaron Quint</name>
    <email>aaron@quirkey.com</email>
  </author>
  <url>http://github.com/quirkey/gembox/commit/eff9e887cb175eac02f5b90660edf9bf2a4c2747</url>
  <id>eff9e887cb175eac02f5b90660edf9bf2a4c2747</id>
  <committed-date>2009-05-22T06:04:41-07:00</committed-date>
  <authored-date>2009-05-22T06:04:41-07:00</authored-date>
  <message>Fixed/moved the config.ru so its accesible for passenger [thanks Lenary!]

config.ru runs the app in 'production' and disables the ability to run the EDITOR,
this should make it a little safer to run not locally</message>
  <tree>282e0db9f5bf7401a6d004a430ff8a9d18e62c3a</tree>
  <committer>
    <name>Aaron Quint</name>
    <email>aaron@quirkey.com</email>
  </committer>
</commit>
