[#97678] [Ruby master Feature#16752] :private param for const_set — bughitgithub@...
Issue #16752 has been reported by bughit (bug hit).
5 messages
2020/04/02
[ruby-core:97986] Deprecation warnings on ext/json/lib/json/common.rb
From:
Martín Fernández <fmartin91@...>
Date:
2020-04-20 23:22:11 UTC
List:
ruby-core #97986
Hello, First time writing to the mailing list here! I just started an upgrade from ruby 2.6.X to 2.7.X. While reviewing the changes that I need to do in my application in order to remove deprecation warnings I noticed a huge amount of warning messages from the json std lib. ``` /bundle/ruby/2.7.0/gems/json-2.2.0/lib/json/common.rb:156: warning: Using the last argument as keyword parameters is deprecated ``` After looking into the code, it seems that the C parser receives as the last argument a set of options as named arguments. The current signature of `JSON::Ext::Parser` expects a `source` as the first argument and a hash with options as the second argument. I was wondering how this API should change in order to remove the warnings. Should the source be a required named argument ? If so, is,`JSON::Ext::Parser` a private API that can be changed ? Thank in advance! Best, Mart鱈n Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>