~singpolyma/dhall-ruby

3d243959bb4236709d26d7135d965eb8b3ddc336 — Stephen Paul Weber 2 years ago e44a3fc
Switch to URI
1 files changed, 3 insertions(+), 3 deletions(-)

M lib/dhall/resolve.rb
M lib/dhall/resolve.rb => lib/dhall/resolve.rb +3 -3
@@ 109,7 109,7 @@ module Dhall
				path_reader: ReadPathSources,
				http_reader: ReadHttpSources,
				https_reader: http_reader,
				public_gateway: "cloudflare-ipfs.com"
				public_gateway: URI("https://cloudflare-ipfs.com")
			)
				@path_reader = path_reader
				@http_reader = http_reader


@@ 142,7 142,7 @@ module Dhall
			def gateway_fallback(source, promise)
				promise.catch {
					@http_reader.call([
						source.to_uri(Import::Http, "localhost:8000")
						source.to_uri(Import::Http, URI("http://localhost:8000"))
					], "localhost").first
				}.catch do
					@https_reader.call([


@@ 362,7 362,7 @@ module Dhall
				http_reader: ReadHttpSources,
				https_reader: http_reader,
				environment_reader: ReadEnvironmentSources,
				ipfs_public_gateway: "cloudflare-ipfs.com",
				ipfs_public_gateway: URI("https://cloudflare-ipfs.com"),
				cache: RamCache.new,
				max_depth: 50
			)