Browse files

Now use Bundler

  • Loading branch information...
1 parent f48ed3f commit 54903fea83083d9d9a2ce9bc3b541e80813dc5c8 Marc Lagrange committed Nov 1, 2010
Showing with 12 additions and 5 deletions.
  1. +6 −0 Gemfile
  2. +3 −0 config.ru
  3. +3 −5 naglight.rb
View
6 Gemfile
@@ -0,0 +1,6 @@
+source :rubygems
+
+gem 'json'
+gem 'haml'
+gem 'sinatra'
+gem 'actionpack', :require => "action_view" # for TextHelper
View
3 config.ru
@@ -1,2 +1,5 @@
+require 'rubygems'
+require 'bundler'
+Bundler.setup
require 'naglight'
run Sinatra::Application
View
8 naglight.rb
@@ -1,7 +1,7 @@
-require 'rubygems'
-require 'sinatra'
require 'json'
-
+require 'haml'
+require 'sinatra'
+require 'action_view'
require 'lib/helpers' # load our view helpers
require 'lib/utils'
require 'lib/ruby-mk-livestatus'
@@ -11,8 +11,6 @@
# true / false
$mk_livestatus_debug=true
require 'lib/mk-calls' # put some MK Livestatus calls in external file
-
-require 'action_view' # for TextHelper
include ActionView::Helpers::TextHelper
# Need to improve this...

0 comments on commit 54903fe

Please sign in to comment.