Commit 6393d001 authored by Samuel Giddins's avatar Samuel Giddins

Actually use the CocoaPods OpenURI hotfix

parent a33b9a3c
......@@ -91,7 +91,7 @@ module Pod
@podspecs_paths << '.' if @podspecs_paths.empty?
@podspecs_paths.each do |path|
if path =~ %r{https?://}
require 'open-uri'
require 'cocoapods/open-uri'
output_path = podspecs_tmp_dir + File.basename(path)
output_path.dirname.mkpath
open(path) do |io|
......
......@@ -14,7 +14,7 @@ module Pod
if podspec_path.exist?
store_podspec(sandbox, podspec_path, is_json)
else
require 'open-uri'
require 'cocoapods/open-uri'
begin
open(podspec_uri) { |io| store_podspec(sandbox, io.read, is_json) }
rescue OpenURI::HTTPError => e
......
# rubocop:disable Style/FileName
require 'open-uri'
# Allow OpenURI to follow http to https redirects.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment