From aa41143033f94383d6476c5d53ac7bff1c7fc789 Mon Sep 17 00:00:00 2001 From: nick evans Date: Wed, 1 May 2024 09:13:59 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Make=20changelog.rake=20compatib?= =?UTF-8?q?le=20with=20ruby=202.7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Oops. We'll drop ruby 2.7 soon. Until then, let's stay compatible. --- rakelib/changelog.rake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(/^#/, "##")