summaryrefslogtreecommitdiff
path: root/exe/bundle_ruby
diff options
context:
space:
mode:
Diffstat (limited to 'exe/bundle_ruby')
-rwxr-xr-xexe/bundle_ruby2
1 files changed, 1 insertions, 1 deletions
diff --git a/exe/bundle_ruby b/exe/bundle_ruby
index 9bee595265..346dbf2ae2 100755
--- a/exe/bundle_ruby
+++ b/exe/bundle_ruby
@@ -20,7 +20,7 @@ module Bundler
end
def eval_gemfile(gemfile, contents = nil)
- contents ||= File.open(gemfile, "rb") {|f| f.read }
+ contents ||= File.open(gemfile, "rb", &:read)
instance_eval(contents, gemfile.to_s, 1)
rescue SyntaxError => e
bt = e.message.split("\n")[1..-1]