nahi / avl_tree

AVL tree and Red-black tree in Ruby
BSD 2-Clause "Simplified" License
66 stars 17 forks source link

Enumerator.new -> .to_enum to avoid deprecation messages #11

Closed evg2108 closed 1 year ago

boutil commented 2 years ago

Hi,

This is now creating errors in the test suite with Ruby3.0, as the deprecated syntax for the Enumerator constructor is gone. This is found in Debian for example here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=996127 The bug is solved with the very same patch as provided in this pull request.

nahi commented 1 year ago

Thanks for the patch. Let me close it without merging in favor or https://github.com/nahi/avl_tree/pull/10 which was submitted 2 years before. Sorry for the late ack.