From 1eaacb1ef538fe5af2fe231bb340fc39fef67547 Mon Sep 17 00:00:00 2001 From: bronzdoc Date: Tue, 16 Jul 2019 18:50:36 -0600 Subject: [rubygems/rubygems] Use File#open instead of Kernel#open https://github.com/rubygems/rubygems/commit/bfb3f67494 --- lib/rubygems/stub_specification.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/rubygems/stub_specification.rb b/lib/rubygems/stub_specification.rb index e2f6e245e7..2f3245f5d0 100644 --- a/lib/rubygems/stub_specification.rb +++ b/lib/rubygems/stub_specification.rb @@ -113,8 +113,7 @@ class Gem::StubSpecification < Gem::BasicSpecification begin saved_lineno = $. - # TODO It should be use `File.open`, but bundler-1.16.1 example expects Kernel#open. - open loaded_from, OPEN_MODE do |file| + File.open loaded_from, OPEN_MODE do |file| begin file.readline # discard encoding line stubline = file.readline.chomp -- cgit v1.2.3