sinatra_auth_github 1.1.0 → 1.2.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 74cd4b9c57ecff85ab2beefaddd9920f74f3c1bc
4
- data.tar.gz: 3503bf89421b9faa6c927892e7b0de04eb165e4f
3
+ metadata.gz: 3d77504d4708004896dac2c0ebca0fe67bdba137
4
+ data.tar.gz: 768e6eb5c3f04ec35de2a1555b80147f26c9a4af
5
5
  SHA512:
6
- metadata.gz: 920a0d70fb53ca8987981591d700a0a4acaf6de642af80d585a66fe275ab02d1eff9b96c58bb46ba8aec4e58ea8d7d061e66a94acf18136987769ef48897f275
7
- data.tar.gz: 4dcb51b0972b5138042f636ce40138e928dacdbb1ee012eb757695e4002bd5b68c8c12e2831b5de826fb8769e152be4486e1c6fcf4506b4a5839e725ff87c9e5
6
+ metadata.gz: 2ca0799fa312727a5415aff97a3f43f250f50c744605dab01dbf8b1c4275011577c571cf64fe959ff0c4e8f7f13d645e74dbef4730fc21844c9cb31eb7e5fcf6
7
+ data.tar.gz: 2f3cbed0aa1b2afad2f682c138df4153281f118f4a4bd14bcfb6894941c03e78d0ec6669bdf8b3e845c81a91766f205aabafead9fe2aad3e8b719758e7cd16fd
@@ -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 if membership is publicized
122
+ # Enforce user membership to the named organization
123
123
  #
124
124
  # name - the organization to test membership against
125
125
  #
@@ -1,7 +1,7 @@
1
1
  module Sinatra
2
2
  module Auth
3
3
  module Github
4
- VERSION = "1.1.0"
4
+ VERSION = "1.2.0"
5
5
  end
6
6
  end
7
7
  end
@@ -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.1.0"
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
@@ -11,8 +11,6 @@ module Example
11
11
  :client_id => ENV['GITHUB_CLIENT_ID'],
12
12
  }
13
13
 
14
- set :session_secret, "fuck"
15
-
16
14
  register Sinatra::Auth::Github
17
15
 
18
16
  helpers do
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.1.0
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-01-13 00:00:00.000000000 Z
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.1.0
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.1.0
40
+ version: 1.2.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement