diff options
| author | Samuel Giddins <segiddins@segiddins.me> | 2018-05-24 21:43:53 -0700 |
|---|---|---|
| committer | Samuel Giddins <segiddins@segiddins.me> | 2018-05-24 21:43:53 -0700 |
| commit | c37607ce40d4a884df68e53faef63c5769fa8dbd (patch) | |
| tree | 237de513623731069d01d17f37d27c89bd6b9422 /lib/bundler.rb | |
| parent | 197ef090950cc379c0c131564154d06fdd1b9a04 (diff) | |
| download | bundler-c37607ce40d4a884df68e53faef63c5769fa8dbd.tar.gz | |
Use filesystem_access when reading a Gemfilesegiddins/read-file-error
Diffstat (limited to 'lib/bundler.rb')
| -rw-r--r-- | lib/bundler.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb index 9944ebd051..8e30bc4f57 100644 --- a/lib/bundler.rb +++ b/lib/bundler.rb @@ -421,7 +421,9 @@ EOF end def read_file(file) - File.open(file, "rb", &:read) + SharedHelpers.filesystem_access(file, :read) do + File.open(file, "rb", &:read) + end end def load_marshal(data) |
