Files
news.gitea.happylizard.me/bin/gems/bundler-4.0.21/lib/bundler/vendored_net_http.rb
T
pizza2d1 4cee170d66
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 9s
Add bin and edit workflow
2026-09-16 13:11:16 -06:00

24 lines
735 B
Ruby

# frozen_string_literal: true
# This defined? guard can be removed once RubyGems 3.4 support is dropped.
#
# Bundler specs load this code from `spec/support/vendored_net_http.rb` to avoid
# activating the Bundler gem too early. Without this guard, we get redefinition
# warnings once Bundler is actually activated and
# `lib/bundler/vendored_net_http.rb` is required. This is not an issue in
# RubyGems versions including `rubygems/vendored_net_http` since `require` takes
# care of avoiding the double load.
#
unless defined?(Gem::Net)
begin
require "rubygems/vendored_net_http"
rescue LoadError
begin
require "rubygems/net/http"
rescue LoadError
require "net/http"
Gem::Net = Net
end
end
end