To install terraspace via RubyGems.
gem install terraspace
Ruby 2.7 and above is recommended.
The nice thing about this installation method is that is the standard way to install ruby libraries and gems. It integrates with your existing Ruby installation.
If you’re looking for Ruby installation help: Ruby Install docs.