<!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-10-06 13:42:21 +0900 (Tue, 06 Oct 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/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739">212a2513f7b135d6201442cd990a0b98f30b2739</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">Bind grn_ctx_is_opened()</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/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473">ext/groonga/rb-grn-context.c</a></li>
<li><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-3f7dbd402bdb4e5238489d06b2809fa3">test/test-context.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: ext/groonga/rb-grn-context.c (+25 -1)</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/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473L1">1</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473L2">2</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473L3">3</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/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473L4">4</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473L5">5</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473L6">6</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473L942">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473L943">943</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473L944">944</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473L945">945</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-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-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/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473L946">946</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473L947">947</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473L948">948</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473L998">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473L999">999</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473L1000">1000</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473L1001">1001</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/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473L1002">1002</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/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473R1">1</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473R2">2</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/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473R3">3</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473R4">4</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473R5">5</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473R6">6</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473R942">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473R943">943</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473R944">944</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473R945">945</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473R946">946</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473R947">947</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473R948">948</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473R949">949</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473R950">950</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473R951">951</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473R952">952</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473R953">953</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473R954">954</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473R955">955</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473R956">956</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473R957">957</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473R958">958</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473R959">959</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473R960">960</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473R961">961</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473R962">962</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473R963">963</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473R964">964</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473R965">965</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473R966">966</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473R967">967</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473R968">968</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473R969">969</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473R970">970</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473R1020">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473R1021">1021</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473R1022">1022</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473R1023">1023</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473R1024">1024</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473R1025">1025</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-005ea12602b74e22864cb664e58db473R1026">1026</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">@@ -1,6 +1,6 @@</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> /* -*- coding: utf-8; mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */</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">- Copyright (C) 2010-2014 Kouhei Sutou <kou****@clear*****></span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ Copyright (C) 2010-2015 Kouhei Sutou <kou****@clear*****></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre"> This library is free software; you can redistribute it and/or</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> modify it under the terms of the GNU Lesser General Public</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -943,6 +943,28 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">rb_grn_context_array_reference (VALUE self, VALUE name_or_id)</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> return GRNOBJECT2RVAL(Qnil, context, object, GRN_FALSE);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> }</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">+/*</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ * Checks whether object with the ID is opened or not.</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ *</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ * @overload opened?(id)</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ * @param id [Integer] The ID to be checked</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ * @return [Boolean] `true` if object with the `id` is opened,</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ * `false` otherwise.</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ */</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+static VALUE</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+rb_grn_context_is_opened (VALUE self, VALUE rb_id)</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+{</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ grn_ctx *context;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ grn_id id;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ grn_bool is_opened;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ context = SELF(self);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ id = NUM2UINT(rb_id);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ is_opened = grn_ctx_is_opened(context, id);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ return CBOOL2RVAL(is_opened);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+}</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"> void</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> rb_grn_context_object_created (VALUE rb_context, VALUE rb_object)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> {</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -999,4 +1021,6 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">rb_grn_init_context (VALUE mGrn)</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> rb_define_method(cGrnContext, "connect", rb_grn_context_connect, -1);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> rb_define_method(cGrnContext, "send", rb_grn_context_send, 1);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> rb_define_method(cGrnContext, "receive", rb_grn_context_receive, 0);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ rb_define_method(cGrnContext, "opened?", rb_grn_context_is_opened, 1);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> }</span>
</pre>
</td>
</tr>
</tbody>
</table>
<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: test/test-context.rb (+9 -1)</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/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-3f7dbd402bdb4e5238489d06b2809fa3">...</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-3f7dbd402bdb4e5238489d06b2809fa3L1">1</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/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-3f7dbd402bdb4e5238489d06b2809fa3L2">2</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-3f7dbd402bdb4e5238489d06b2809fa3L3">3</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-3f7dbd402bdb4e5238489d06b2809fa3L4">4</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-3f7dbd402bdb4e5238489d06b2809fa3L134">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-3f7dbd402bdb4e5238489d06b2809fa3L135">135</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-3f7dbd402bdb4e5238489d06b2809fa3L136">136</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-3f7dbd402bdb4e5238489d06b2809fa3L137">137</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-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-3f7dbd402bdb4e5238489d06b2809fa3L138">138</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-3f7dbd402bdb4e5238489d06b2809fa3L139">139</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-3f7dbd402bdb4e5238489d06b2809fa3L140">140</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/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-3f7dbd402bdb4e5238489d06b2809fa3">...</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/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-3f7dbd402bdb4e5238489d06b2809fa3R1">1</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-3f7dbd402bdb4e5238489d06b2809fa3R2">2</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-3f7dbd402bdb4e5238489d06b2809fa3R3">3</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-3f7dbd402bdb4e5238489d06b2809fa3R4">4</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-3f7dbd402bdb4e5238489d06b2809fa3R134">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-3f7dbd402bdb4e5238489d06b2809fa3R135">135</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-3f7dbd402bdb4e5238489d06b2809fa3R136">136</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-3f7dbd402bdb4e5238489d06b2809fa3R137">137</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-3f7dbd402bdb4e5238489d06b2809fa3R138">138</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-3f7dbd402bdb4e5238489d06b2809fa3R139">139</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-3f7dbd402bdb4e5238489d06b2809fa3R140">140</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-3f7dbd402bdb4e5238489d06b2809fa3R141">141</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-3f7dbd402bdb4e5238489d06b2809fa3R142">142</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-3f7dbd402bdb4e5238489d06b2809fa3R143">143</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-3f7dbd402bdb4e5238489d06b2809fa3R144">144</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-3f7dbd402bdb4e5238489d06b2809fa3R145">145</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-3f7dbd402bdb4e5238489d06b2809fa3R146">146</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-3f7dbd402bdb4e5238489d06b2809fa3R147">147</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/212a2513f7b135d6201442cd990a0b98f30b2739#diff-3f7dbd402bdb4e5238489d06b2809fa3R148">148</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">@@ -1,4 +1,4 @@</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-# Copyright (C) 2009-2013 Kouhei Sutou <kou****@clear*****></span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+# Copyright (C) 2009-2015 Kouhei Sutou <kou****@clear*****></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> #</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> # This library is free software; you can redistribute it and/or</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> # modify it under the terms of the GNU Lesser General Public</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -135,6 +135,14 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">class ContextTest < Test::Unit::TestCase</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> assert_true(context.closed?)</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-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ def test_opened?</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ Groonga::Database.create</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ context = Groonga::Context.default</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ assert do</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ context.opened?(Groonga::Type::SHORT_TEXT)</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">+ 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"> class RestoreTest < self</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> def test_simple</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> commands = <<EOD</span>
</pre>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>