public
Description: A web interface to iTunes
Homepage:
Clone URL: git://github.com/aanand/itunes-web-interface.git
100644 23 lines (16 sloc) 0.474 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require 'rubygems'
require 'ramaze'
 
# load RubyOSA
require 'rbosa'
OSA.utf8_strings = true
 
# require all controllers and models
acquire __DIR__/:controller/'*'
acquire __DIR__/:model/'*'
 
Itunes.get
 
require 'ramaze/contrib/gzip_filter'
Ramaze::Dispatcher::Action::FILTER << Ramaze::Filter::Gzip
 
Ramaze::Dispatcher::Action::FILTER << proc { |response|
  response['content-type'] = 'text/html; charset=utf-8'
  response
}
 
Ramaze.start :adapter => :webrick, :port => 7000