From 231562c2c008319b8fedc46ffacfe562916663d8 Mon Sep 17 00:00:00 2001 From: tyl0re Date: Tue, 14 Jul 2020 10:45:18 +0000 Subject: [PATCH] puts makes the Output not Pipeable, with print the Output can be parsed with another toolwq --- bin/gm1356 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/gm1356 b/bin/gm1356 index f671616..25fac1f 100755 --- a/bin/gm1356 +++ b/bin/gm1356 @@ -41,7 +41,8 @@ device = GM1356::Device.new(options) begin device.read do |record| - puts record.to_s + print record.to_s + print "\n" end rescue Exception # rubocop:disable Lint/RescueException device.close