This is something I released a while ago, but I thought I'd announce
it here too, as I'm sure not everyone in the target group reads my
blog.

Barby is a pure Ruby barcode generator. It doesn't rely on 3rd party
libraries (well, unless you want it to do anything useful) and it's
easily extensible. It currently supports the following symbologies:

*  Code128
  * GS1128 (aka EAN/UCC-128)
* EAN-13 (aka UPC-A)
  * Bookland
  * EAN-8
* Code39

The logic for generating graphical representations of the barcodes is
split into "outputters". There are currently two outputters, one that
uses RMagick and another that annotates a PDF/Writer document, and
creating new ones is easy.

Some sample code:


require 'barby'
require 'barby/outputter/rmagick_outputter'

barcode = Barby::Code128B.new('IM-IN-UR-BARCODE')

File.open('test.png', 'w') do |f|
  f.write barcode.to_png
end


Barby is available as a gem (gem install barby) and from
http://github.com/toretore/barby/tree/master

If you feel like adding support for more symbologies, let me know and
I'll put it into the "official" repo. If you spec it too, that's
doubly awesome.


--
Tore Darell
http://tore.darell.no/