Skip to content
This repository has been archived by the owner on Mar 4, 2022. It is now read-only.

warning: Using the last argument as keyword parameters is deprecated #81

Open
azzarello opened this issue May 21, 2021 · 1 comment
Open

Comments

@azzarello
Copy link

This line shows up on every invocation of bro similar to the deprecation errors that have also been mentioned before, however commenting out the corresponding line of the error causes more issues.

/var/lib/gems/2.7.0/gems/json_pure-1.8.1/lib/json/common.rb:155: warning: Using the last argument as keyword parameters is deprecated

For reference, here is some code around this line in common.rb

  # Parse the JSON document _source_ into a Ruby data structure and return it.
  #
  # _opts_ can have the following
  # keys:
  # * *max_nesting*: The maximum depth of nesting allowed in the parsed data
  #   structures. Disable depth checking with :max_nesting => false. It defaults
  #   to 100.
  # * *allow_nan*: If set to true, allow NaN, Infinity and -Infinity in
  #   defiance of RFC 4627 to be parsed by the Parser. This option defaults
  #   to false.
  # * *symbolize_names*: If set to true, returns symbols for the names
  #   (keys) in a JSON object. Otherwise strings are returned. Strings are
  #   the default.
  # * *create_additions*: If set to false, the Parser doesn't create
  #   additions even if a matching class and create_id was found. This option
  #   defaults to true.
  # * *object_class*: Defaults to Hash
  # * *array_class*: Defaults to Array
  def parse(source, opts = {})
    Parser.new(source, opts).parse
  end
@8k4
Copy link

8k4 commented Jan 17, 2022

Having the same issue. Would love to know if you sorted it out.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants