kbl/codebar — Issue #5: Not getting anything to work :-/
Author: sandal
Created: 2012-01-30 05:14:17+00:00
State: open

Without up to date documentation it's hard for me to tell if I'm even using this right, but unfortunately both of the following files failed in very unpleasant ways for me.

```
>> barcode = Codebar::Barcode.new('spec/images/ean13_clear.png')
=> #>
>> barcode.decode
D, [2012-01-30T00:09:29.767455 #14485] DEBUG -- : processing Convert
D, [2012-01-30T00:09:29.797948 #14485] DEBUG -- : processing Grayscale
D, [2012-01-30T00:09:29.816791 #14485] DEBUG -- : processing Sharp
D, [2012-01-30T00:09:29.838245 #14485] DEBUG -- : processing Binary
NoMethodError: undefined method `each_slice' for nil:NilClass
from /Users/seacreature/devel/rmu/s10/marcin/codebar/lib/codebar/standard/ean13/code.rb:75:in `decode'
from /Users/seacreature/devel/rmu/s10/marcin/codebar/lib/codebar/standard/ean13/code.rb:64:in `initialize'
from /Users/seacreature/devel/rmu/s10/marcin/codebar/lib/codebar/barcode.rb:8:in `new'
from /Users/seacreature/devel/rmu/s10/marcin/codebar/lib/codebar/barcode.rb:8:in `block in '
from /Users/seacreature/devel/rmu/s10/marcin/codebar/lib/codebar/barcode.rb:25:in `call'
from /Users/seacreature/devel/rmu/s10/marcin/codebar/lib/codebar/barcode.rb:25:in `decode'
from (irb):13
from /Users/seacreature/.rvm/rubies/ruby-1.9.3-p0/bin/irb:16:in `

'
>> barcode = Codebar::Barcode.new('spec/images/ean13_clear.jpg')
=> #>
>> barcode.decode
D, [2012-01-30T00:09:55.262070 #14485] DEBUG -- : processing Convert
D, [2012-01-30T00:09:55.334432 #14485] DEBUG -- : processing Grayscale
D, [2012-01-30T00:09:55.368784 #14485] DEBUG -- : processing Sharp
D, [2012-01-30T00:09:55.411830 #14485] DEBUG -- : processing Binary
Codebar::Standard::Ean13::BarcodeDataCorruptedError: Codebar::Standard::Ean13::BarcodeDataCorruptedError
from /Users/seacreature/devel/rmu/s10/marcin/codebar/lib/codebar/standard/ean13/code.rb:109:in `block (2 levels) in normalize'
from /Users/seacreature/devel/rmu/s10/marcin/codebar/lib/codebar/standard/ean13/code.rb:108:in `each'
from /Users/seacreature/devel/rmu/s10/marcin/codebar/lib/codebar/standard/ean13/code.rb:108:in `block in normalize'
from /Users/seacreature/devel/rmu/s10/marcin/codebar/lib/codebar/standard/ean13/code.rb:106:in `each'
from /Users/seacreature/devel/rmu/s10/marcin/codebar/lib/codebar/standard/ean13/code.rb:106:in `each_slice'
from /Users/seacreature/devel/rmu/s10/marcin/codebar/lib/codebar/standard/ean13/code.rb:106:in `each'
from /Users/seacreature/devel/rmu/s10/marcin/codebar/lib/codebar/standard/ean13/code.rb:106:in `map'
from /Users/seacreature/devel/rmu/s10/marcin/codebar/lib/codebar/standard/ean13/code.rb:106:in `normalize'
from /Users/seacreature/devel/rmu/s10/marcin/codebar/lib/codebar/standard/ean13/code.rb:76:in `block in decode'
from /Users/seacreature/devel/rmu/s10/marcin/codebar/lib/codebar/standard/ean13/code.rb:75:in `each'
from /Users/seacreature/devel/rmu/s10/marcin/codebar/lib/codebar/standard/ean13/code.rb:75:in `each_slice'
from /Users/seacreature/devel/rmu/s10/marcin/codebar/lib/codebar/standard/ean13/code.rb:75:in `decode'
from /Users/seacreature/devel/rmu/s10/marcin/codebar/lib/codebar/standard/ean13/code.rb:64:in `initialize'
from /Users/seacreature/devel/rmu/s10/marcin/codebar/lib/codebar/barcode.rb:8:in `new'
from /Users/seacreature/devel/rmu/s10/marcin/codebar/lib/codebar/barcode.rb:8:in `block in '
from /Users/seacreature/devel/rmu/s10/marcin/codebar/lib/codebar/barcode.rb:25:in `call'
from /Users/seacreature/devel/rmu/s10/marcin/codebar/lib/codebar/barcode.rb:25:in `decode'
from (irb):15
from /Users/seacreature/.rvm/rubies/ruby-1.9.3-p0/bin/irb:16:in `

'
```