From 87b113a89319f170693a963ae952c596dc97a3bd Mon Sep 17 00:00:00 2001 From: Alexei Mikhailov Date: Wed, 3 Jul 2013 15:36:37 +0600 Subject: [PATCH] fix(resque-status): fix multi_json error when it choses ok_json adapter --- bin/resque-status | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bin/resque-status b/bin/resque-status index 3085143..e3084fb 100755 --- a/bin/resque-status +++ b/bin/resque-status @@ -4,7 +4,14 @@ # Скрипт для мониторинга состояния resque require 'rubygems' -gem 'resque-integration' + +%w(oj yajl-ruby json gson).each do |library| + begin + gem(library) and break + rescue Gem::LoadError + # ignore, go to next adapter + end +end require 'resque' require 'redis'