Fix Ruby 3.1 support
- ci: Add Ruby 3.1 and 3.2 to matrix
- Use
YAML.safe_load_file
and enable aliases. Backport the implementation for Ruby 2.7. - Update pg gem to v1.5.3. We need to update to support Ruby 3.1 and 3.2. This is the version used in GitLab Rails.
- Update rspec-related gems for Ruby 3.2 support
Edited by Stan Hu