Remove finalize and update gem dependency.