1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

better choice of __FILE__ (see issue #395)

This commit is contained in:
Ryan Fitzgerald 2011-12-29 01:07:33 -08:00
parent 22ae454d4e
commit cfe5515736

View file

@ -33,7 +33,7 @@ def check_dependencies
ENV["BUNDLE_GEMFILE"] = File.expand_path("../Gemfile", __FILE__) ENV["BUNDLE_GEMFILE"] = File.expand_path("../Gemfile", __FILE__)
Bundler.definition.missing_specs Bundler.definition.missing_specs
eval('nil', TOPLEVEL_BINDING, '(pry)') # workaround for issue #395 eval('nil', TOPLEVEL_BINDING, '<main>') # workaround for issue #395
rescue LoadError rescue LoadError
# if Bundler isn't installed, we'll just assume your setup is ok. # if Bundler isn't installed, we'll just assume your setup is ok.
rescue Bundler::GemNotFound rescue Bundler::GemNotFound