-
Notifications
You must be signed in to change notification settings - Fork 13
System Gems
The following gems and code libraries are supported because they either have binary dependencies or they are very large gems. To use the ones on this list, simply use a require at the top of your worker.
bson_ext
curb
em-http-request
eventmachine
mysql2
net-scp
net-sftp
net-ssh
nokogiri
rmagick # Use require 'RMagick'
sqlite3
typhoeus
yajl-ruby
Here's an example of all that you need to do to make use of one of these supported gems:
require 'iron_worker'
require 'nokogiri'
class PageWorker < IronWorker::Base
def run
...
end
end
We update the gems on a regular basis. And while older versions may be retained, if you need a specific version, we recommend using the merge_gem command to bring in the specific version you need.
merge_gem "some_other_gem_with_version", "1.2.3"
In some situations you may receive errors with respect to system gems. In these cases, you made need to unmerge it. One reason for this is because it could be a binary gem and with the auto-merging of dependencies, binary gems might be loaded but not able to execute within IronWorker. (Many binary gems are included in the IronWorker system for just this reason.)
unmerge_gem 'nokogiri'