Ruby gem to calculate some variables stats