Revert "Disable new relic"

This reverts commit 6412a07ad1.
This commit is contained in:
Piotr Sarnacki 2013-09-02 10:15:53 +02:00
parent 97958a4ce4
commit 0c3e12dfa3
3 changed files with 8 additions and 0 deletions

View File

@ -75,6 +75,7 @@ PATH
specs: specs:
travis-api (0.0.1) travis-api (0.0.1)
backports (~> 2.5) backports (~> 2.5)
newrelic_rpm (~> 3.6.6)
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)
@ -178,6 +179,7 @@ GEM
multipart-post (1.2.0) multipart-post (1.2.0)
net-http-persistent (2.9) net-http-persistent (2.9)
net-http-pipeline (1.0.1) net-http-pipeline (1.0.1)
newrelic_rpm (3.6.6.147)
pg (0.13.2) pg (0.13.2)
polyglot (0.3.3) polyglot (0.3.3)
pry (0.9.12.2) pry (0.9.12.2)

View File

@ -7,6 +7,10 @@ class Travis::Api::App
class Base < Sinatra::Base class Base < Sinatra::Base
register Extensions::SmartConstants register Extensions::SmartConstants
configure :production do
require 'newrelic_rpm'
end
error NotImplementedError do error NotImplementedError do
content_type :txt content_type :txt
status 501 status 501

View File

@ -47,6 +47,7 @@ Gem::Specification.new do |s|
"Rakefile", "Rakefile",
"config.ru", "config.ru",
"config/database.yml", "config/database.yml",
"config/newrelic.yml",
"config/unicorn.rb", "config/unicorn.rb",
"docs/00_overview.md", "docs/00_overview.md",
"docs/01_cross_origin.md", "docs/01_cross_origin.md",
@ -198,6 +199,7 @@ Gem::Specification.new do |s|
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.6.6'
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'