Updated gems and fixed rubocop style issues