[#75687] [Ruby trunk Bug#12416] struct rb_id_table lacks mark function — shyouhei@...
Issue #12416 has been reported by Shyouhei Urabe.
3 messages
2016/05/23
[#75763] [Ruby trunk Feature#12435] Using connect_nonblock to open TCP connections in Net::HTTP#connect — mohamed.m.m.hafez@...
Issue #12435 has been reported by Mohamed Hafez.
3 messages
2016/05/28
[#75774] Errno::EAGAIN thrown by OpenSSL::SSL::SSLSocket#connect_nonblock — Mohamed Hafez <mohamed.m.m.hafez@...>
Hi all, every now and then in my production server, I'm
4 messages
2016/05/30
[#75775] Re: Errno::EAGAIN thrown by OpenSSL::SSL::SSLSocket#connect_nonblock
— Mohamed Hafez <mohamed.m.m.hafez@...>
2016/05/30
Or does MRI's OpenSSL::SSL::SSLSocket#connect_nonblock just return
[#75782] Important: Somewhat backwards-incompatible change (Fwd: [ruby-cvs:62388] duerst:r55225 (trunk): * string.c: Activate full Unicode case mapping for UTF-8) — Martin J. Dürst <duerst@...>
V2l0aCB0aGUgY2hhbmdlIGJlbG93LCBJIGhhdmUgYWN0aXZhdGVkIGZ1bGwgVW5pY29kZSBjYXNl
4 messages
2016/05/31
[ruby-core:75799] [Ruby trunk Feature#12447] Integer#digits for extracting digits of place-value notation in any base
From:
muraken@...
Date:
2016-05-31 14:37:03 UTC
List:
ruby-core #75799
Issue #12447 has been reported by Kenta Murata. ---------------------------------------- Feature #12447: Integer#digits for extracting digits of place-value notation in any base https://bugs.ruby-lang.org/issues/12447 * Author: Kenta Murata * Status: Open * Priority: Normal * Assignee: Yukihiro Matsumoto ---------------------------------------- I sometimes want to extract digits of place-value notation of integer numbers. One typical use case is calculating checksum digit. I found some code extracting digits by the way like `int.to_s.chars.map(&:to_i)`. - https://github.com/joeljunstrom/ruby_luhn/blob/master/lib/luhn.rb#L43 - https://github.com/elitwin/check_digit/blob/master/lib/check_digit/damm.rb#L28 - https://github.com/elitwin/check_digit/blob/master/lib/check_digit/luhn.rb#L14 - https://github.com/elitwin/check_digit/blob/master/lib/check_digit/verhoeff.rb#L42 Introducing Integer#digits can reduce needless string allocation in such cases. The patch was pushed into the repository in github. https://github.com/mrkn/ruby/commit/6072e8a53bc67c40969b7749ed9d7f02ec0eb458 -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>