<!DOCTYPE html>
<html>
  <head>
  </head>
  <body>
    <dl style="line-height: 1.5; margin-left: 2em">
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Author</dt>
      <dd style="margin-left: 8.5em">Kouhei Sutou &lt;kou****@clear*****&gt;</dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
      <dd style="margin-left: 8.5em">2013-06-19 17:11:26 +0900 (Wed, 19 Jun 2013)</dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">New Revision</dt>
      <dd style="margin-left: 8.5em"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/539d768911bab369752b19428eb116e5f2bc014c">539d768911bab369752b19428eb116e5f2bc014c</a></dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Message</dt>
      <dd style="margin-left: 8.5em"><pre style="border: 1px solid #aaa; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; padding: 0.5em; width: auto">Use snake_case for method name</pre></dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Modified files</dt>
      <dd style="margin-left: 8.5em">
        <ul>
          <li><a href="https://github.com/groonga/fluent-plugin-droonga/commit/539d768911bab369752b19428eb116e5f2bc014c#diff-0">lib/droonga/plugin/handler_search.rb</a></li>
        </ul>
      </dd>
    </dl>

    <div class="diff-section" style="clear: both">
      <table style="border-collapse: collapse; border: 1px solid #aaa">
        <thead>
          <tr class="diff-header" style="border: 1px solid #aaa">
            <td colspan="3">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">  Modified: lib/droonga/plugin/handler_search.rb (+3 -3)</span>
<span class="diff-header-mark" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">===================================================================</span>
</pre>
            </td>
          </tr>
        </thead>
        <tbody>
          <tr>
            <th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/539d768911bab369752b19428eb116e5f2bc014c#L0L182">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/539d768911bab369752b19428eb116e5f2bc014c#L0L183">183</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/539d768911bab369752b19428eb116e5f2bc014c#L0L184">184</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/539d768911bab369752b19428eb116e5f2bc014c#L0L185">185</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/539d768911bab369752b19428eb116e5f2bc014c#L0L186">186</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/539d768911bab369752b19428eb116e5f2bc014c#L0L187">187</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/539d768911bab369752b19428eb116e5f2bc014c#L0L188">188</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/539d768911bab369752b19428eb116e5f2bc014c#L0L189">189</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/539d768911bab369752b19428eb116e5f2bc014c#L0L207">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/539d768911bab369752b19428eb116e5f2bc014c#L0L208">208</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/539d768911bab369752b19428eb116e5f2bc014c#L0L209">209</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/539d768911bab369752b19428eb116e5f2bc014c#L0L210">210</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/539d768911bab369752b19428eb116e5f2bc014c#L0L211">211</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/539d768911bab369752b19428eb116e5f2bc014c#L0L212">212</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/539d768911bab369752b19428eb116e5f2bc014c#L0L213">213</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/539d768911bab369752b19428eb116e5f2bc014c#L0L214">214</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/539d768911bab369752b19428eb116e5f2bc014c#L0L215">215</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/539d768911bab369752b19428eb116e5f2bc014c#L0L216">216</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/539d768911bab369752b19428eb116e5f2bc014c#L0L217">217</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/539d768911bab369752b19428eb116e5f2bc014c#L0L218">218</a></span>
</pre>
            </th>
            <th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/539d768911bab369752b19428eb116e5f2bc014c#L0R182">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/539d768911bab369752b19428eb116e5f2bc014c#L0R183">183</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/539d768911bab369752b19428eb116e5f2bc014c#L0R184">184</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/539d768911bab369752b19428eb116e5f2bc014c#L0R185">185</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/539d768911bab369752b19428eb116e5f2bc014c#L0R186">186</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/539d768911bab369752b19428eb116e5f2bc014c#L0R187">187</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/539d768911bab369752b19428eb116e5f2bc014c#L0R188">188</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/539d768911bab369752b19428eb116e5f2bc014c#L0R189">189</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/539d768911bab369752b19428eb116e5f2bc014c#L0R207">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/539d768911bab369752b19428eb116e5f2bc014c#L0R208">208</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/539d768911bab369752b19428eb116e5f2bc014c#L0R209">209</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/539d768911bab369752b19428eb116e5f2bc014c#L0R210">210</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/539d768911bab369752b19428eb116e5f2bc014c#L0R211">211</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/539d768911bab369752b19428eb116e5f2bc014c#L0R212">212</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/539d768911bab369752b19428eb116e5f2bc014c#L0R213">213</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/539d768911bab369752b19428eb116e5f2bc014c#L0R214">214</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/539d768911bab369752b19428eb116e5f2bc014c#L0R215">215</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/539d768911bab369752b19428eb116e5f2bc014c#L0R216">216</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/539d768911bab369752b19428eb116e5f2bc014c#L0R217">217</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/539d768911bab369752b19428eb116e5f2bc014c#L0R218">218</a></span>
</pre>
            </th>
            <td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -183,7 +183,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">module Droonga</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">         end</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       end</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-      def parseOrderKeys(keys)</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+      def parse_order_keys(keys)</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         keys.collect do |key|</span>
<span class="diff-not-changed" style="display: block; white-space: pre">           if key =~ /^-/</span>
<span class="diff-not-changed" style="display: block; white-space: pre">             [$POSTMATCH, :descending]</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -208,11 +208,11 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">module Droonga</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">         @count = @result.size</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         if @query[&quot;sortBy&quot;]</span>
<span class="diff-not-changed" style="display: block; white-space: pre">           if @query[&quot;sortBy&quot;].is_a? Array</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-            keys = parseOrderKeys(@query[&quot;sortBy&quot;])</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+            keys = parse_order_keys(@query[&quot;sortBy&quot;])</span>
<span class="diff-not-changed" style="display: block; white-space: pre">             offset = 0</span>
<span class="diff-not-changed" style="display: block; white-space: pre">             limit = -1</span>
<span class="diff-not-changed" style="display: block; white-space: pre">           elsif @query[&quot;sortBy&quot;].is_a? Hash</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-            keys = parseOrderKeys(@query[&quot;sortBy&quot;][&quot;keys&quot;])</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+            keys = parse_order_keys(@query[&quot;sortBy&quot;][&quot;keys&quot;])</span>
<span class="diff-not-changed" style="display: block; white-space: pre">             offset = @query[&quot;sortBy&quot;][&quot;offset&quot;]</span>
<span class="diff-not-changed" style="display: block; white-space: pre">             limit = @query[&quot;sortBy&quot;][&quot;limit&quot;]</span>
<span class="diff-not-changed" style="display: block; white-space: pre">           else</span>
</pre>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>