From 78812080c2cf77714d9a09c2e7aaaa5c7284ec1b Mon Sep 17 00:00:00 2001 From: Joe Rafaniello Date: Mon, 5 Feb 2024 16:31:01 -0500 Subject: [PATCH] Psych 3.1 is required since we assert safe_load accepts kwargs Followup to discussion in https://github.com/ManageIQ/manageiq-appliance_console/pull/234 3.1 safe_load changed positional to kwargs like aliases: true: https://github.com/ruby/psych/commit/4d4439d6d0adfcbd211ea295779315f1baa7dadd Note, there are other changes to psych over time that ease the changes to the psych 4 defaults to safe_load but this is the absolute minimum we need. safe_load_file was added in 3.2.1: https://github.com/ruby/psych/commit/0210e310d04cbc9b236ccdde6caaf79aab4eb794 unsafe_load and unsafe_load_file was added in 3.3.2: https://github.com/ruby/psych/commit/cb50aa8d3fb8be01897becff77b4922b12a0ab4c safe_load was added with positional arguments in 2.0.0: https://github.com/ruby/psych/commit/2c644e184192975b261a81f486a04defa3172b3f --- Gemfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Gemfile b/Gemfile index 900dbe81504..75afb78cab8 100644 --- a/Gemfile +++ b/Gemfile @@ -61,6 +61,7 @@ gem "net-ldap", "~>0.16.1", :require => false gem "net-ping", "~>1.7.4", :require => false gem "openscap", "~>0.4.8", :require => false gem "optimist", "~>3.0", :require => false +gem "psych", ">=3.1", :require => false # 3.1 safe_load changed positional to kwargs like aliases: true: https://github.com/ruby/psych/commit/4d4439d6d0adfcbd211ea295779315f1baa7dadd gem "pg", ">=1.4.1", :require => false gem "pg-dsn_parser", "~>0.1.1", :require => false gem "query_relation", "~>0.1.0", :require => false