Yacaph Discussions > Feature Requests
Following through on a suggestion by Alex, I've slightly modified the plugin so that it may be deployed on sites that don't have RMagick installed. You still need RMagick to generate the images though. The changes have been committed to SVN.
Hi Eric, your plugin still requires rmagick to be installed on the deployment machines. I checked out trunk today.
Hi Eric, I don't know what your fix for this was, but I moved the require 'RMagick' to the generate task rather than init.rb and that works for me.
It's me again.. :-) Ended up wrapping the require in begin/rescue/end. I guess the proper way would be to move the RMagick into a separate file and only require that from the rake task.
Hello Morten,
I've done as you have suggested and moved the require 'RMagick' line to the rake task. It seems to work fine for me. Perhaps you would like to try it out again.
Cheers
Hi Eric,
That doesn't work either IIRC - this is due to rake loading all tasks during deployment if you do rake db:migrate as part of the deployment.
Put it on github, I'll be happy to work on it with you. It's by far the cleanest captcha implementation I've found - thanks for making it.
Br,
Morten
Since I effectively have no way of testing this, could I suggest that you move the require 'RMagick' inside the :generate task (on line 10). This way the require should be executed only when the task is actually run. If it works as you expect it, then I'll make the change in the code and post it to rubyforge. Thanks

Have you thought of a good idea for this plugin? Please post it in this thread.