summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2018-01-31 08:47:35 -0300
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2018-01-31 08:48:06 -0300
commitbe337de36acf0d97a795b5f2bf5d7c14a910f968 (patch)
treed6db56ebc04ab740826297bff179db8cf8acc574
parent6466c78c750399740069865337f8189d75e259ea (diff)
downloadbundler-be337de36acf0d97a795b5f2bf5d7c14a910f968.tar.gz
1.8.7 compatible file read
-rw-r--r--lib/bundler.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb
index e559ad3d18..8fc8da6dcb 100644
--- a/lib/bundler.rb
+++ b/lib/bundler.rb
@@ -441,7 +441,7 @@ EOF
def load_gemspec_uncached(file, validate = false)
path = Pathname.new(file)
- contents = path.binread
+ contents = read_file(file)
spec = if contents.start_with?("---") # YAML header
eval_yaml_gemspec(path, contents)
else