Fix deprecated interface for YAML.safe_load
Passing in the permitted classes as the second argument was deprecated in Psych 3 (https://github.com/ruby/psych/pull/378) and removed in Psych 4 (https://github.com/ruby/psych/pull/487). Ruby 3.1 ships with Psych 4, so to make the code work for Ruby 2.7 and up, use the `permitted_classes` keyword argument. Part of https://gitlab.com/gitlab-org/gitlab/-/issues/396231 Changelog: changed
显示
- ee/spec/services/security/security_orchestration_policies/create_pipeline_service_spec.rb 1 个添加, 1 个删除...ty_orchestration_policies/create_pipeline_service_spec.rb
- lib/gitlab/serializer/ci/variables.rb 1 个添加, 1 个删除lib/gitlab/serializer/ci/variables.rb
- spec/lib/gitlab/ci/lint_spec.rb 2 个添加, 2 个删除spec/lib/gitlab/ci/lint_spec.rb
- spec/lib/gitlab/ci/yaml_processor/result_spec.rb 2 个添加, 2 个删除spec/lib/gitlab/ci/yaml_processor/result_spec.rb
- spec/lib/gitlab/import_export/config_spec.rb 1 个添加, 1 个删除spec/lib/gitlab/import_export/config_spec.rb
- spec/requests/api/lint_spec.rb 4 个添加, 4 个删除spec/requests/api/lint_spec.rb
- tooling/lib/tooling/test_map_generator.rb 3 个添加, 1 个删除tooling/lib/tooling/test_map_generator.rb
加载中
想要评论请 注册 或 登录