<!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">YUKI Hiroshi <shimo****@clear*****></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
<dd style="margin-left: 8.5em">2015-04-15 18:36:57 +0900 (Wed, 15 Apr 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/droonga/drndump/commit/e7fa57b01b972a365e3cbdf95cc2ce1e0a2ac7b1">e7fa57b01b972a365e3cbdf95cc2ce1e0a2ac7b1</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">Stop by error from nil message</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/droonga/drndump/commit/e7fa57b01b972a365e3cbdf95cc2ce1e0a2ac7b1#diff-0">lib/drndump/dump_client.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: lib/drndump/dump_client.rb (+8 -0)</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/droonga/drndump/commit/e7fa57b01b972a365e3cbdf95cc2ce1e0a2ac7b1#L0L21">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/drndump/commit/e7fa57b01b972a365e3cbdf95cc2ce1e0a2ac7b1#L0L22">22</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/drndump/commit/e7fa57b01b972a365e3cbdf95cc2ce1e0a2ac7b1#L0L23">23</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/drndump/commit/e7fa57b01b972a365e3cbdf95cc2ce1e0a2ac7b1#L0L24">24</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-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/drndump/commit/e7fa57b01b972a365e3cbdf95cc2ce1e0a2ac7b1#L0L25">25</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/drndump/commit/e7fa57b01b972a365e3cbdf95cc2ce1e0a2ac7b1#L0L26">26</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/drndump/commit/e7fa57b01b972a365e3cbdf95cc2ce1e0a2ac7b1#L0L27">27</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/drndump/commit/e7fa57b01b972a365e3cbdf95cc2ce1e0a2ac7b1#L0L58">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/drndump/commit/e7fa57b01b972a365e3cbdf95cc2ce1e0a2ac7b1#L0L59">59</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/drndump/commit/e7fa57b01b972a365e3cbdf95cc2ce1e0a2ac7b1#L0L60">60</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/drndump/commit/e7fa57b01b972a365e3cbdf95cc2ce1e0a2ac7b1#L0L61">61</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-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/drndump/commit/e7fa57b01b972a365e3cbdf95cc2ce1e0a2ac7b1#L0L62">62</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/drndump/commit/e7fa57b01b972a365e3cbdf95cc2ce1e0a2ac7b1#L0L63">63</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/drndump/commit/e7fa57b01b972a365e3cbdf95cc2ce1e0a2ac7b1#L0L64">64</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/droonga/drndump/commit/e7fa57b01b972a365e3cbdf95cc2ce1e0a2ac7b1#L0R21">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/drndump/commit/e7fa57b01b972a365e3cbdf95cc2ce1e0a2ac7b1#L0R22">22</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/drndump/commit/e7fa57b01b972a365e3cbdf95cc2ce1e0a2ac7b1#L0R23">23</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/drndump/commit/e7fa57b01b972a365e3cbdf95cc2ce1e0a2ac7b1#L0R24">24</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/drndump/commit/e7fa57b01b972a365e3cbdf95cc2ce1e0a2ac7b1#L0R25">25</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/drndump/commit/e7fa57b01b972a365e3cbdf95cc2ce1e0a2ac7b1#L0R26">26</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/drndump/commit/e7fa57b01b972a365e3cbdf95cc2ce1e0a2ac7b1#L0R27">27</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/drndump/commit/e7fa57b01b972a365e3cbdf95cc2ce1e0a2ac7b1#L0R28">28</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/drndump/commit/e7fa57b01b972a365e3cbdf95cc2ce1e0a2ac7b1#L0R29">29</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/drndump/commit/e7fa57b01b972a365e3cbdf95cc2ce1e0a2ac7b1#L0R30">30</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/drndump/commit/e7fa57b01b972a365e3cbdf95cc2ce1e0a2ac7b1#L0R61">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/drndump/commit/e7fa57b01b972a365e3cbdf95cc2ce1e0a2ac7b1#L0R62">62</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/drndump/commit/e7fa57b01b972a365e3cbdf95cc2ce1e0a2ac7b1#L0R63">63</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/drndump/commit/e7fa57b01b972a365e3cbdf95cc2ce1e0a2ac7b1#L0R64">64</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/drndump/commit/e7fa57b01b972a365e3cbdf95cc2ce1e0a2ac7b1#L0R65">65</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/drndump/commit/e7fa57b01b972a365e3cbdf95cc2ce1e0a2ac7b1#L0R66">66</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/drndump/commit/e7fa57b01b972a365e3cbdf95cc2ce1e0a2ac7b1#L0R67">67</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/drndump/commit/e7fa57b01b972a365e3cbdf95cc2ce1e0a2ac7b1#L0R68">68</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/drndump/commit/e7fa57b01b972a365e3cbdf95cc2ce1e0a2ac7b1#L0R69">69</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/drndump/commit/e7fa57b01b972a365e3cbdf95cc2ce1e0a2ac7b1#L0R70">70</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/drndump/commit/e7fa57b01b972a365e3cbdf95cc2ce1e0a2ac7b1#L0R71">71</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/drndump/commit/e7fa57b01b972a365e3cbdf95cc2ce1e0a2ac7b1#L0R72">72</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">@@ -22,6 +22,9 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">module Drndump</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> attr_reader :error_message</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> attr_writer :on_finish, :on_progress, :on_error</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ class NilMessage < StandardError</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ end</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> def initialize(params)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> @host = params[:host]</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> @port = params[:port]</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -59,6 +62,11 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">module Drndump</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> client.subscribe(dump_message) do |message|</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> on_progress(message)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> case message</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ when nil</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ error = NilMessage.new("nil message in dump")</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ on_error(error)</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ client.close</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ @error_message = error.to_s</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> when Droonga::Client::Error</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> on_error(message)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> client.close</span>
</pre>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>