added ruby code written for redmine