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

Use CDN instead of raw.githubusercontent.com

This commit is contained in:
Kazuhiro NISHIYAMA 2019-12-16 16:59:23 +09:00
parent 8b921813aa
commit 6545d5bbb9
No known key found for this signature in database
GPG key ID: 262ED8DBB4222F7A

View file

@ -3,7 +3,7 @@
require "open-uri"
require "yaml"
EMAIL_YML_URL = "https://raw.githubusercontent.com/ruby/ruby-commit-hook/master/config/email.yml"
EMAIL_YML_URL = "https://cdn.jsdelivr.net/gh/ruby/ruby-commit-hook/config/email.yml"
email_yml = URI(EMAIL_YML_URL).read.sub(/\A(?:#.*\n)+/, "").gsub(/^# +(.+)$/) { $1 + ": []" }