Skip to content

Commit

Permalink
use sinatra-contribs reloader (closes #14)
Browse files Browse the repository at this point in the history
  • Loading branch information
fwolfst committed Aug 8, 2016
1 parent 8903003 commit 8710e05
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/rawbotz/app.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require 'sinatra/base'
require "sinatra/reloader"
require 'open-uri'
require 'action_view' # Workaround https://github.com/haml/haml/issues/695
require 'haml'
Expand Down Expand Up @@ -32,6 +33,10 @@ class RawbotzApp < Sinatra::Base
set :conf, conf
end

configure :development do
register Sinatra::Reloader
end

helpers do ; end
helpers Rawbotz::Helpers::IconHelper
helpers Rawbotz::Helpers::FlashHelper
Expand Down
1 change: 1 addition & 0 deletions rawbotz.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Gem::Specification.new do |spec|
spec.require_paths = ["lib"]

spec.add_dependency "sinatra", '~> 1.4'
spec.add_dependency "sinatra-contrib", '~> 1.4'
spec.add_dependency 'pony', '~> 1.11'
spec.add_dependency 'haml', '~> 4.0'
spec.add_dependency "rawgento_models", '~> 0.2.6'
Expand Down

0 comments on commit 8710e05

Please sign in to comment.