[#75225] [Ruby trunk Feature#12324] Support OpenSSL 1.1.0 (and drop support for 0.9.6/0.9.7) — k@...
Issue #12324 has been reported by Kazuki Yamaguchi.
6 messages
2016/04/27
[#78693] Re: [Ruby trunk Feature#12324] Support OpenSSL 1.1.0 (and drop support for 0.9.6/0.9.7)
— Eric Wong <normalperson@...>
2016/12/17
k@rhe.jp wrote:
[#78701] Re: [Ruby trunk Feature#12324] Support OpenSSL 1.1.0 (and drop support for 0.9.6/0.9.7)
— Kazuki Yamaguchi <k@...>
2016/12/17
On Sat, Dec 17, 2016 at 01:31:12AM +0000, Eric Wong wrote:
[#78702] Re: [Ruby trunk Feature#12324] Support OpenSSL 1.1.0 (and drop support for 0.9.6/0.9.7)
— Eric Wong <normalperson@...>
2016/12/17
Kazuki Yamaguchi <k@rhe.jp> wrote:
[ruby-core:74833] [Ruby trunk Bug#12136] OpenStruct.new(format: :bar).send :format # => too few arguments
From:
dblock@...
Date:
2016-04-06 18:26:27 UTC
List:
ruby-core #74833
Issue #12136 has been updated by Daniel Doubrovkine. > a) Keep behavior the same and rubyists can alleviate these by using `public_send` instead of `send` It doesn't seem that swapping `send` by `public_send` has any effect. Is there a workaround for existing code that would make things work the way it worked in Ruby 2.2.x? ---------------------------------------- Bug #12136: OpenStruct.new(format: :bar).send :format # => too few arguments https://bugs.ruby-lang.org/issues/12136#change-57964 * Author: Niko Dittmann * Status: Open * Priority: Normal * Assignee: * ruby -v: ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux] * Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN ---------------------------------------- #send(:format) to an OpenStruct with a field named :format raises an ArgumentError in Ruby 2.3.0: ~~~ OpenStruct.new(format: :bar).send :format ArgumentError: too few arguments ~~~ It works as expected in ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux] and with any other method name I tried: ~~~ OpenStruct.new(f: :bar).send :f => :bar ~~~ String or Symbol in the OpenStruct definition and as argument of #send make no difference. -- 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>