vendor/rqrcode/lib/rqrcode/qrcode/qr_8bit_byte.rb in barby-0.2.1 vs vendor/rqrcode/lib/rqrcode/qrcode/qr_8bit_byte.rb in barby-0.3.0

- old
+ new

@@ -25,10 +25,12 @@ end def write( buffer ) ( 0...@data.size ).each do |i| - buffer.put( @data[i], 8 ) + c = @data[i] + c = c.ord if c.respond_to?(:ord)#String#[] returns single-char string in 1.9, .ord gets ASCII pos + buffer.put( c, 8 ) end end end end