Use ruby_block and don't use checksum.

Chef checksum only supports SHA-256