lib/beardley/barcode.rb in beardley-barcode-0.0.1 vs lib/beardley/barcode.rb in beardley-barcode-1.0.0
- old
+ new
@@ -2,11 +2,13 @@
require 'pathname'
module Beardley
module Barcode
- def self.classpath
- return Dir[Pathname.new(__FILE__).dirname.join("..", "..", "vendor", "java", "*.jar")].collect{ |path| Pathname.new(path) }
+ RjbLoader.before_load do |config|
+ Dir[Pathname.new(__FILE__).dirname.join("..", "..", "vendor", "java", "*.jar")].each do |path|
+ config.classpath << File::PATH_SEPARATOR + File.expand_path(path)
+ end
end
end
end