Gem::LoadError - terminal-notifier is not part of the bundle
mattheworiordan opened this issue · 1 comments
Have started getting this every time I run rerun with Ruby 2.2.5 (didn't have this with 2.2.1 oddly), although I upgraded to the latest bundler was well (which is most likely the issue).
/Users/mattheworiordan/.rvm/gems/ruby-2.2.5@global/gems/bundler-1.12.5/lib/bundler/rubygems_integration.rb:322:in `block in replace_gem': terminal-notifier is not part of the bundle. Add it to Gemfile. (Gem::LoadError)
from /Users/mattheworiordan/.rvm/gems/ruby-2.2.5/bin/terminal-notifier:22:in `<main>'
from /Users/mattheworiordan/.rvm/gems/ruby-2.2.5/bin/ruby_executable_hooks:15:in `eval'
from /Users/mattheworiordan/.rvm/gems/ruby-2.2.5/bin/ruby_executable_hooks:15:in `<main>'
Checking my local Gem for terminal-notifier, I see I was running terminal-notifier (1.6.2)
Tried updating to the latest version 1.6.3 but that did not make any difference.
Adding this to my Gemfile solves it:
gem "terminal-notifier", require: false
So I am raising this issue only for others really to say:
- The error is simply bundler telling you that the command you are calling exists, but is not in your bundle. I suspect this has happened after the check for terminal-notifier
rerun/lib/rerun/notification.rb
Line 31 in 3e4c486
- Add it to your Gemfile (which is a bit shit, but works) to get around for it now.
@alexch I think this Gem needs to check if terminal-notififer
is in the bundle in a different way to avoid this error, perhaps instead something like if defined?(TeminalNotifier)
(pseudo code alert) or maybe Bundler provides a better API for this.
Of course the other option may be to simply remove the gem altogether from your load path as well...