Permalink
Browse files

had some app restart issues

  • Loading branch information...
1 parent 24578a4 commit 975e4900140e8e3167ce0680448113f4559dc8d6 @rauhryan rauhryan committed Dec 4, 2011
Showing with 20 additions and 0 deletions.
  1. +4 −0 Gemfile
  2. +13 −0 app.rb
  3. +3 −0 watchr
View
@@ -6,3 +6,7 @@ gem 'sinatra'
gem 'sinatra-content-for'
gem 'sinatra_auth_github'
gem 'stint', :path => "./stint/stint"
+
+group :development do
+ gem 'watchr'
+end
View
13 app.rb
@@ -128,3 +128,16 @@ def base_url
end
end
end
+
+module Sinatra
+ module Auth
+ module Github
+ module Helpers
+ def authenticate!(*args)
+ #puts warden.env.methods.sort
+ warden.authenticate!(*args)
+ end
+ end
+ end
+ end
+end
View
3 watchr
@@ -0,0 +1,3 @@
+!#/bin/ruby
+
+watch("^.*\.rb") { puts "restart"; `touch tmp/restart.txt`}

0 comments on commit 975e490

Please sign in to comment.