Sha256: 15ba9f42f47bd3e4d1fc71b42abbf1efb0f6aeb10a425d06b19ba402851af5d9

Contents?: true

Size: 496 Bytes

Versions: 43

Compression:

Stored size: 496 Bytes

Contents

# 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

Version data entries

43 entries across 43 versions & 3 rubygems

Version Path
bundler-2.5.7 lib/bundler/vendored_uri.rb
rubygems-update-3.5.6 bundler/lib/bundler/vendored_uri.rb
bundler-2.5.6 lib/bundler/vendored_uri.rb