[#77789] [Ruby trunk Feature#12012] Add Boolean method — prodis@...
Issue #12012 has been updated by Fernando Hamasaki de Amorim.
4 messages
2016/10/27
[ruby-core:77552] [Ruby trunk Bug#12649][Assigned] DateTime method calls hang
From:
shyouhei@...
Date:
2016-10-11 07:00:58 UTC
List:
ruby-core #77552
Issue #12649 has been updated by Shyouhei Urabe. Status changed from Open to Assigned Assignee set to Nobuyoshi Nakada ---------------------------------------- Bug #12649: DateTime method calls hang https://bugs.ruby-lang.org/issues/12649#change-60818 * Author: Peter Ohler * Status: Assigned * Priority: Normal * Assignee: Nobuyoshi Nakada * ruby -v: * Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN ---------------------------------------- When ActiveSupport 5 time is required (require 'activesupport/time') the rb_funcall() function on hour, minute, second, offset, and others causes a hang. This issue gives more details. https://github.com/ohler55/oj/issues/306#issuecomment-235400808 A work around is to define methods on the DateTime class that just call super. That gives the correct results and does not hang. Note that calling respond_to? returns true. The methods work as expected in IRB or a Ruby script. Somehow Active Support 5 puts DateTime objects in a state that is not consistent between Ruby calls and those made from C. -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:[email protected]?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>