update ruby-hub_client
migrate js api to gem