Skip to content

Commit 11eb205

Browse files
committed
Update API docs to 2.0.1.
1 parent 9856a14 commit 11eb205

File tree

126 files changed

+11474
-9386
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+11474
-9386
lines changed

Gemfile.lock

Lines changed: 203 additions & 156 deletions
Large diffs are not rendered by default.

docs/api/Addrinfo.html

Lines changed: 37 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>
77
Class: Addrinfo
88

9-
&mdash; Documentation by YARD 0.9.12
9+
&mdash; Documentation by YARD 0.9.19
1010

1111
</title>
1212

@@ -1192,16 +1192,6 @@ <h3 class="signature " id="getnameinfo-instance_method">
11921192
<pre class="lines">
11931193

11941194

1195-
180
1196-
181
1197-
182
1198-
183
1199-
184
1200-
185
1201-
186
1202-
187
1203-
188
1204-
189
12051195
190
12061196
191
12071197
192
@@ -1218,10 +1208,20 @@ <h3 class="signature " id="getnameinfo-instance_method">
12181208
203
12191209
204
12201210
205
1221-
206</pre>
1211+
206
1212+
207
1213+
208
1214+
209
1215+
210
1216+
211
1217+
212
1218+
213
1219+
214
1220+
215
1221+
216</pre>
12221222
</td>
12231223
<td>
1224-
<pre class="code"><span class="info file"># File 'mrbgems/mruby-socket/src/socket.c', line 180</span>
1224+
<pre class="code"><span class="info file"># File 'mrbgems/mruby-socket/src/socket.c', line 190</span>
12251225

12261226
static mrb_value
12271227
mrb_addrinfo_getnameinfo(mrb_state *mrb, mrb_value <span style="color:#069">self</span>)
@@ -1240,8 +1240,8 @@ <h3 class="signature " id="getnameinfo-instance_method">
12401240
mrb_raise(mrb, <span style="color:#036;font-weight:bold">E_SOCKET_ERROR</span>, <span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">&quot;</span><span style="color:#D20">invalid sockaddr</span><span style="color:#710">&quot;</span></span>);
12411241
}
12421242
error = getnameinfo((struct sockaddr *)RSTRING_PTR(sastr), (socklen_t)RSTRING_LEN(sastr), RSTRING_PTR(host), <span style="color:#036;font-weight:bold">NI_MAXHOST</span>, RSTRING_PTR(serv), <span style="color:#036;font-weight:bold">NI_MAXSERV</span>, (int)flags);
1243-
<span style="color:#080;font-weight:bold">if</span> (error != <span style="color:#00D">0</span>) {
1244-
mrb_raisef(mrb, <span style="color:#036;font-weight:bold">E_SOCKET_ERROR</span>, <span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">&quot;</span><span style="color:#D20">getnameinfo: %s</span><span style="color:#710">&quot;</span></span>, gai_strerror(error));
1243+
<span style="color:#080;font-weight:bold">if</span> (error) {
1244+
mrb_raisef(mrb, <span style="color:#036;font-weight:bold">E_SOCKET_ERROR</span>, <span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">&quot;</span><span style="color:#D20">getnameinfo: %S</span><span style="color:#710">&quot;</span></span>, mrb_str_new_cstr(mrb, gai_strerror(error)));
12451245
}
12461246
ary = mrb_ary_new_capa(mrb, <span style="color:#00D">2</span>);
12471247
mrb_str_resize(mrb, host, strlen(RSTRING_PTR(host)));
@@ -1788,19 +1788,23 @@ <h3 class="signature " id="unix_path-instance_method">
17881788
<pre class="lines">
17891789

17901790

1791-
209
1792-
210
1793-
211
1794-
212
1795-
213
1796-
214
1797-
215
1798-
216
1799-
217
1800-
218</pre>
1791+
219
1792+
220
1793+
221
1794+
222
1795+
223
1796+
224
1797+
225
1798+
226
1799+
227
1800+
228
1801+
229
1802+
230
1803+
231
1804+
232</pre>
18011805
</td>
18021806
<td>
1803-
<pre class="code"><span class="info file"># File 'mrbgems/mruby-socket/src/socket.c', line 209</span>
1807+
<pre class="code"><span class="info file"># File 'mrbgems/mruby-socket/src/socket.c', line 219</span>
18041808

18051809
static mrb_value
18061810
mrb_addrinfo_unix_path(mrb_state *mrb, mrb_value <span style="color:#069">self</span>)
@@ -1810,7 +1814,11 @@ <h3 class="signature " id="unix_path-instance_method">
18101814
sastr = mrb_iv_get(mrb, <span style="color:#069">self</span>, mrb_intern_lit(mrb, <span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">&quot;</span><span style="color:#D20">@sockaddr</span><span style="color:#710">&quot;</span></span>));
18111815
<span style="color:#080;font-weight:bold">if</span> (((struct sockaddr *)RSTRING_PTR(sastr))-&gt;sa_family != <span style="color:#036;font-weight:bold">AF_UNIX</span>)
18121816
mrb_raise(mrb, <span style="color:#036;font-weight:bold">E_SOCKET_ERROR</span>, <span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">&quot;</span><span style="color:#D20">need AF_UNIX address</span><span style="color:#710">&quot;</span></span>);
1813-
<span style="color:#080;font-weight:bold">return</span> mrb_str_new_cstr(mrb, ((struct sockaddr_un *)RSTRING_PTR(sastr))-&gt;sun_path);
1817+
<span style="color:#080;font-weight:bold">if</span> (RSTRING_LEN(sastr) &lt; (mrb_int)offsetof(struct sockaddr_un, sun_path) + <span style="color:#00D">1</span>) {
1818+
<span style="color:#080;font-weight:bold">return</span> mrb_str_new(mrb, <span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">&quot;</span><span style="color:#710">&quot;</span></span>, <span style="color:#00D">0</span>);
1819+
} <span style="color:#080;font-weight:bold">else</span> {
1820+
<span style="color:#080;font-weight:bold">return</span> mrb_str_new_cstr(mrb, ((struct sockaddr_un *)RSTRING_PTR(sastr))-&gt;sun_path);
1821+
}
18141822
}</pre>
18151823
</td>
18161824
</tr>
@@ -1822,9 +1830,9 @@ <h3 class="signature " id="unix_path-instance_method">
18221830
</div>
18231831

18241832
<div id="footer">
1825-
Generated on Fri May 11 23:53:59 2018 by
1833+
Generated on Thu May 16 08:48:33 2019 by
18261834
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1827-
0.9.12 in <a href="https://github.com/sagmor/yard-mruby">mruby mode</a> 0.3.0 (ruby-2.5.1).
1835+
0.9.19 in <a href="https://github.com/sagmor/yard-mruby">mruby mode</a> 0.3.0 (ruby-2.5.5).
18281836
</div>
18291837

18301838
</div>

docs/api/ArgumentError.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>
77
Exception: ArgumentError
88

9-
&mdash; Documentation by YARD 0.9.12
9+
&mdash; Documentation by YARD 0.9.19
1010

1111
</title>
1212

@@ -154,9 +154,9 @@ <h2>Constructor Details</h2>
154154
</div>
155155

156156
<div id="footer">
157-
Generated on Fri May 11 23:53:58 2018 by
157+
Generated on Thu May 16 08:48:32 2019 by
158158
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
159-
0.9.12 in <a href="https://github.com/sagmor/yard-mruby">mruby mode</a> 0.3.0 (ruby-2.5.1).
159+
0.9.19 in <a href="https://github.com/sagmor/yard-mruby">mruby mode</a> 0.3.0 (ruby-2.5.5).
160160
</div>
161161

162162
</div>

0 commit comments

Comments
 (0)