Update Gem library

Fix #46.