ruby-changes:59271
From: Kazuhiro <ko1@a...>
Date: Mon, 16 Dec 2019 17:02:57 +0900 (JST)
Subject: [ruby-changes:59271] 8b921813aa (master): Fix open without close [ci skip]
https://git.ruby-lang.org/ruby.git/commit/?id=8b921813aa From 8b921813aa8d5ea8f4e6c1e700ad48a120c500ab Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA <zn@m...> Date: Mon, 16 Dec 2019 16:58:21 +0900 Subject: Fix open without close [ci skip] diff --git a/tool/gen-mailmap.rb b/tool/gen-mailmap.rb index c3fa441..3575aaf 100755 --- a/tool/gen-mailmap.rb +++ b/tool/gen-mailmap.rb @@ -5,7 +5,7 @@ require "yaml" https://github.com/ruby/ruby/blob/trunk/tool/gen-mailmap.rb#L5 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| -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/