Slight modification on viddl-rb ruby gem