Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updates

  • Loading branch information...
commit e9c1f46c80986ae3270871de563a446320cbf6dc 1 parent 5268432
@atmos atmos authored
Showing with 8 additions and 8 deletions.
  1. +1 −1  Gemfile
  2. +6 −6 Gemfile.lock
  3. +1 −1  app.rb
View
2  Gemfile
@@ -1,5 +1,5 @@
source "http://rubygems.org"
gem "sinatra"
-gem "sinatra_auth_github"
+gem "sinatra_auth_github", "~>0.1.2"
View
12 Gemfile.lock
@@ -5,7 +5,7 @@ GEM
faraday (0.6.1)
addressable (~> 2.2.4)
multipart-post (~> 1.1.0)
- rack (>= 1.1.0, < 2)
+ rack (< 2, >= 1.1.0)
json (1.5.3)
mime-types (1.16)
multi_json (1.0.3)
@@ -18,15 +18,15 @@ GEM
mime-types (>= 1.16)
sinatra (1.2.6)
rack (~> 1.1)
- tilt (>= 1.2.2, < 2.0)
- sinatra_auth_github (0.1.1)
+ tilt (< 2.0, >= 1.2.2)
+ sinatra_auth_github (0.1.2)
rest-client (~> 1.6.1)
sinatra (~> 1.0)
- warden-github (~> 0.1.0)
+ warden-github (~> 0.1.1)
tilt (1.3.2)
warden (1.0.4)
rack (>= 1.0)
- warden-github (0.1.0)
+ warden-github (0.1.1)
json (~> 1.5)
oauth2 (~> 0.4.1)
warden (~> 1.0.4)
@@ -36,4 +36,4 @@ PLATFORMS
DEPENDENCIES
sinatra
- sinatra_auth_github
+ sinatra_auth_github (~> 0.1.2)
View
2  app.rb
@@ -32,7 +32,7 @@ class MinApp < Sinatra::Base
# redirect them to the main application method, otherwise we show them
# some sort of login screen
get '/' do
- if github_user
+ if authenticated?
redirect '/app'
else
erb :index
Please sign in to comment.
Something went wrong with that request. Please try again.