Add some contributions to ruby