update twitter client def syntax to gem v5