jekyll-auth 0.1.3 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/lib/jekyll-auth.rb CHANGED
@@ -3,7 +3,9 @@ require 'sinatra-index'
3
3
  require 'sinatra_auth_github'
4
4
  require 'rack'
5
5
  require 'dotenv'
6
+ require 'safe_yaml'
6
7
  require File.dirname(__FILE__) + '/jekyll-auth/version'
8
+ require File.dirname(__FILE__) + '/jekyll-auth/config'
7
9
  require File.dirname(__FILE__) + '/jekyll-auth/auth-site'
8
10
  require File.dirname(__FILE__) + '/jekyll-auth/jekyll-site'
9
11
  Dotenv.load
@@ -12,6 +12,7 @@ class JekyllAuth
12
12
  register Sinatra::Auth::Github
13
13
 
14
14
  before do
15
+ pass if JekyllAuth.whitelist && JekyllAuth.whitelist.match(request.path_info)
15
16
  if ENV['GITHUB_TEAM_ID']
16
17
  github_team_authenticate!(ENV['GITHUB_TEAM_ID'])
17
18
  elsif ENV['GITHUB_ORG_ID']
@@ -1,3 +1,3 @@
1
1
  class JekyllAuth
2
- VERSION = '0.1.3'
2
+ VERSION = '0.2.0'
3
3
  end
metadata CHANGED
@@ -1,127 +1,160 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.2.0
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Ben Balter
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-10-13 00:00:00.000000000 Z
12
+ date: 2013-11-16 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: github-pages
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - '>='
19
+ - - ! '>='
18
20
  - !ruby/object:Gem::Version
19
21
  version: '0'
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - '>='
27
+ - - ! '>='
25
28
  - !ruby/object:Gem::Version
26
29
  version: '0'
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: sinatra-index
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
- - - '>='
35
+ - - ! '>='
32
36
  - !ruby/object:Gem::Version
33
37
  version: '0'
34
38
  type: :runtime
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
- - - '>='
43
+ - - ! '>='
39
44
  - !ruby/object:Gem::Version
40
45
  version: '0'
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: sinatra_auth_github
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
- - - '>='
51
+ - - ! '>='
46
52
  - !ruby/object:Gem::Version
47
53
  version: '0'
48
54
  type: :runtime
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
- - - '>='
59
+ - - ! '>='
53
60
  - !ruby/object:Gem::Version
54
61
  version: '0'
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: commander
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
- - - '>='
67
+ - - ! '>='
60
68
  - !ruby/object:Gem::Version
61
69
  version: '0'
62
70
  type: :runtime
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
- - - '>='
75
+ - - ! '>='
67
76
  - !ruby/object:Gem::Version
68
77
  version: '0'
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: heroku
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
- - - '>='
83
+ - - ! '>='
74
84
  - !ruby/object:Gem::Version
75
85
  version: '0'
76
86
  type: :runtime
77
87
  prerelease: false
78
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
79
90
  requirements:
80
- - - '>='
91
+ - - ! '>='
81
92
  - !ruby/object:Gem::Version
82
93
  version: '0'
83
94
  - !ruby/object:Gem::Dependency
84
95
  name: git
85
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
86
98
  requirements:
87
- - - '>='
99
+ - - ! '>='
88
100
  - !ruby/object:Gem::Version
89
101
  version: '0'
90
102
  type: :runtime
91
103
  prerelease: false
92
104
  version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
93
106
  requirements:
94
- - - '>='
107
+ - - ! '>='
95
108
  - !ruby/object:Gem::Version
96
109
  version: '0'
97
110
  - !ruby/object:Gem::Dependency
98
111
  name: dotenv
99
112
  requirement: !ruby/object:Gem::Requirement
113
+ none: false
100
114
  requirements:
101
- - - '>='
115
+ - - ! '>='
102
116
  - !ruby/object:Gem::Version
103
117
  version: '0'
104
118
  type: :runtime
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
107
122
  requirements:
108
- - - '>='
123
+ - - ! '>='
109
124
  - !ruby/object:Gem::Version
110
125
  version: '0'
111
126
  - !ruby/object:Gem::Dependency
112
127
  name: rake
113
128
  requirement: !ruby/object:Gem::Requirement
129
+ none: false
114
130
  requirements:
115
- - - '>='
131
+ - - ! '>='
116
132
  - !ruby/object:Gem::Version
117
133
  version: '0'
118
134
  type: :runtime
119
135
  prerelease: false
120
136
  version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
121
138
  requirements:
122
- - - '>='
139
+ - - ! '>='
123
140
  - !ruby/object:Gem::Version
124
141
  version: '0'
142
+ - !ruby/object:Gem::Dependency
143
+ name: safe_yaml
144
+ requirement: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ~>
148
+ - !ruby/object:Gem::Version
149
+ version: 0.9.0
150
+ type: :runtime
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ~>
156
+ - !ruby/object:Gem::Version
157
+ version: 0.9.0
125
158
  description: A simple way to use Github Oauth to serve a protected jekyll site to
126
159
  your GitHub organization.
127
160
  email: ben@balter.com
@@ -141,26 +174,27 @@ files:
141
174
  homepage: https://github.com/benbalter/jekyll-auth
142
175
  licenses:
143
176
  - MIT
144
- metadata: {}
145
177
  post_install_message:
146
178
  rdoc_options: []
147
179
  require_paths:
148
180
  - lib
149
181
  required_ruby_version: !ruby/object:Gem::Requirement
182
+ none: false
150
183
  requirements:
151
- - - '>='
184
+ - - ! '>='
152
185
  - !ruby/object:Gem::Version
153
186
  version: '0'
154
187
  required_rubygems_version: !ruby/object:Gem::Requirement
188
+ none: false
155
189
  requirements:
156
- - - '>='
190
+ - - ! '>='
157
191
  - !ruby/object:Gem::Version
158
192
  version: '0'
159
193
  requirements: []
160
194
  rubyforge_project:
161
- rubygems_version: 2.0.3
195
+ rubygems_version: 1.8.23
162
196
  signing_key:
163
- specification_version: 4
197
+ specification_version: 3
164
198
  summary: A simple way to use Github OAuth to serve a protected jekyll site to your
165
199
  GitHub organization
166
200
  test_files: []
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 3e11547bbfd1497c3461bb9727cfbf1d631df152
4
- data.tar.gz: 247be432529217cb88b7fa887dc8da8d7389f844
5
- SHA512:
6
- metadata.gz: f288a6d5e7c6b8ac5ac6e4fef2169cd9f02e11f09c96a294ef6f93b1e2bef376eeeb869b5a9e0ed5457e747c405675142edf6e462eb512a70d38591834836c86
7
- data.tar.gz: 1ed6d236fdd8a87cfca37b04c7d5741b1d53249d4ba86cf383d72e3addc343320ad62295e48542ece208eac81fce0516e90913cb7e3ce7f04b96e2dc59dd1c8b