Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

had some app restart issues

  • Loading branch information...
commit 975e4900140e8e3167ce0680448113f4559dc8d6 1 parent 24578a4
@rauhryan authored
Showing with 20 additions and 0 deletions.
  1. +4 −0 Gemfile
  2. +13 −0 app.rb
  3. +3 −0  watchr
View
4 Gemfile
@@ -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`}
Please sign in to comment.
Something went wrong with that request. Please try again.