barby
barby copied to clipboard
The Ruby barcode generator
In using the HTML outputter I found that I wanted to show the barcode data in human readable format below the barcode. Almost all barcodes on things like SKUs etc....
I keep on getting the following warning message: ``` /home/alexander/.rbenv/versions/3.1.1/lib/ruby/gems/3.1.0/gems/barby-0.6.8/lib/barby/outputter/rmagick_outputter.rb:56: warning: passing a block without an image argument is deprecated ``` The code that this error arises from: ```ruby #Returns...
Hi, I am trying to generate a barcode using the following code ``` require 'barby' require 'barby/barcode/code_128' require 'barby/outputter/png_outputter' code = 'QC1021111800004-0101' barcode = Barby::Code128B.new(code) ``` but the result is...
Hello, I am trying to generate a barcode using the following code require 'barby' require 'barby/barcode/code_128' require 'barby/outputter/png_outputter' number = '1123456789876' barcode = Barby::Code128A.new(number) If I run it in irb...
I am trying to generate barcode and print in the html page. Below is my code ```ruby require 'barby/barcode/code_128' require 'barby/outputter/html_outputter' @barcode ||= Barby::Code128B.new( 'Some data' ).to_html ``` `in my...
When this file is required, i get **unmatched (: /(?:\d{2}|�){2,}/** exception. Adding '\\' before use of FNC1 constant to escape properly. We are using ruby 1.8.7 (i know, it's old),...
How gem can support UPC-E type barcode?
Write support for Codabar
``` barcode = Barby::DataMatrix.new(json) blob = Barby::PngOutputter.new(barcode) blob.xdim = 3 blob.ydim = 3 barcode_image = Tempfile.new(['barcode', '.png']) barcode_image.binmode barcode_image.write(blob.to_png) # segfault on this line barcode_image.close ``` Segfault start: ``` .rvm/gems/ruby-2.1.5@project/gems/barby-0.6.5/lib/barby/barcode/data_matrix.rb:24:...
Therefore any calls to validate Barby::QrCode will always return false since this is the default value of the base class Barby::Barcode. Reproduction: barcode = Barby::QrCode.new('1234567890') barcode.valid? == false All of...