Ruby script to measure the charge of a laptop's battery on GNU/Linux