<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -2,13 +2,19 @@
 
 Gem::Specification.new do |s|
   s.name = %q{capinatra}
-  s.version = &quot;0.0.1&quot;
+  s.version = &quot;0.1.0&quot;
 
   s.required_rubygems_version = Gem::Requirement.new(&quot;&gt;= 0&quot;) if s.respond_to? :required_rubygems_version=
   s.date = %q{2008-12-21}
   s.default_executable = %q{capinatra}
   s.executables = [&quot;capinatra&quot;]
-  s.files = [&quot;bin/capinatra&quot;, &quot;lib/capinatra.rb&quot;, &quot;templates/Capfile&quot;, &quot;templates/config.ru.erb&quot;, &quot;templates/vhost.conf.erb&quot;]
+  s.files = [
+    &quot;bin/capinatra&quot;,
+    &quot;lib/capinatra.rb&quot;,
+    &quot;templates/Capfile&quot;,
+    &quot;templates/config.ru.erb&quot;,
+    &quot;templates/vhost.conf.erb&quot;
+  ]
   s.require_paths = [&quot;lib&quot;]
   s.rubygems_version = %q{1.3.1}
   s.summary = %q{Quickly deploy Sinatra apps on Passenger}</diff>
      <filename>capinatra.gemspec</filename>
    </modified>
    <modified>
      <diff>@@ -3,7 +3,13 @@ require 'rubygems'
 require 'capinatra'
 load 'deploy' if respond_to?(:namespace) # cap2 differentiator
 
-# app settings
+# set an app_class if you're using the more recent style of creating
+# Sinatra apps, where app_class would be the name of your subclass
+# of Sinatra::Base. if you're just requiring 'sinatra' and using the
+# more traditional DSL style of Sinatra, then comment this line out.
+set :app_class, 'YourApp'
+
+# standard settings
 set :app_file, &quot;app.rb&quot;
 set :application, &quot;your-app-name&quot;
 set :domain, &quot;your-app-domain.com&quot;
@@ -11,7 +17,7 @@ role :app, domain
 role :web, domain
 role :db,  domain, :primary =&gt; true
 
-# general settings
+# environment settings
 set :user, &quot;deploy&quot;
 set :group, &quot;deploy&quot;
 set :deploy_to, &quot;/home/deploy/apps/#{application}&quot;</diff>
      <filename>templates/Capfile</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,7 @@
 require 'rubygems'
+&lt;% if app_class # modern way of declaring Sinatra apps %&gt;
+require 'sinatra/base'
+&lt;% else # old way of declaring Sinatra apps %&gt;
 require 'sinatra'
 
 root = File.dirname(__FILE__)
@@ -8,7 +11,10 @@ Sinatra::Application.default_options.merge! \
   :root =&gt; root,
   :app_file =&gt; File.join(root, '&lt;%= app_file %&gt;'),
   :views =&gt; File.join(root, 'views')
+&lt;% end %&gt;
 
 load File.join(File.dirname(__FILE__), '&lt;%= app_file %&gt;')
 
-run Sinatra.application
\ No newline at end of file
+&lt;% if app_class %&gt;
+run &lt;%= app_class %&gt;
+&lt;% end %&gt;
\ No newline at end of file</diff>
      <filename>templates/config.ru.erb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>63188c22ed84ae26ab9409928d718c93c84e6635</id>
    </parent>
  </parents>
  <author>
    <name>Pat Nakajima</name>
    <email>patnakajima@gmail.com</email>
  </author>
  <url>http://github.com/nakajima/capinatra/commit/cbad611c53a9cace4c34b2f0a283df7d7252eb28</url>
  <id>cbad611c53a9cace4c34b2f0a283df7d7252eb28</id>
  <committed-date>2009-02-01T15:22:29-08:00</committed-date>
  <authored-date>2009-02-01T15:22:29-08:00</authored-date>
  <message>Update for compatibility with most recent version of Sinatra. Legacy
support is still in there, though I haven't tested it, so be careful.

Also note that if you're subclassing Sinatra::Base, you need to specify
the name of your subclass in your Capfile as :app_class. This will
then be used at the bottom of the generated rackup file where we call
`run` and pass your subclass.</message>
  <tree>ac2bdc3e692f588c3902f2e2c155e337ee99cfc7</tree>
  <committer>
    <name>Pat Nakajima</name>
    <email>patnakajima@gmail.com</email>
  </committer>
</commit>
