diff options
author | bronzdoc <lsagastume1990@gmail.com> | 2019-07-16 18:50:36 -0600 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-07-31 07:47:02 +0800 |
commit | 1eaacb1ef538fe5af2fe231bb340fc39fef67547 (patch) | |
tree | e4eb6c680dbccbefc17d653baffc034709fb12ac | |
parent | 41dd9f7e67c1d767a7d040cd79f26985e3996821 (diff) | |
download | ruby-1eaacb1ef538fe5af2fe231bb340fc39fef67547.tar.gz |
[rubygems/rubygems] Use File#open instead of Kernel#open
https://github.com/rubygems/rubygems/commit/bfb3f67494
-rw-r--r-- | lib/rubygems/stub_specification.rb | 3 |
1 files changed, 1 insertions, 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 |