NameError (uninitialized constant Barby::Code128B): in latest jruby

1,046 views
Skip to first unread message

CMA

unread,
Oct 11, 2011, 8:48:51 AM10/11/11
to Barby
We updated jruby from 1.2.0 to 1.6.4 and barby got cranky. Done anyone
have a fix for this?

barby 0.5.0
chunky_png-0.8.0
barby-chunky_png 0.3.3

-------------------------------------
require 'barby'
require 'barby/outputter/png_outputter'

barcode = Barby::Code128B.new('The noise of mankind has become too
much')
File.open('code128b.png', 'w'){|f|
f.write barcode.to_png(:height => 20, :margin => 5)
}

Result
uninitialized constant Barby::Code128B (NameError)

Tore Darell

unread,
Oct 11, 2011, 9:04:01 AM10/11/11
to Barby
You have to require the symbology you're using from 0.5 on:
http://groups.google.com/group/ruby-barby/browse_thread/thread/d2417bd9908e1f1f

The web site is quite outdated and I'm too lazy to update it :/
Reply all
Reply to author
Forward
0 new messages