<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,4 +1,5 @@
 == 1.0.1 ? release
+ * Fix error when passing no_epoll option to a cluster.
  * Omit parsing #defined strings [J&#233;r&#233;my Zurcher]
  * Defaults SERVER_NAME to localhost like webrick does [#87 state:resolved]
  * Namespace parser to prevent error when mongrel is required [cliffmoon]</diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -34,12 +34,13 @@ module Thin
     # Turn into a runnable shell command
     def shellify
       shellified_options = @options.inject([]) do |args, (name, value)|
+        option_name = name.to_s.tr(&quot;_&quot;, &quot;-&quot;)
         case value
         when NilClass,
-             TrueClass then args &lt;&lt; &quot;--#{name}&quot;
+             TrueClass then args &lt;&lt; &quot;--#{option_name}&quot;
         when FalseClass
-        when Array     then value.each { |v| args &lt;&lt; &quot;--#{name}=#{v.inspect}&quot; }
-        else                args &lt;&lt; &quot;--#{name.to_s.tr('_', '-')}=#{value.inspect}&quot;
+        when Array     then value.each { |v| args &lt;&lt; &quot;--#{option_name}=#{v.inspect}&quot; }
+        else                args &lt;&lt; &quot;--#{option_name}=#{value.inspect}&quot;
         end
         args
       end</diff>
      <filename>lib/thin/command.rb</filename>
    </modified>
    <modified>
      <diff>@@ -4,7 +4,7 @@ describe Command do
   before do
     Command.script = 'thin'
     @command = Command.new(:start, :port =&gt; 3000, :daemonize =&gt; true, :log =&gt; 'hi.log',
-                           :require =&gt; %w(rubygems thin))
+                           :require =&gt; %w(rubygems thin), :no_epoll =&gt; true)
   end
   
   it 'should shellify command' do
@@ -17,4 +17,9 @@ describe Command do
     out = @command.shellify
     out.should include('--require=&quot;rubygems&quot;', '--require=&quot;thin&quot;')
   end
+
+  it 'should convert _ to - in option name' do
+    out = @command.shellify
+    out.should include('--no-epoll')
+  end
 end
\ No newline at end of file</diff>
      <filename>spec/command_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b9ea85d987454a89129c8854c6b43abc640f1efe</id>
    </parent>
  </parents>
  <author>
    <name>macournoyer</name>
    <email>macournoyer@gmail.com</email>
  </author>
  <url>http://github.com/rtomayko/thin/commit/3b7357dcbc165ac546fa51b0f14995a1d37e4912</url>
  <id>3b7357dcbc165ac546fa51b0f14995a1d37e4912</id>
  <committed-date>2009-01-16T13:06:30-08:00</committed-date>
  <authored-date>2009-01-16T13:06:30-08:00</authored-date>
  <message>Fix error when passing no_epoll option to a cluster.</message>
  <tree>006963d644e70fbb574ceeb506a1cba88dcfa140</tree>
  <committer>
    <name>macournoyer</name>
    <email>macournoyer@gmail.com</email>
  </committer>
</commit>
