Install ruby-serialport by entering the following commands in the terminal:
sudo apt update sudo apt install ruby-serialport
Description:
Library for using RS-232 serial ports from Ruby programs
This library provides an API for Ruby to control RS-232 serial ports, and check and set the current state of the signals on the serial line.
Homepage: http://github.com/hparra/ruby-serialport/
Version: 1.3.1-1build5
Section: universe/ruby