summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Giddins <[email protected]>2025-05-17 10:58:37 -0400
committerHiroshi SHIBATA <[email protected]>2025-05-26 11:46:12 +0900
commit485ee6d7a3eb8e7708f777b00289c717adb99bcc (patch)
tree4c959e3ff714f847353f79e644bb52a6a1598bf8
parentd8d0da571340e40bc6dbabab7a421a94d55e5b72 (diff)
[rubygems/rubygems] Remove backport of LATEST_RUBY_WITHOUT_PATCH_VERSIONS
Signed-off-by: Samuel Giddins <[email protected]> https://github.com/rubygems/rubygems/commit/24c8073b24
-rw-r--r--lib/bundler/rubygems_ext.rb17
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/bundler/rubygems_ext.rb b/lib/bundler/rubygems_ext.rb
index 361d0d3002..31bdf8afcb 100644
--- a/lib/bundler/rubygems_ext.rb
+++ b/lib/bundler/rubygems_ext.rb
@@ -136,23 +136,6 @@ module Gem
full_gem_path
end
- unless const_defined?(:LATEST_RUBY_WITHOUT_PATCH_VERSIONS)
- LATEST_RUBY_WITHOUT_PATCH_VERSIONS = Gem::Version.new("2.1")
-
- alias_method :rg_required_ruby_version=, :required_ruby_version=
- def required_ruby_version=(req)
- self.rg_required_ruby_version = req
-
- @required_ruby_version.requirements.map! do |op, v|
- if v >= LATEST_RUBY_WITHOUT_PATCH_VERSIONS && v.release.segments.size == 4
- [op == "~>" ? "=" : op, Gem::Version.new(v.segments.tap {|s| s.delete_at(3) }.join("."))]
- else
- [op, v]
- end
- end
- end
- end
-
def insecurely_materialized?
false
end