1
0
mirror of https://github.com/danbee/tube-status-server synced 2025-03-04 08:39:12 +00:00

Update bundle and rename app.

This commit is contained in:
Dan Barber 2013-01-30 13:37:29 +00:00
parent a06776e75f
commit d248c8e1dd
4 changed files with 3 additions and 9 deletions

View File

@ -1,7 +1,6 @@
source :rubygems source :rubygems
gem 'sinatra' gem 'sinatra'
gem 'sinatra-jsonp'
gem 'faraday' gem 'faraday'
gem 'xml-simple' gem 'xml-simple'
gem 'foreman' gem 'foreman'

View File

@ -7,7 +7,6 @@ GEM
multipart-post (~> 1.1) multipart-post (~> 1.1)
foreman (0.61.0) foreman (0.61.0)
thor (>= 0.13.6) thor (>= 0.13.6)
multi_json (1.3.7)
multipart-post (1.1.5) multipart-post (1.1.5)
rack (1.5.0) rack (1.5.0)
rack-protection (1.3.2) rack-protection (1.3.2)
@ -18,9 +17,6 @@ GEM
rack (~> 1.3, >= 1.3.6) rack (~> 1.3, >= 1.3.6)
rack-protection (~> 1.2) rack-protection (~> 1.2)
tilt (~> 1.3, >= 1.3.3) tilt (~> 1.3, >= 1.3.3)
sinatra-jsonp (0.4.1)
multi_json (~> 1.3.7)
sinatra (~> 1.0)
thin (1.5.0) thin (1.5.0)
daemons (>= 1.0.9) daemons (>= 1.0.9)
eventmachine (>= 0.12.6) eventmachine (>= 0.12.6)
@ -37,6 +33,5 @@ DEPENDENCIES
foreman foreman
shotgun shotgun
sinatra sinatra
sinatra-jsonp
thin thin
xml-simple xml-simple

View File

@ -1,6 +1,6 @@
require 'bundler' require 'bundler'
Bundler.setup Bundler.setup
require './tubefeed' require './tubestatus'
run Tubefeed run Tubestatus

View File

@ -3,7 +3,7 @@ require 'json'
require 'xmlsimple' require 'xmlsimple'
require 'faraday' require 'faraday'
class Tubefeed < Sinatra::Base class Tubestatus < Sinatra::Base
def parse_xml_feed(feed_url) def parse_xml_feed(feed_url)
uri = URI(feed_url) uri = URI(feed_url)
conn = Faraday.new(:url => "#{uri.scheme}://#{uri.host}") conn = Faraday.new(:url => "#{uri.scheme}://#{uri.host}")