accept_uri_http (Gem::LocalRemoteOptions)

    # File lib/rubygems/local_remote_options.rb, line 18
      def accept_uri_http
        OptionParser.accept URI::HTTP do |value|
          begin
            uri = URI.parse value
          rescue URI::InvalidURIError
            raise OptionParser::InvalidArgument, value
          end

          unless ['http', 'https', 'file'].include?(uri.scheme)
             raise OptionParser::InvalidArgument, value
          end

          value
        end
      end