Update Ruby setup actions to the latest versions and upgrade several dependencies in Gemfile.lock for improved performance and security.