-
Notifications
You must be signed in to change notification settings - Fork 340
Fix uncaught Gem::LoadError in binstub loader #448
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix uncaught Gem::LoadError in binstub loader #448
Conversation
r? @jonleighton (@rails-bot has picked a reviewer for you, use r? to override) |
rescue LoadError => e | ||
raise unless e.message.end_with? spring_bin_path, 'spring/binstub' | ||
raise unless e.message =~ /spring/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.include?("spring")
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should suffice, I'll update.
r? @grosser |
The previous binstub code did not catch Gem::LoadErrors which can be generated by bundler or rubygems trying to load the spring gem. This fixes rails#447.
831bdcf
to
1fea946
Compare
Updated to use |
Btw. I've manually tested against heroku with the new binstub code. |
…error Fix uncaught Gem::LoadError in binstub loader
1.4.4 |
The previous binstub code added in #444 did not catch Gem::LoadErrors which can be generated by bundler or rubygems trying to load the spring gem.
This fixes #447.