warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
vlazar opened this issue · 1 comments
vlazar commented
Can new version of gem be released?
This small change https://github.com/ClosureTree/closure_tree/pull/373/files#diff-4e9c3ec5f63b801dd2128282bb992e89b5894d45b513dda0f98a805406646afdR11 didn't get into latest gem release 7.2.0 and produces warnings in Ruby 2.7:
/Users/vlazar/.asdf/installs/ruby/2.7.1/lib/ruby/gems/2.7.0/gems/closure_tree-7.2.0/lib/closure_tree/has_closure_tree_root.rb:11: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/Users/vlazar/.asdf/installs/ruby/2.7.1/lib/ruby/gems/2.7.0/gems/activerecord-6.1.4/lib/active_record/associations.rb:1607: warning: The called method `has_one' is defined here
And in Ruby 3.0 this would prevent closure_tree from working at all.
seuros commented
yes.