I think this would also do better either extracted to a method or rewritten like this:

```ruby
installed_gem = install_message.include?('Installing')
if installed_gem
  Bundler.ui.info install_message
else
  Bundler.ui.debug install_message
end
```

And probably change the name of `install_message` to `gem_message`, since it's clearly not an installation message at this point. :)