1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

fix filename

This commit is contained in:
NARUSE, Yui 2020-12-25 15:28:37 +09:00
parent 09216f63ba
commit 67fe290bb3

View file

@ -30,7 +30,7 @@ confirm_w_r_l_o_wd
# Write release note article
path = Time.parse(src[/^date: (.*)/, 1]).
strftime("./#{src[/^lang: (\w+)/, 1]}/news/_posts/%Y-%m-%d-ruby-#{version}-released.md")
strftime("./#{src[/^lang: (\w+)/, 1]}/news/_posts/%Y-%m-%d-ruby-#{version.tr('.', '-')}-released.md")
puts path
File.write(path, src)
end