script/update-cdn-ips in github-pages-health-check-1.3.0 vs script/update-cdn-ips in github-pages-health-check-1.3.1

- old
+ new

@@ -1,15 +1,16 @@ #!/usr/bin/env ruby -#/ Usage script/update-ips -#/ updates config/cloudflare-ips.txt and config/fastly-ips.txt +# frozen_string_literal: true +# / Usage script/update-ips +# / updates config/cloudflare-ips.txt and config/fastly-ips.txt -require 'open-uri' -require 'json' +require "open-uri" +require "json" SOURCES = { - cloudflare: "https://www.cloudflare.com/ips-v4", - fastly: "https://api.fastly.com/public-ip-list" -} + :cloudflare => "https://www.cloudflare.com/ips-v4", + :fastly => "https://api.fastly.com/public-ip-list" +}.freeze SOURCES.each do |source, url| file = "config/#{source}-ips.txt" puts "Fetching #{url}..." data = open(url).read