teoljungberg / fx

Versioned database functions and triggers for Rails
MIT License
763 stars 77 forks source link

Support Ruby 3 #76

Closed pjungwir closed 3 years ago

pjungwir commented 3 years ago

The biggest change in Ruby 3 is how keyword parameters are distinct from positional parameters. If we want to support 3 and pre-3, we need to take a single hash as a positional parameter (option = {}). If we use the **option syntax then things fail on the Ruby 3/Rails 6 combo because of how Rails calls our methods.

I also updated the Travis & Appraisal files. There is no need to support Rails pre-6 on Ruby 3, since Rails itself has no plans to support it.