[#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@...>
With the change below, I have activated full Unicode case mapping for
4 messages
2016/05/31
[ruby-core:75693] [Ruby trunk Bug#12414] FloatDomainError in infinite Range#include? for certain BigDecimals
From:
nobu@...
Date:
2016-05-23 13:11:37 UTC
List:
ruby-core #75693
Issue #12414 has been updated by Nobuyoshi Nakada.
Subject changed from FloatDomainError in infinite Range#inclyde? for certain BigDecimals to FloatDomainError in infinite Range#include? for certain BigDecimals
----------------------------------------
Bug #12414: FloatDomainError in infinite Range#include? for certain BigDecimals
https://bugs.ruby-lang.org/issues/12414#change-58825
* Author: A Nonymous
* Status: Closed
* Priority: Normal
* Assignee:
* ruby -v: ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-darwin14]
* Backport: 2.1: REQUIRED, 2.2: REQUIRED, 2.3: REQUIRED
----------------------------------------
# What I did
~~~ruby
require 'bigdecimal'
r = 0.04...(Float::INFINITY)
n = BigDecimal.new('0.13E0')
r.include?(n.to_f)
r.include?(n)
~~~
# What I expected
~~~
true
true
~~~
# What happens instead
~~~
true
FloatDomainError: Infinity
from (irb):19:in `to_r'
from (irb):19:in `<=>'
from (irb):19:in `include?'
from (irb):19
from /Users/msiegel/.rvm/rubies/ruby-2.2.3/bin/irb:15:in `<main>'
~~~
# Workaround
To workaround, I am calling `#to_f` on the `BigDecimal` before submitting it to the `Range#include?`
Note that this exception only occurs for certain BigDecimal values, not for all.
--
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>