Update ruler.lua

(thanks Jusonex!)