various: remove hyphen from homebrew-cask (#52346)

This commit is contained in:
commitay
2018-09-23 10:04:06 +10:00
committed by GitHub
parent 5aa40b291c
commit 903493e09c
19 changed files with 51 additions and 51 deletions
+2 -2
View File
@@ -6,8 +6,8 @@ require 'tmpdir'
pr_url = ARGV[0]
abort 'You need to give the script exactly one argument, the URL to a pull request from an official Homebrew-Cask tap' if ARGV[0].empty?
abort 'URL is not from an official Homebrew-Cask tap' if pr_url !~ %r{^https://github.com/Homebrew/homebrew-cask.*}
abort 'You need to give the script exactly one argument, the URL to a pull request from an official Homebrew Cask tap' if ARGV[0].empty?
abort 'URL is not from an official Homebrew Cask tap' if pr_url !~ %r{^https://github.com/Homebrew/homebrew-cask.*}
pr_api = pr_url.sub(%r{^https://github.com/([^/]+)/([^/]+)/pull/([^/]+).*}, 'https://api.github.com/repos/\1/\2/pulls/\3/files')
pr_json = JSON.parse(open(pr_api).read)