diff --git a/rakelib/changelog.rake b/rakelib/changelog.rake index 7d0ebdef..5d4f6bea 100644 --- a/rakelib/changelog.rake +++ b/rakelib/changelog.rake @@ -7,7 +7,8 @@ task "changelog:generate" do releases = JSON.parse(release_json) entries = releases.map {|release| release.transform_keys!(&:to_sym) - release => {name:, tag_name:, created_at:, body:} + # release => {name:, tag_name:, created_at:, body:} # ruby 3.0 + case release; in name:, tag_name:, created_at:, body:; nil end # ruby 2.7 url = "https://github.com/ruby/net-imap/tree/#{tag_name}" date = created_at[0, 10] body = body.delete("\r").gsub(/^#/, "##")