General

Profile

tommy (Masahiro Tomita)

  • Login: tommy
  • Email: tommy@tmtm.org
  • Registered on: 07/15/2008
  • Last sign in: 04/24/2025

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 25 25

Activity

12/24/2025

02:14 AM Ruby Revision 10a68210 (git): [DOC] Fix IO::Buffer document
tommy (Masahiro Tomita)

11/27/2025

02:10 AM Ruby Revision 2e770cdf (git): Fix argument handling in `IO::Buffer#each_byte` (#15309)
The method incorrectly ignored its first argument and treated the second argument as offset and the third as count.
This change makes the first argument be treated as offset and the second as count.
Also fix incorrect block parameter in...
tommy (Masahiro Tomita)

05/19/2024

02:24 PM Ruby Revision cb43540d (git): Fix IO::Buffer comment
tommy (Masahiro Tomita)
02:24 PM Ruby Revision 48ebd77e (git): Fix comment: Buffer.for(string) without block returns readonly buffer
tommy (Masahiro Tomita)

11/16/2022

05:15 AM Ruby Bug #19132 (Closed): `**` を引数に指定すると no anonymous keyword rest parameter になる
Ruby 3.2.0-preview3 で次のスクリプトを実行するとエラーになります。
```ruby
def hoge(a, *, k: nil, **)
foo(*, **)
end
```
```
% ruby hoge.rb
hoge.rb:2: no anonymous keyword rest parameter
```
次のようにキーワードパラメータが `**` だけであればエラーになりませんでした。
```ruby...
tommy (Masahiro Tomita)

12/26/2021

03:07 AM Ruby Bug #18433 (Closed): 「‘rb_cData’ is deprecated: by: rb_cObject. Will be removed in 3.1.」が 3.1 でも出力される
拡張ライブラリ内で rb_cData を使うと
```
‘rb_cData’ is deprecated: by: rb_cObject. Will be removed in 3.1.
```
という warning が出力されますが、これが 3.1 でも出ます。
別に害はないのですが、メッセージとしては妙な感じです。
```
/tmp/hoge% cat hoge.c
#include <ruby.h>
void Init_hoge(voi...
tommy (Masahiro Tomita)

12/04/2021

12:48 PM Ruby Feature #17047: Support parameters for MAIL FROM and RCPT TO
How about this: https://github.com/ruby/net-smtp/pull/34
For example, to send `MAIL FROM:<sender@example.com> size=12345` and `RCPT TO:<rcpt@example.com> notify=success`:
```ruby
smtp.send_message("msg", Net::STMP::Address.new("sender@...
tommy (Masahiro Tomita)

10/03/2021

05:26 AM Ruby Revision ef350b3a (git): [ruby/reline] Simplify SIGWINCH handler to avoid aborting when resizing.
https://github.com/ruby/reline/commit/481add0537 tommy (Masahiro Tomita)

09/14/2020

08:23 AM Ruby Revision 141404e8 (git): [ruby/net-smtp] Net::SMTP.start arguments are keyword arguments
The helo argument is not important, but the helo argument must be
specified to specify the user and secret arguments.
If helo, user, secret, and authtype arguments are keyword arguments,
it is not necessary to specify the helo argument.
...
tommy (Masahiro Tomita)
08:22 AM Ruby Revision 888e04ae (git): [ruby/net-smtp] TLS should not check the host name by default.
In tlsconnect(), the host name is checked when
@ssl_context.verify_mode is not OpenSSL::SSL::VERIFY_NONE, but the
verify_mode of @ssl_context generated by default is nil.
https://github.com/ruby/net-smtp/commit/bde75a15b5
tommy (Masahiro Tomita)

Also available in: Atom