Skip to content

Commit f1cbd58

Browse files
deivid-rodriguezhsbt
authored andcommitted
[rubygems/rubygems] Stop generating binstubs with support for RubyGems before 2.6.2
RubyGems generated binstubs still provide support for this ancient version. This makes no sense since we prevent downgrades to such old versions. ruby/rubygems@089cdc3b77
1 parent 51e8900 commit f1cbd58

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

lib/rubygems/installer.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -771,12 +771,7 @@ def app_script_text(bin_file_name)
771771
end
772772
end
773773
774-
if Gem.respond_to?(:activate_bin_path)
775774
load Gem.activate_bin_path('#{spec.name}', '#{bin_file_name}', version)
776-
else
777-
gem #{spec.name.dump}, version
778-
load Gem.bin_path(#{spec.name.dump}, #{bin_file_name.dump}, version)
779-
end
780775
TEXT
781776
end
782777

test/rubygems/test_gem_installer.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,7 @@ def test_app_script_text
4848
end
4949
end
5050
51-
if Gem.respond_to?(:activate_bin_path)
5251
load Gem.activate_bin_path('a', 'executable', version)
53-
else
54-
gem "a", version
55-
load Gem.bin_path("a", "executable", version)
56-
end
5752
EOF
5853

5954
wrapper = installer.app_script_text "executable"

0 commit comments

Comments
 (0)