tpitale / mail_room

Forward mail from gmail IMAP to a callback URL or job worker, simply.
MIT License
193 stars 51 forks source link

Fix Ruby 3.0 compatibility with redis-namespace and redis-rb #137

Closed stanhu closed 2 years ago

stanhu commented 2 years ago

Passing in keyword arguments as the last positional Hash argument is deprecated in Ruby 3.0. redis-namespace provides backward compatibility via ruby2_keywords, but this no longer works in Ruby 3.0.

To fix this for both Ruby 2.x and 3.x, we should just pass in keyword arguments explicitly.