Added checksum generation for composite in ruby