shairontoledo / rghost

RGhost is a document creation and conversion API. It uses the Ghostscript framework for the format conversion, utilizes EPS templates and is optimized to work with larger documents. Support(PDF,PS,GIF,TIF,PNG,JPG,etc)
http://rghost.rubyforge.org
MIT License
187 stars 46 forks source link

RGhost::Config.config_platform fails when used on jruby platform #47

Closed edsonlima closed 10 years ago

edsonlima commented 10 years ago

Jruby return RUBY_PLATFORM as 'jruby', not an os identifier, so, GS[:path] is nil when File.exists?(GS[:path]) is called, resulting in a unexpected "can't convert nil to string" error.