meh/ruby-tesseract-ocr — pull request #8 by raincole (2012-10-11 05:35:53+00:00)
Title: The --psm option should be parsed as a number

or you will get:

tesseract.rb --psm 1 foo.png
/Users/raincole/.rvm/gems/ruby-1.9.3-p194/gems/ffi-1.1.5/lib/ffi/enum.rb:149:in `to_native': invalid enum value, :"8" (ArgumentError)