From 2cfd14ab636e6c3a50981bd6171c08544a2ed5ef Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Mon, 14 Jul 2014 12:36:51 +0200 Subject: [PATCH] sinatra reloader --- Gemfile | 5 +++++ Gemfile.lock | 13 +++++++++++++ app.rb | 1 + 3 files changed, 19 insertions(+) diff --git a/Gemfile b/Gemfile index e14b21b8..8c483b8f 100644 --- a/Gemfile +++ b/Gemfile @@ -1 +1,6 @@ +# encoding: utf-8 + +source 'https://rubygems.org' + gem 'sinatra' +gem 'sinatra-contrib' diff --git a/Gemfile.lock b/Gemfile.lock index 054aa59e..3fbd2881 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,12 +1,24 @@ GEM + remote: https://rubygems.org/ specs: + backports (3.6.0) + multi_json (1.10.1) rack (1.5.2) rack-protection (1.5.3) rack + rack-test (0.6.2) + rack (>= 1.0) sinatra (1.4.5) rack (~> 1.4) rack-protection (~> 1.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) PLATFORMS @@ -14,3 +26,4 @@ PLATFORMS DEPENDENCIES sinatra + sinatra-contrib diff --git a/app.rb b/app.rb index 714bfe8e..c54a5df3 100644 --- a/app.rb +++ b/app.rb @@ -1,6 +1,7 @@ # encoding: utf-8 require 'sinatra' +require 'sinatra/reloader' get '/' do 'OH HAI!'