Skip to content
代码片段 群组 项目
提交 d427e9e5 编辑于 作者: Stan Hu's avatar Stan Hu
浏览文件

Merge branch 'eread/make-deprecation-docs-handling-compatible-with-ruby-3_1' into 'master'

Make deprecation docs handling compatible with Ruby 3.1

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/121352



Merged-by: default avatarStan Hu <stanhu@gmail.com>
Approved-by: default avatarStan Hu <stanhu@gmail.com>
Co-authored-by: default avatarEvan Read <eread@gitlab.com>
No related branches found
No related tags found
无相关合并请求
......@@ -14,7 +14,7 @@
['14-10-c.yml', '14-2-b.yml', '14-2-a.yml']
)
# Create dummy YAML data based on file name
allow(YAML).to receive(:load_file) do |file_name|
allow(YAML).to receive(:safe_load_file) do |file_name|
{
'title' => file_name[/[a-z]*\.yml/],
'removal_milestone' => file_name[/\d+-\d+/].tr('-', '.')
......
......@@ -17,7 +17,7 @@ def render
end
entries = source_file_paths.flat_map do |file|
YAML.load_file(file)
YAML.safe_load_file(file, permitted_classes: [Date])
end
entries = entries.sort_by { |d| d["title"] }
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册