sinatra_auth_github 0.13.1 → 0.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md
CHANGED
|
@@ -23,7 +23,7 @@ Running the Example
|
|
|
23
23
|
% bundle install
|
|
24
24
|
% GITHUB_CLIENT_ID="<from GH>" GITHUB_CLIENT_SECRET="<from GH>" bundle exec rackup -p9393
|
|
25
25
|
|
|
26
|
-
There's an example app in [spec/app.rb](/
|
|
26
|
+
There's an example app in [spec/app.rb](/spec/app.rb).
|
|
27
27
|
|
|
28
28
|
Example App Functionality
|
|
29
29
|
=========================
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
require 'warden/test/helpers'
|
|
2
|
-
require 'warden
|
|
2
|
+
require 'warden/github/user'
|
|
3
3
|
|
|
4
4
|
module Sinatra
|
|
5
5
|
module Auth
|
|
@@ -11,7 +11,7 @@ module Sinatra
|
|
|
11
11
|
User.make(attrs)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
class User < Warden::
|
|
14
|
+
class User < Warden::GitHub::User
|
|
15
15
|
def self.make(attrs = {})
|
|
16
16
|
default_attrs = {
|
|
17
17
|
'login' => "test_user",
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sinatra_auth_github
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.13.
|
|
4
|
+
version: 0.13.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-02-
|
|
12
|
+
date: 2013-02-19 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: sinatra
|