After recent ruby update some packages are not working like metasploit so i compiled and hosted older ruby version in my repository Termuxblack.
So lets downgrade ruby in Termux :)
- Termuxblack ( Install )
- First update your termux
- Now remove ruby3 if installed (skip this step if you don't have ruby3)
- Now just install ruby2