mirror of
https://github.com/danbee/tube-status-server
synced 2025-03-04 08:39:12 +00:00
Add New Relic.
This commit is contained in:
parent
d248c8e1dd
commit
87968a533a
2
Gemfile
2
Gemfile
@ -5,6 +5,8 @@ gem 'faraday'
|
||||
gem 'xml-simple'
|
||||
gem 'foreman'
|
||||
|
||||
gem 'newrelic_rpm'
|
||||
|
||||
group :development do
|
||||
gem 'shotgun'
|
||||
end
|
||||
|
||||
@ -8,6 +8,7 @@ GEM
|
||||
foreman (0.61.0)
|
||||
thor (>= 0.13.6)
|
||||
multipart-post (1.1.5)
|
||||
newrelic_rpm (3.5.4.34)
|
||||
rack (1.5.0)
|
||||
rack-protection (1.3.2)
|
||||
rack
|
||||
@ -31,6 +32,7 @@ PLATFORMS
|
||||
DEPENDENCIES
|
||||
faraday
|
||||
foreman
|
||||
newrelic_rpm
|
||||
shotgun
|
||||
sinatra
|
||||
thin
|
||||
|
||||
@ -3,6 +3,10 @@ require 'json'
|
||||
require 'xmlsimple'
|
||||
require 'faraday'
|
||||
|
||||
configure :production do
|
||||
require 'newrelic_rpm'
|
||||
end
|
||||
|
||||
class Tubestatus < Sinatra::Base
|
||||
def parse_xml_feed(feed_url)
|
||||
uri = URI(feed_url)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user