General

Profile

mrkn (Kenta Murata)

Issues

Projects

Activity

03/11/2019

06:25 AM Ruby trunk Feature #15653: Proposal: Add Time#floor
ActiveRecord を使うアプリケーションで、時刻をDBに入れて取り出すと秒の単位で切り捨てられます。
昔 Rails アプリケーションを作っていた頃は、この挙動のためにテストコードでの時刻の比較が面倒だったことを思い出しました。
mrkn (Kenta Murata)

02/14/2019

03:29 PM Ruby trunk Revision 67076 (trunk): Introduce RVALUE_EMBED_LEN_MAX to remove a magic number
* include/ruby/ruby.h: replace a magic number with RVALUE_EMBED_LEN_MAX,
which indicates the number of VALUE elemen...
mrkn (Kenta Murata)
03:29 PM Ruby trunk Revision 75708642 (ruby-git): Introduce RVALUE_EMBED_LEN_MAX to remove a magic number
* include/ruby/ruby.h: replace a magic number with RVALUE_EMBED_LEN_MAX,
which indicates the number of VALUE elemen...
mrkn (Kenta Murata)

02/07/2019

06:12 AM Ruby trunk Feature #15573: Permit zero step in Numeric#step and Range#step
> Tell us why? Consistency?
The reason is that zero step allows when the block is not given.
```
>> 1.step(10,...
mrkn (Kenta Murata)

01/30/2019

06:16 AM Ruby trunk Bug #15518: good old Infinite range notation behavior
I fixed the case for ranges whose end is Float::INFINITY.
If you want to continue to discuss for the other cases, pl...
mrkn (Kenta Murata)
06:06 AM Ruby trunk Bug #15518 (Closed): good old Infinite range notation behavior
Applied in changeset trunk|r66947.
----------
enumerator.c: fix arith_seq_first for Infinity
* enumerator.c (arith_...
mrkn (Kenta Murata)
06:05 AM Ruby trunk Revision 66947 (trunk): enumerator.c: fix arith_seq_first for Infinity
* enumerator.c (arith_seq_first): fix for Float::INFINITY.
* test/ruby/test_arithmetic_sequence.rb: add tests.
* nu...
mrkn (Kenta Murata)
06:05 AM Ruby trunk Revision 6f6cf042 (ruby-git): enumerator.c: fix arith_seq_first for Infinity
* enumerator.c (arith_seq_first): fix for Float::INFINITY.
* test/ruby/test_arithmetic_sequence.rb: add tests.
* nu...
mrkn (Kenta Murata)
03:35 AM Ruby trunk Misc #15546: DevelopersMeeting20190207Japan
* [Feature #15573] Permit zero step in `Numeric#step` and `Range#step`
* I make this issue as a feature request be...
mrkn (Kenta Murata)
03:32 AM Ruby trunk Feature #15573 (Open): Permit zero step in Numeric#step and Range#step
Numeric#step disallows zero in the 2nd argument, but it allows zero passed as the value of `by:` keyword argument. I... mrkn (Kenta Murata)

Also available in: Atom