blob: 2efddc65f997a86d305925793611878c88ad733a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# frozen_string_literal: true
module Bundler; end
# Use RubyGems vendored copy when available. Otherwise fallback to Bundler
# vendored copy. The vendored copy in Bundler can be removed once support for
# RubyGems 3.5 is dropped.
begin
require "rubygems/vendor/uri/lib/uri"
rescue LoadError
require_relative "vendor/uri/lib/uri"
Gem::URI = Bundler::URI
module Gem
def URI(uri) # rubocop:disable Naming/MethodName
Bundler::URI(uri)
end
module_function :URI
end
end
|