Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Ruby 3.1 to Circle tests (#2129)
Remove Aliases in "config/secrets.yml" to support Ruby 3.1 + Rails 6.1 Ruby 3.1 ships with Psych 4. Psych 4 switched it's default YAML parsing mode to a safer mode, including not allowing aliases. This broke parsing of "secrets.yml" in Rails, if the secrets file contains any aliases. Some discussion: https://bugs.ruby-lang.org/issues/17866 Rails PR 42687 implemented a fix, and that fix was included in Rails 7 here: rails/rails@0ebb708 It was also included in the Rails 6-1-stable branch here: rails/rails@aac3edb But that commit happened after Rails 6.1.4 was published, and no patch-level releases have been made for Rails 6.1 since that commit. Only security-level releases have been published. I assume if Rails 6.1.5 is released it will contain the fix. Until Rails 6.1.5 is released, the best option to be able to test Ruby 3.1 against Rails 6.1 apps is probably to just eliminate any aliases in yaml files that Rails uses. Using new CircleCI image "cimg/ruby"
- Loading branch information