diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-07-11 11:33:03 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-08-03 09:29:58 +0900 |
commit | 31541d738924e714e9b580b33eb44608ea248486 (patch) | |
tree | ca2b6978863bf7662eaf437b327216e4f4bd4a27 /lib/bundler/rubygems_integration.rb | |
parent | fc42423b8df652e3f75436200e5bdfbacd167959 (diff) |
[bundler/bundler] Drop rubygems 2.5.0 and 2.5.1 support
https://github.com/bundler/bundler/commit/8ecd722b9f
Diffstat (limited to 'lib/bundler/rubygems_integration.rb')
-rw-r--r-- | lib/bundler/rubygems_integration.rb | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/bundler/rubygems_integration.rb b/lib/bundler/rubygems_integration.rb index 15771e6c0a..dcf0007ca2 100644 --- a/lib/bundler/rubygems_integration.rb +++ b/lib/bundler/rubygems_integration.rb @@ -314,19 +314,6 @@ module Bundler end end - # RubyGems-generated binstubs call Kernel#gem - def binstubs_call_gem? - !provides?(">= 2.5.2") - end - - # only 2.5.2+ has all of the stub methods we want to use, and since this - # is a performance optimization _only_, - # we'll restrict ourselves to the most - # recent RG versions instead of all versions that have stubs - def stubs_provide_full_functionality? - provides?(">= 2.5.2") - end - def replace_gem(specs, specs_by_name) reverse_rubygems_kernel_mixin @@ -335,7 +322,6 @@ module Bundler kernel = (class << ::Kernel; self; end) [kernel, ::Kernel].each do |kernel_class| redefine_method(kernel_class, :gem) do |dep, *reqs| - executables ||= specs.map(&:executables).flatten if ::Bundler.rubygems.binstubs_call_gem? if executables && executables.include?(File.basename(caller.first.split(":").first)) break end |