Updated gems and fixed rubocop issues