For upgrade to major versions, it is better to update gems one at a time to resolve one issue at a time. Bundle commands:
bundle update gemname
bundle update ––source gemname
Reference:
You Should Update One Gem at a Time with Bundler. Here’s How