Ruby sass is not working after upgrading to macOS Catalina

If after upgrade to Catalina (MacOS 10.15) compas doesn’t work, this is procedure to make it run:

Open terminal and run this code:

brew update && brew install rbenv ruby-build
xcode-select --install
sudo gem install -n /usr/local/bin sass
sudo gem install -n /usr/local/bin compass