disable new relic

This commit is contained in:
Konstantin Haase 2013-02-13 17:55:11 +01:00
parent 4f05de7214
commit 48cf45c5f6
4 changed files with 9 additions and 9 deletions

View File

@ -91,7 +91,6 @@ PATH
travis-api (0.0.1) travis-api (0.0.1)
backports (~> 2.5) backports (~> 2.5)
hubble (~> 0.1) hubble (~> 0.1)
newrelic_rpm (~> 3.5.5.0)
pg (~> 0.13.2) pg (~> 0.13.2)
rack-contrib (~> 1.1) rack-contrib (~> 1.1)
rack-ssl (~> 1.3, >= 1.3.3) rack-ssl (~> 1.3, >= 1.3.3)
@ -185,7 +184,6 @@ GEM
multipart-post (1.1.5) multipart-post (1.1.5)
net-http-persistent (2.8) net-http-persistent (2.8)
net-http-pipeline (1.0.1) net-http-pipeline (1.0.1)
newrelic_rpm (3.5.5.38)
pg (0.13.2) pg (0.13.2)
polyglot (0.3.3) polyglot (0.3.3)
postmark (0.9.18) postmark (0.9.18)

View File

@ -9,8 +9,10 @@ require 'core_ext/module/load_constants'
models = Travis::Model.constants.map(&:to_s) models = Travis::Model.constants.map(&:to_s)
only = [/^(ActiveRecord|ActiveModel|Travis|GH|#{models.join('|')})/] only = [/^(ActiveRecord|ActiveModel|Travis|GH|#{models.join('|')})/]
skip = ['Travis::Memory', 'GH::ResponseWrapper', 'Travis::NewRelic']
[Travis::Api, Travis, GH].each do |target| [Travis::Api, Travis, GH].each do |target|
target.load_constants! :only => only, :skip => ['Travis::Memory', 'GH::ResponseWrapper'], :debug => false target.load_constants! :only => only, :skip => skip, :debug => false
end end
run Travis::Api::App.new run Travis::Api::App.new

View File

@ -1,6 +1,6 @@
require 'travis/api/app' require 'travis/api/app'
require 'sinatra/base' require 'sinatra/base'
require 'new_relic/agent/instrumentation/rack' #require 'new_relic/agent/instrumentation/rack'
class Travis::Api::App class Travis::Api::App
# Superclass for any endpoint and middleware. # Superclass for any endpoint and middleware.
@ -8,9 +8,9 @@ class Travis::Api::App
class Base < Sinatra::Base class Base < Sinatra::Base
register Extensions::SmartConstants register Extensions::SmartConstants
configure :production do # configure :production do
require 'newrelic_rpm' # require 'newrelic_rpm'
end # end
error NotImplementedError do error NotImplementedError do
content_type :txt content_type :txt

View File

@ -166,7 +166,7 @@ Gem::Specification.new do |s|
s.add_dependency 'hubble', '~> 0.1' s.add_dependency 'hubble', '~> 0.1'
s.add_dependency 'backports', '~> 2.5' s.add_dependency 'backports', '~> 2.5'
s.add_dependency 'pg', '~> 0.13.2' s.add_dependency 'pg', '~> 0.13.2'
s.add_dependency 'newrelic_rpm', '~> 3.5.5.0' #s.add_dependency 'newrelic_rpm', '~> 3.5.5.0'
s.add_dependency 'thin', '~> 1.4' s.add_dependency 'thin', '~> 1.4'
s.add_dependency 'sinatra', '~> 1.3' s.add_dependency 'sinatra', '~> 1.3'
s.add_dependency 'sinatra-contrib', '~> 1.3' s.add_dependency 'sinatra-contrib', '~> 1.3'