From 8b921813aa8d5ea8f4e6c1e700ad48a120c500ab Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA Date: Mon, 16 Dec 2019 16:58:21 +0900 Subject: [PATCH] Fix open without close [ci skip] --- tool/gen-mailmap.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/gen-mailmap.rb b/tool/gen-mailmap.rb index c3fa44107d..3575aafae3 100755 --- a/tool/gen-mailmap.rb +++ b/tool/gen-mailmap.rb @@ -5,7 +5,7 @@ require "yaml" EMAIL_YML_URL = "https://raw.githubusercontent.com/ruby/ruby-commit-hook/master/config/email.yml" -email_yml = URI.open(EMAIL_YML_URL).read.sub(/\A(?:#.*\n)+/, "").gsub(/^# +(.+)$/) { $1 + ": []" } +email_yml = URI(EMAIL_YML_URL).read.sub(/\A(?:#.*\n)+/, "").gsub(/^# +(.+)$/) { $1 + ": []" } email = YAML.load(email_yml) YAML.load(DATA.read).each do |name, mails|