ruby lib script