- normalized = ''
- IO.popen(['arv-normalize'], 'w+b') do |io|
- io.write combined
- io.close_write
- while buf = io.read(2**16)
- normalized += buf
- end
- end
-
- normalized_stripped = ''
- IO.popen(['arv-normalize', '--strip'], 'w+b') do |io|
- io.write combined
- io.close_write
- while buf = io.read(2**16)
- normalized_stripped += buf
- end
- end
+ normalized = arv_normalize combined
+ normalized_stripped = arv_normalize combined, '--strip'