Blame SOURCES/rubygems-3.2.22-fix-requirement-equals.patch

60f33a
From c082c6eb7c786a432bea23cf78839f64585cb630 Mon Sep 17 00:00:00 2001
60f33a
From: Hiroshi SHIBATA <hsbt@ruby-lang.org>
60f33a
Date: Wed, 7 Jul 2021 14:07:29 +0900
60f33a
Subject: [PATCH] Sync RubyGems and Bundler with upstream
60f33a
60f33a
---
60f33a
 lib/bundler.rb                                |   2 +-
60f33a
 lib/bundler/cli/doctor.rb                     |  12 +-
60f33a
 lib/bundler/cli/install.rb                    |   2 +-
60f33a
 lib/bundler/compact_index_client.rb           |   4 +-
60f33a
 lib/bundler/current_ruby.rb                   |   8 +-
60f33a
 lib/bundler/definition.rb                     |  44 +-----
60f33a
 lib/bundler/dsl.rb                            |  14 +-
60f33a
 lib/bundler/installer.rb                      |   8 +-
60f33a
 lib/bundler/lockfile_parser.rb                |  22 +--
60f33a
 lib/bundler/plugin/installer.rb               |   2 +-
60f33a
 lib/bundler/rubygems_ext.rb                   |   2 +
60f33a
 lib/bundler/source/rubygems.rb                |  13 --
60f33a
 lib/bundler/source_list.rb                    |  55 +++++---
60f33a
 .../lib/connection_pool/monotonic_time.rb     |   2 +-
60f33a
 .../lib/connection_pool/timed_stack.rb        |   4 +-
60f33a
 lib/bundler/worker.rb                         |   4 +-
60f33a
 lib/rubygems.rb                               |   2 +-
60f33a
 lib/rubygems/core_ext/tcpsocket_init.rb       |   4 +-
60f33a
 lib/rubygems/deprecate.rb                     |  59 +++++++-
60f33a
 lib/rubygems/gemcutter_utilities.rb           |  13 +-
60f33a
 lib/rubygems/installer.rb                     |   2 +-
60f33a
 lib/rubygems/remote_fetcher.rb                |  15 +-
60f33a
 lib/rubygems/request/connection_pools.rb      |   2 +-
60f33a
 lib/rubygems/request/http_pool.rb             |   2 +-
60f33a
 lib/rubygems/request_set.rb                   |   2 +-
60f33a
 lib/rubygems/specification.rb                 |   2 +-
60f33a
 lib/rubygems/uri_parser.rb                    |   8 ++
60f33a
 lib/rubygems/uri_parsing.rb                   |  23 ---
60f33a
 lib/rubygems/user_interaction.rb              |   2 +-
60f33a
 spec/bundler/bundler/cli_spec.rb              |  34 +++--
60f33a
 spec/bundler/bundler/definition_spec.rb       |   2 +-
60f33a
 spec/bundler/bundler/source_list_spec.rb      |  42 +++---
60f33a
 spec/bundler/commands/doctor_spec.rb          |  24 +++-
60f33a
 spec/bundler/commands/update_spec.rb          |  88 ++++++++++++
60f33a
 .../install/gemfile/eval_gemfile_spec.rb      |  32 +++++
60f33a
 spec/bundler/install/gemfile/sources_spec.rb  |  70 +++++++++
60f33a
 .../install/gems/compact_index_spec.rb        |   4 +-
60f33a
 .../install/gems/dependency_api_spec.rb       |   4 +-
60f33a
 spec/bundler/install/global_cache_spec.rb     |   7 +-
60f33a
 spec/bundler/lock/lockfile_spec.rb            |  82 +----------
60f33a
 spec/bundler/realworld/edgecases_spec.rb      | 133 +-----------------
60f33a
 spec/bundler/realworld/slow_perf_spec.rb      |  10 +-
60f33a
 spec/bundler/spec_helper.rb                   |   2 +-
60f33a
 spec/bundler/support/api_request_limit_hax.rb |  16 +++
60f33a
 .../artifice/compact_index_rate_limited.rb    |   2 +-
60f33a
 spec/bundler/support/artifice/endpoint.rb     |   2 +-
60f33a
 spec/bundler/support/hax.rb                   |  25 ----
60f33a
 spec/bundler/support/helpers.rb               |   4 -
60f33a
 spec/bundler/support/matchers.rb              |   8 +-
60f33a
 spec/bundler/support/path.rb                  |   4 +
60f33a
 test/rubygems/helper.rb                       |   2 +-
60f33a
 test/rubygems/test_gem_gemcutter_utilities.rb |  12 ++
60f33a
 52 files changed, 477 insertions(+), 466 deletions(-)
60f33a
 delete mode 100644 lib/rubygems/uri_parsing.rb
60f33a
 create mode 100644 spec/bundler/support/api_request_limit_hax.rb
60f33a
60f33a
diff --git a/lib/bundler/rubygems_ext.rb b/lib/bundler/rubygems_ext.rb
60f33a
index c95664965c99..9828fc885c94 100644
60f33a
--- a/lib/bundler/rubygems_ext.rb
60f33a
+++ b/lib/bundler/rubygems_ext.rb
60f33a
@@ -134,6 +134,8 @@ def to_lock
60f33a
     class Requirement
60f33a
       module OrderIndependentComparison
60f33a
         def ==(other)
60f33a
+          return unless Gem::Requirement === other
60f33a
+
60f33a
           if _requirements_sorted? && other._requirements_sorted?
60f33a
             super
60f33a
           else