diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-12-24 09:32:59 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-12-24 10:35:31 +0900 |
commit | b0ad6cb371747a04eb12580e74c73179173cc89d (patch) | |
tree | ee873d5c682c4665c838e3ea43585536229a5509 /lib/rubygems/stub_specification.rb | |
parent | de0523feddf740d28fe772f3a22ff9907f88bf69 (diff) |
Merge RubyGems-3.3.2 and Bundler-2.3.2
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5334
Diffstat (limited to 'lib/rubygems/stub_specification.rb')
-rw-r--r-- | lib/rubygems/stub_specification.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/stub_specification.rb b/lib/rubygems/stub_specification.rb index 4246f9de86..47fe7da695 100644 --- a/lib/rubygems/stub_specification.rb +++ b/lib/rubygems/stub_specification.rb @@ -110,7 +110,7 @@ class Gem::StubSpecification < Gem::BasicSpecification begin saved_lineno = $. - File.open loaded_from, OPEN_MODE do |file| + Gem.open_with_flock loaded_from, OPEN_MODE do |file| begin file.readline # discard encoding line stubline = file.readline.chomp |