fix capturing output buffer
add gem version badge