<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,4 +1,4 @@
-Copyright (c) 2007-2008 Jeremy Evans &lt;code@jeremyevans.net&gt;
+Copyright (c) 2007-2009 Jeremy Evans &lt;code@jeremyevans.net&gt;
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the &quot;Software&quot;), to deal</diff>
      <filename>LICENSE</filename>
    </modified>
    <modified>
      <diff>@@ -233,6 +233,13 @@ $LOAD_PATH that uses Mongrel to run camping):
  | ---
  | :port: 3301
  | :adapter: my_camping_app
+ | :environment:
+ |    RACK_ENV: production
+
+One important thing to note from the example above is that you can specify
+an :environment key in the config file that should be a hash.  If it is
+provided, the hash under it will be added to the environment before
+the child processes are loaded.
 
 == How restarting works
 </diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -20,7 +20,7 @@ class Style
   # Configure style
   def initialize
     @config = {:pidfile=&gt;'style.pid', :number=&gt;1, :port=&gt;9999,
-               :fork=&gt;1, :bind=&gt;'127.0.0.1',
+               :fork=&gt;1, :bind=&gt;'127.0.0.1', :environment=&gt;{},
                :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, 
@@ -277,8 +277,9 @@ class Style
     end rescue nil
   end
   
-  # Load the relevant handler and adapter and run the server
+  # Update the environment from the config file and load the relevant handler and adapter and run the server
   def run_child
+    config[:environment].each{|k,v| ENV[k.to_s] = v.to_s}
     load_handler
     load_adapter
   end</diff>
      <filename>lib/style.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
 spec = Gem::Specification.new do |s|
   s.name = &quot;ruby-style&quot;
-  s.version = &quot;1.2.1&quot;
+  s.version = &quot;1.2.2&quot;
   s.author = &quot;Jeremy Evans&quot;
   s.email = &quot;code@jeremyevans.net&quot;
   s.homepage = &quot;http://ruby-style.rubyforge.org&quot;</diff>
      <filename>ruby-style.gemspec</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>3ae89809b4789f749479567480ea798f72368e09</id>
    </parent>
  </parents>
  <author>
    <name>Jeremy Evans</name>
    <email>code@jeremyevans.net</email>
  </author>
  <url>http://github.com/jeremyevans/ruby-style/commit/a600a28e743fd2a0a5c6bdad46944bd2d4f3781f</url>
  <id>a600a28e743fd2a0a5c6bdad46944bd2d4f3781f</id>
  <committed-date>2009-05-28T14:18:15-07:00</committed-date>
  <authored-date>2009-05-28T14:18:15-07:00</authored-date>
  <message>Add ability to specify :environment key in config file for updating the child's environment; Bump version to 1.2.2

This is useful if you want to have separate config files for test
and production environments, without having separate adapter files.

While here, bump the version to 1.2.2 and the copyright year to
2009.</message>
  <tree>cf82a06f7228f299fc81977658714af1ff1c5df5</tree>
  <committer>
    <name>Jeremy Evans</name>
    <email>code@jeremyevans.net</email>
  </committer>
</commit>
