Add short and canonical methods
Bug fix in ruby version