Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

add run in app.rb

  • Loading branch information...
commit 9604f97813072bcfa29de200f0bf261ad1addd4d 1 parent 685878c
miaoufkirsh authored January 21, 2012

Showing 2 changed files with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 1  Gemfile
  2. 2  app.rb
1  Gemfile
... ...
@@ -0,0 +1 @@
  1
+gem "rack-oauth2-server", :git => "https://github.com/twinge/rack-oauth2-server.git"
2  app.rb
@@ -95,5 +95,5 @@ class MyApp < Sinatra::Base
95 95
   get "/list_tokens" do
96 96
     oauth.list_access_tokens("Batman").map(&:token).join(" ")
97 97
   end
98  
-  
  98
+  run! if app_file == $0
99 99
 end

0 notes on commit 9604f97

Please sign in to comment.
Something went wrong with that request. Please try again.