<!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 <kou****@clear*****></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
<dd style="margin-left: 8.5em">2015-03-10 14:58:22 +0900 (Tue, 10 Mar 2015)</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/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977">b745be0a612f8b04fb8ad428ddc9b408cbc83977</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, "Liberation Mono", Courier, monospace; line-height: 1.2; padding: 0.5em; width: auto">Use install SQL file</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/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#diff-0">mroonga.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, "Liberation Mono", 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: mroonga.rb (+4 -11)</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, "Liberation Mono", 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/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0L70">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0L71">71</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0L72">72</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0L73">73</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0L74">74</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0L75">75</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0L76">76</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0L77">77</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0L148">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0L149">149</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0L150">150</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0L151">151</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0L152">152</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0L153">153</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0L154">154</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0L155">155</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0L156">156</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0L157">157</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0L158">158</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0L159">159</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0L160">160</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0L161">161</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0L162">162</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0L163">163</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0L164">164</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0L165">165</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0L166">166</a></span>
</pre>
</th>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", 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/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0R70">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0R71">71</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0R72">72</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0R73">73</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0R74">74</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0R75">75</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0R76">76</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0R77">77</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0R148">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0R149">149</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0R150">150</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0R151">151</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0R152">152</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0R153">153</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0R154">154</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0R155">155</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0R156">156</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0R157">157</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0R158">158</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/homebrew-mroonga/commit/b745be0a612f8b04fb8ad428ddc9b408cbc83977#L0R159">159</a></span>
</pre>
</th>
<td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", 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">@@ -71,7 +71,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">class Mroonga < Formula</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> def caveats</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> <<-EOS.undent</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> To install mroonga plugin, run the following command:</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- mysql -uroot -e '#{install_sql}'</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ mysql -uroot < '#{install_sql_path}'</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre"> To confirm successfuly installed, run the following command</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> and confirm that 'mroonga' is in the list:</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -149,18 +149,11 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">class Mroonga < Formula</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> system("./configure", *configure_args)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> system("make")</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> system("make install")</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- system("mysql -uroot -e '#{install_sql}' || true")</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ system("mysql -uroot < '#{install_sql_path}' || true")</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 install_sql</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- sqls = [</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- "INSTALL PLUGIN Mroonga SONAME \"ha_mroonga.so\";",</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- "CREATE FUNCTION last_insert_grn_id RETURNS INTEGER SONAME \"ha_mroonga.so\";",</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- "CREATE FUNCTION mroonga_snippet RETURNS STRING SONAME \"ha_mroonga.so\";",</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- "CREATE FUNCTION mroonga_command RETURNS STRING SONAME \"ha_mroonga.so\";",</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- "CREATE FUNCTION mroonga_escape RETURNS STRING SONAME \"ha_mroonga.so\";"</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- ]</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- sqls.join(" ")</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ def install_sql_path</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ prefix + "share/mroonga/install.sql"</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-not-changed" style="display: block; white-space: pre"> def option_value(search_key)</span>
</pre>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>