From 95c8986b8ef5fd63cffba499fc419d43f537962e Mon Sep 17 00:00:00 2001 From: Ilya Zhitomirskiy Date: Wed, 28 Sep 2011 17:53:29 -0700 Subject: [PATCH] added new relic resque support --- Gemfile | 1 + Gemfile.lock | 3 +++ config/application.rb | 1 + 3 files changed, 5 insertions(+) diff --git a/Gemfile b/Gemfile index 787405b0a..64b187eb4 100644 --- a/Gemfile +++ b/Gemfile @@ -76,6 +76,7 @@ gem 'SystemTimer', '1.2.1', :platforms => :ruby_18 gem 'hoptoad_notifier' gem 'newrelic_rpm', :require => false +gem 'rpm_contrib', :require => false # tags diff --git a/Gemfile.lock b/Gemfile.lock index 0eb89e4b4..e487b02c0 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -378,6 +378,8 @@ GEM resque (~> 1.0) rest-client (1.6.1) mime-types (>= 1.16) + rpm_contrib (2.1.4) + newrelic_rpm (>= 3.1.1) rspec (2.6.0) rspec-core (~> 2.6.0) rspec-expectations (~> 2.6.0) @@ -525,6 +527,7 @@ DEPENDENCIES resque-timeout (= 1.0.0) rest-client (= 1.6.1) roxml! + rpm_contrib rspec (>= 2.0.0) rspec-core (= 2.6.0) rspec-instafail (>= 0.1.7) diff --git a/config/application.rb b/config/application.rb index d3c8ee4af..88b99e816 100644 --- a/config/application.rb +++ b/config/application.rb @@ -19,6 +19,7 @@ Bundler.require(:default, Rails.env) if defined?(Bundler) # use newrelic if configured via config/newrelic.yml require 'newrelic_rpm' if File.exists?(File.expand_path('../newrelic.yml', __FILE__)) +require 'rpm_contrib' if File.exists?(File.expand_path('../newrelic.yml', __FILE__)) module Diaspora class Application < Rails::Application