sinatra reloader

This commit is contained in:
Gwenhael Le Moine 2014-07-14 12:36:51 +02:00
parent e2d5aee48b
commit 2cfd14ab63
3 changed files with 19 additions and 0 deletions

View file

@ -1 +1,6 @@
# encoding: utf-8
source 'https://rubygems.org'
gem 'sinatra' gem 'sinatra'
gem 'sinatra-contrib'

View file

@ -1,12 +1,24 @@
GEM GEM
remote: https://rubygems.org/
specs: specs:
backports (3.6.0)
multi_json (1.10.1)
rack (1.5.2) rack (1.5.2)
rack-protection (1.5.3) rack-protection (1.5.3)
rack rack
rack-test (0.6.2)
rack (>= 1.0)
sinatra (1.4.5) sinatra (1.4.5)
rack (~> 1.4) rack (~> 1.4)
rack-protection (~> 1.4) rack-protection (~> 1.4)
tilt (~> 1.3, >= 1.3.4) tilt (~> 1.3, >= 1.3.4)
sinatra-contrib (1.4.2)
backports (>= 2.0)
multi_json
rack-protection
rack-test
sinatra (~> 1.4.0)
tilt (~> 1.3)
tilt (1.4.1) tilt (1.4.1)
PLATFORMS PLATFORMS
@ -14,3 +26,4 @@ PLATFORMS
DEPENDENCIES DEPENDENCIES
sinatra sinatra
sinatra-contrib

1
app.rb
View file

@ -1,6 +1,7 @@
# encoding: utf-8 # encoding: utf-8
require 'sinatra' require 'sinatra'
require 'sinatra/reloader'
get '/' do get '/' do
'OH HAI!' 'OH HAI!'