Some improvements to Ruby api

Change-Id: Ic0530ad4f174e57e9502976ff72a67ce5b5b0d46
Add checking tasks

Change-Id: I83ae4293a6ff2988ca420357f0f5256e8ded43fa