sinatra_auth_github 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sinatra/auth/github.rb +3 -3
- data/lib/sinatra/auth/github/version.rb +1 -1
- data/sinatra_auth_github.gemspec +1 -1
- data/spec/app.rb +0 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d77504d4708004896dac2c0ebca0fe67bdba137
|
4
|
+
data.tar.gz: 768e6eb5c3f04ec35de2a1555b80147f26c9a4af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ca0799fa312727a5415aff97a3f43f250f50c744605dab01dbf8b1c4275011577c571cf64fe959ff0c4e8f7f13d645e74dbef4730fc21844c9cb31eb7e5fcf6
|
7
|
+
data.tar.gz: 2f3cbed0aa1b2afad2f682c138df4153281f118f4a4bd14bcfb6894941c03e78d0ec6669bdf8b3e845c81a91766f205aabafead9fe2aad3e8b719758e7cd16fd
|
data/lib/sinatra/auth/github.rb
CHANGED
@@ -109,17 +109,17 @@ module Sinatra
|
|
109
109
|
github_user.team_member?(team_id)
|
110
110
|
end
|
111
111
|
|
112
|
-
# Enforce user membership to the named organization
|
112
|
+
# Enforce publicized user membership to the named organization
|
113
113
|
#
|
114
114
|
# name - the organization to test membership against
|
115
115
|
#
|
116
|
-
# Returns an execution halt if the user is not a member of the named org
|
116
|
+
# Returns an execution halt if the user is not a publicized member of the named org
|
117
117
|
def github_public_organization_authenticate!(name)
|
118
118
|
authenticate!
|
119
119
|
halt([401, "Unauthorized User"]) unless github_public_organization_access?(name)
|
120
120
|
end
|
121
121
|
|
122
|
-
# Enforce user membership to the named organization
|
122
|
+
# Enforce user membership to the named organization
|
123
123
|
#
|
124
124
|
# name - the organization to test membership against
|
125
125
|
#
|
data/sinatra_auth_github.gemspec
CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.rubyforge_project = "sinatra_auth_github"
|
17
17
|
|
18
18
|
s.add_dependency "sinatra", "~>1.0"
|
19
|
-
s.add_dependency "warden-github", "~>1.
|
19
|
+
s.add_dependency "warden-github", "~>1.2.0"
|
20
20
|
|
21
21
|
s.add_development_dependency "rake"
|
22
22
|
s.add_development_dependency "rspec", "~>2.4.0"
|
data/spec/app.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sinatra_auth_github
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Corey Donohoe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sinatra
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 1.2.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.
|
40
|
+
version: 1.2.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|