Upgraded gems and addressed rubocop warnings