update Ruby with Rake file and improved script