From ac9e44526d192617a49f3df9fa1074d584ee54cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elias=20Fr=C3=B6hner?= Date: Mon, 8 Jul 2024 14:35:54 +0200 Subject: [PATCH] Updated standardrb --- lib/zint/barcode.rb | 2 +- spec/zint/data_matrix_spec.rb | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/zint/barcode.rb b/lib/zint/barcode.rb index 9a323b8..2d391a2 100644 --- a/lib/zint/barcode.rb +++ b/lib/zint/barcode.rb @@ -441,7 +441,7 @@ def encoded_data_raw_ffi # @return [Array] encoded data def encoded_data_as_array_of_strings rows.times.map do |row| - binstr = @zint_symbol[:encoded_data].to_ptr.get_bytes(144 * row, (width+7) / 8) + binstr = @zint_symbol[:encoded_data].to_ptr.get_bytes(144 * row, (width + 7) / 8) binstr.unpack1("b*")[0, width] end end diff --git a/spec/zint/data_matrix_spec.rb b/spec/zint/data_matrix_spec.rb index f0f60fb..b6d7319 100644 --- a/spec/zint/data_matrix_spec.rb +++ b/spec/zint/data_matrix_spec.rb @@ -14,16 +14,16 @@ module Zint it "provides encoded_data" do enc = Zint::DataMatrix.new(value: "12345").encode.encoded_data_as_array_of_strings - expect(enc).to eq( ["1010101010", - "1101100111", - "1100010110", - "1100110101", - "1100111000", - "1000011111", - "1101011110", - "1110000111", - "1101100100", - "1111111111"]) + expect(enc).to eq(["1010101010", + "1101100111", + "1100010110", + "1100110101", + "1100111000", + "1000011111", + "1101011110", + "1110000111", + "1101100100", + "1111111111"]) end describe "export" do