<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>.gitignore</filename>
    </added>
    <added>
      <filename>Rakefile</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -14,9 +14,9 @@ style is distributed as a gem, and can be installed with:
 Feedback/Bugs/Support Requests should be handled through RubyForge at
 http://rubyforge.org/projects/ruby-style/.
 
-The RDoc is available at http://code.jeremyevans.net/doc/ruby-style/.
-Source control access is available at github
-(http://github.com/jeremyevans/ruby-style/tree/master).
+The RDoc is available at http://ruby-style.rubyforge.org.
+
+Source is available at github: http://github.com/jeremyevans/ruby-style
 
 == Highlights
 
@@ -29,8 +29,7 @@ Source control access is available at github
   the fly
 * Supports both command line and yaml config file configuration
 * Is easily extensible to support running other frameworks and protocols other
-  than the included ones (Rails, Ramaze, and a generic adapter; SCGI, Mongrel,
-  Thin, and Evented Mongrel)
+  than the included ones (Rails; SCGI, Mongrel, Thin, and Evented Mongrel)
 
 == Running and configuration
 
@@ -41,16 +40,16 @@ style [option value, ...] (decrement|halt|increment|restart|run|start|stop)
  Options:
   -a, --adapter       Adapter/Framework to use [rails]
   -b, --bind          IP address to bind to [127.0.0.1]
-  -c, --config        Location of config file [config/style.yaml]
+  -c, --config        Location of config file [style.yaml]
   -d, --directory     Working directory [.]
   -D, --debug         Run the program in the foreground without forking [No]
   -f, --fork          Number of listners on each port [1]
   -h, --handler       Handler/Server to use [mongrel]
   -k, --killtime      Number of seconds to wait when killing each child [2]
-  -l, --logfile       Where to redirect STDOUT and STDERR [log/style.log]
+  -l, --logfile       Where to redirect STDOUT and STDERR [style.log]
   -n, --number        Number of ports to which to bind [1]
   -p, --port          Starting port to which to bind [9999]
-  -P, --pidfile       Location of pid file [log/style.pid]
+  -P, --pidfile       Location of pid file [style.pid]
   -u, --unsupervised  Whether to run unsupervised [No]
 
 Here's what the various commands do:
@@ -76,9 +75,9 @@ Here's a longer explanation of the options:
 
   -a, --adapter       Adapter/Framework to use [rails]
 
-  This is the adapter/framework to use.  Support for Rails and Ramaze is
-  included in the distribution, support for other frameworks should be fairly
-  easy to add.
+  This is the adapter/framework to use.  Support for Rails is
+  included in the distribution, and is special-cased. Any other value runs
+  require with the argument given.
 
   -b, --bind          IP address to bind to [127.0.0.1]
 
@@ -218,13 +217,13 @@ listener on each port:
  | :adapter: rails
  | :handler: thin
 
-Very simple configuration that runs Ramaze+Evented Mongrel in unsupervised
-mode on port 3000.
+Very simple configuration that runs Ramaze (with the default start.rb runner)
++Evented Mongrel in unsupervised mode on port 3000.
 
  | ---
  | :port: 3000
  | :unsupervised: 1
- | :adapter: ramaze
+ | :adapter: start
  | :handler: evented_mongrel
 
 Using the generic adapter to host a camping application (you are responsible
@@ -233,9 +232,7 @@ $LOAD_PATH that uses Mongrel to run camping):
 
  | ---
  | :port: 3301
- | :adapter: generic
- | :adapter_config:
- |   :script: my_camping_app
+ | :adapter: my_camping_app
 
 == How restarting works
 
@@ -293,21 +290,87 @@ For example:
 Result, three brand new listening processes, total time to restart is about 12
 seconds (2 * (2 killtime * 1 number * 3 fork)).
 
-== Other handlers and adapter
+== Other handlers
 
 To add support for another handler, make sure the instead of creating a socket,
 it uses the socket provided by style, available in the global variable
 $STYLE_SOCKET.  See existing handler code to see how Mongrel, SCGI, and Event
 Machine were modified to support this.
 
-Support for other adapters is easily added by adding the run method to the
-Style class.  This can be easy (as it is with Ramaze), or more difficult (as it
-is with Rails).  If the adapter uses Rack, it should be fairly simple. You can
-also just use the generic adapter to specify a string to require.
+Style loads handlers from style/handler relative to the load path, so you can
+add your own handlers without modifying the program, as long as you place the
+files somewhere in the load path.
+
+== Changes to the default config, logfile, and pidfile in 1.2.0
+
+Previously, style had the following defaults:
+
+* config - config/style.yaml
+* logfile - log/style.log
+* pidfile - log/style.pid
 
-Style loads adapters and handlers from style/{adapter,handler} relative to the
-load path, so you can add your own adapters and handlers without modifying the
-program, as long as you place the files somewhere in the load path.
+These made sense because style was originally designed to serve Rails
+applications, which all have config and log directories.  Now that style
+serves more types of applications, and few of those have config or log
+directories, these no longer made good defaults.  The new defaults use the
+same filename, without the directory:
+
+* config - style.yaml
+* logfile - style.log
+* pidfile - style.pid
+
+== Changes to adapter handling in 1.2.0
+
+Adapter handling was simplified in 1.2.0.  Because there is no easy script
+that loads rails, there is still a rails adapter.  However, for all other
+framaworks you would want to use, just specify the file you want to require
+as the adapter.  This simplifies things and allows you to specify your
+adapter file on the command line:
+
+  style -a sinatra_runner start
+
+Before, this wasn't possible, you had to set up a configuration file or put
+the adapter file you wanted to use in a style/adapter subdirectory in the load
+path.
+
+== Upgrading from 1.1.*, previously using ramaze adapter
+
+Previously, if you used the following configuration:
+
+ | ---
+ | :adapter: ramaze
+
+You should change it to: 
+
+ | ---
+ | :adapter: start
+
+If you specified your own :runner via :adapter_config, just use that runner
+name for the :adapter instead of start.
+
+The Ramaze adapter had some default settings that you might want to consider:
+
+  :test_connections=&gt;false, :force=&gt;true
+
+You should make sure your ramaze runner sets the correct :adapter for Ramaze to
+use (it should use the same one as style uses).  Having it set the :host and
+:port are good ideas, otherwise it may display those incorrectly.  You should
+make sure your ramaze runner actually calls Ramaze.start, as well.
+
+== Upgrading from 1.1.*, previously using generic adapter
+
+If you were previously using the generic adapter, the upgrade is simple. Change
+the following cofiguration from:
+
+ | ---
+ | :adapter: generic
+ | :adapter_config:
+ |   :script: cse
+
+To:
+
+ | ---
+ | :adapter: cse
 
 == FAQ
 </diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -19,10 +19,10 @@ class Style
   
   # Configure style
   def initialize
-    @config = {:pidfile=&gt;'log/style.pid', :number=&gt;1, :port=&gt;9999,
-               :style=&gt;'RailsMongrel', :fork=&gt;1, :bind=&gt;'127.0.0.1',
-               :cliconfig=&gt;{}, :killtime=&gt;2, :config=&gt;'config/style.yaml',
-               :logfile=&gt;'log/style.log', :children=&gt;{},:sockets=&gt;{},
+    @config = {:pidfile=&gt;'style.pid', :number=&gt;1, :port=&gt;9999,
+               :fork=&gt;1, :bind=&gt;'127.0.0.1',
+               :cliconfig=&gt;{}, :killtime=&gt;2, :config=&gt;'style.yaml',
+               :logfile=&gt;'style.log', :children=&gt;{},:sockets=&gt;{},
                :adapter_config=&gt;{}, :directory=&gt;'.', :debug=&gt;false, 
                :unsupervised=&gt; false, :adapter=&gt;'rails', :handler=&gt;'mongrel'}
     @mutex = Mutex.new
@@ -99,7 +99,7 @@ class Style
   
   # Load the revelent style adapter/framework
   def load_adapter
-    require &quot;style/adapter/#{config[:adapter]}&quot;
+    require(config[:adapter].to_s == 'rails' ? &quot;style/adapter/rails&quot; : config[:adapter].to_s)
   end
   
   # Load the revelent style handler/server</diff>
      <filename>lib/style.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,8 +1,9 @@
 spec = Gem::Specification.new do |s|
   s.name = &quot;ruby-style&quot;
-  s.version = &quot;1.1.5&quot;
+  s.version = &quot;1.2.0&quot;
   s.author = &quot;Jeremy Evans&quot;
   s.email = &quot;code@jeremyevans.net&quot;
+  s.homepage = &quot;http://ruby-style.rubyforge.org&quot;
   s.platform = Gem::Platform::RUBY
   s.summary = &quot;Supervised TCPServer, Yielding Listeners Easily&quot;
   s.files = %w'LICENSE README' + Dir['lib/**/*.rb']</diff>
      <filename>ruby-style.gemspec</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>lib/style/adapter/generic.rb</filename>
    </removed>
    <removed>
      <filename>lib/style/adapter/ramaze.rb</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>0ad5cfa94cf4f7003fffb42308d5cb292d27aa84</id>
    </parent>
  </parents>
  <author>
    <name>Jeremy Evans</name>
    <email>code@jeremyevans.net</email>
  </author>
  <url>http://github.com/jeremyevans/ruby-style/commit/92ce6703bf0bcb2388e391e81978e6918bab4ea8</url>
  <id>92ce6703bf0bcb2388e391e81978e6918bab4ea8</id>
  <committed-date>2008-06-18T11:42:00-07:00</committed-date>
  <authored-date>2008-06-18T11:42:00-07:00</authored-date>
  <message>Major backwards-incompatible configuration changes, bump version to 1.2.0

The config, pidfile, and logfile settings have had their defaults
changed so that they no longer include directories:

  Before:
    config - config/style.yaml
    logfile - log/style.log
    pidfile - log/style.pid
  After:
    config - style.yaml
    logfile - style.log
    pidfile - style.pid

The ramaze and generic adapters have been removed, for non-rails
installations, the adapter should be the name of a file to
require that will load the adapter/framework.  See the README for
upgrade instructions.

The RDocs are now hosted on RubyForge.

Add a Rakefile and .gitignore file for ease of maintenance.</message>
  <tree>5375a07accf4f2212a46e16077c0c01ea9e2fced</tree>
  <committer>
    <name>Jeremy Evans</name>
    <email>code@jeremyevans.net</email>
  </committer>
</commit>
