jekyll-auth 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/ISSUE_TEMPLATE/bug_report.md +28 -0
- data/.github/ISSUE_TEMPLATE/feature_request.md +21 -0
- data/.github/config.yml +4 -1
- data/.github/funding.yml +1 -0
- data/.github/no-response.yml +2 -0
- data/.github/release-drafter.yml +4 -0
- data/.github/settings.yml +2 -0
- data/.github/stale.yml +2 -0
- data/.rubocop.yml +4 -3
- data/.travis.yml +3 -3
- data/bin/jekyll-auth +5 -7
- data/docs/SECURITY.md +3 -0
- data/jekyll-auth.gemspec +6 -4
- data/lib/jekyll_auth/commands.rb +2 -0
- data/lib/jekyll_auth/helpers.rb +1 -0
- data/lib/jekyll_auth/version.rb +1 -1
- data/spec/spec_helper.rb +1 -0
- metadata +55 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25f71431fe3e6a87766f5fe1d2ed3250991afb1c751025088e6740466466dec8
|
4
|
+
data.tar.gz: 3f110e0d1d75eaf3921c7fd10e87c33ee3b2fc6126439a29e570abfb5cb0f89d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b7876e78ea89e16ac9a7d49127c27d4bcc37e4397c1d14aa16c746144d9ce90cb5756bc894282fffbb383ae70bcfbcb8550755075352b51786d598c0f5cbe12
|
7
|
+
data.tar.gz: a57c1176f2c27257905503c278a670a14256963a471f67475dc09fc97f0a4739ded211be927a36a889f9ed4f0d2e288a5088600cfd87e9684ec55d4a1421b4a7
|
@@ -0,0 +1,28 @@
|
|
1
|
+
---
|
2
|
+
name: Bug report
|
3
|
+
about: Create a report to help us improve
|
4
|
+
|
5
|
+
---
|
6
|
+
|
7
|
+
### Describe the bug
|
8
|
+
|
9
|
+
A clear and concise description of what the bug is.
|
10
|
+
|
11
|
+
### Steps to reproduce the behavior
|
12
|
+
|
13
|
+
1. Go to '...'
|
14
|
+
2. Click on '....'
|
15
|
+
3. Scroll down to '....'
|
16
|
+
4. See error
|
17
|
+
|
18
|
+
### Expected behavior
|
19
|
+
|
20
|
+
A clear and concise description of what you expected to happen.
|
21
|
+
|
22
|
+
### Screenshots
|
23
|
+
|
24
|
+
If applicable, add screenshots to help explain your problem.
|
25
|
+
|
26
|
+
### Additional context
|
27
|
+
|
28
|
+
Add any other context about the problem here.
|
@@ -0,0 +1,21 @@
|
|
1
|
+
---
|
2
|
+
name: Feature request
|
3
|
+
about: Suggest an idea for this project
|
4
|
+
|
5
|
+
---
|
6
|
+
|
7
|
+
### Is your feature request related to a problem? Please describe the problem you're trying to solve.
|
8
|
+
|
9
|
+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
10
|
+
|
11
|
+
### Describe the solution you'd like
|
12
|
+
|
13
|
+
A clear and concise description of what you want to happen.
|
14
|
+
|
15
|
+
### Describe alternatives you've considered
|
16
|
+
|
17
|
+
A clear and concise description of any alternative solutions or features you've considered.
|
18
|
+
|
19
|
+
### Additional context
|
20
|
+
|
21
|
+
Add any other context or screenshots about the feature request here.
|
data/.github/config.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Behaviorbot config. See https://github.com/behaviorbot/ for more information.
|
2
2
|
# Note: Please Don't edit this file directly.
|
3
|
-
# Edit https://github.com/benbalter/
|
3
|
+
# Edit https://github.com/benbalter/shared-community-files instead.
|
4
4
|
|
5
5
|
# Configuration for update-docs - https://github.com/behaviorbot/update-docs
|
6
6
|
updateDocsComment: "Thanks for the pull request! If you are making any changes to the user-facing functionality, please be sure to update the documentation in the `README` or `docs/` folder alongside your change. :heart:"
|
@@ -18,3 +18,6 @@ newPRWelcomeComment: Welcome! Congrats on your first pull request to Jekyll Auth
|
|
18
18
|
|
19
19
|
# Configuration for first-pr-merge - https://github.com/behaviorbot/first-pr-merge
|
20
20
|
firstPRMergeComment: "Congrats on getting your first pull request to Jekyll Auth merged! Without amazing humans like you submitting pull requests, we couldn’t run this project. You rock! :tada:<br /><br />If you're interested in tackling another bug or feature, take a look at [the open issues](https://github.com/benbalter/jekyll-auth/issues), especially those [labeled `help wanted`](https://github.com/benbalter/jekyll-auth/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22)."
|
21
|
+
|
22
|
+
# Bug workaround
|
23
|
+
contact_links: []
|
data/.github/funding.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
patreon: benbalter
|
data/.github/no-response.yml
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
# Configuration for probot-no-response - https://github.com/probot/no-response
|
2
|
+
# Note: Please Don't edit this file directly.
|
3
|
+
# Edit https://github.com/benbalter/shared-community-files instead.
|
2
4
|
|
3
5
|
# Number of days of inactivity before an Issue is closed for lack of response
|
4
6
|
daysUntilClose: 14
|
data/.github/settings.yml
CHANGED
data/.github/stale.yml
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
# Configuration for probot-stale - https://github.com/probot/stale
|
2
|
+
# Note: Please Don't edit this file directly.
|
3
|
+
# Edit https://github.com/benbalter/shared-community-files instead.
|
2
4
|
|
3
5
|
# Number of days of inactivity before an Issue or Pull Request becomes stale
|
4
6
|
daysUntilStale: 60
|
data/.rubocop.yml
CHANGED
@@ -1,5 +1,6 @@
|
|
1
|
+
require: rubocop-jekyll
|
1
2
|
inherit_gem:
|
2
|
-
jekyll: .rubocop.yml
|
3
|
+
rubocop-jekyll: .rubocop.yml
|
3
4
|
|
4
5
|
Style/Documentation:
|
5
6
|
Enabled: false
|
@@ -7,10 +8,10 @@ Style/Documentation:
|
|
7
8
|
Metrics/MethodLength:
|
8
9
|
Enabled: false
|
9
10
|
|
10
|
-
|
11
|
+
Layout/LineLength:
|
11
12
|
Enabled: false
|
12
13
|
|
13
|
-
|
14
|
+
Naming/FileName:
|
14
15
|
Enabled: false
|
15
16
|
|
16
17
|
Metrics/BlockLength:
|
data/.travis.yml
CHANGED
data/bin/jekyll-auth
CHANGED
@@ -18,9 +18,7 @@ Mercenary.program("jekyll-auth") do |p|
|
|
18
18
|
c.action do |_args, _options|
|
19
19
|
JekyllAuth::Commands.copy_templates
|
20
20
|
|
21
|
-
if JekyllAuth::Commands.changed?
|
22
|
-
puts "Looks like we've made some changes, you may want to do a git commit and git push sometime soon".yellow
|
23
|
-
end
|
21
|
+
puts "Looks like we've made some changes, you may want to do a git commit and git push sometime soon".yellow if JekyllAuth::Commands.changed?
|
24
22
|
|
25
23
|
puts "Setup complete. Run `jekyll-auth` to view the authenticated site."
|
26
24
|
end
|
@@ -101,10 +99,10 @@ Mercenary.program("jekyll-auth") do |p|
|
|
101
99
|
p.command(:setup) do |c|
|
102
100
|
c.syntax "setup"
|
103
101
|
c.description "Configure Heroku for use with your Jekyll Auth site"
|
104
|
-
c.option "client_id", "--client_id", "Your oauth app client id"
|
105
|
-
c.option "client_secret", "--client_secret", "Your oauth app client secret"
|
106
|
-
c.option "team_id", "--team_id", "The team to authenticate against"
|
107
|
-
c.option "org_name", "--org_name", "An organization to authenticate against"
|
102
|
+
c.option "client_id", "--client_id <ID>", "Your oauth app client id"
|
103
|
+
c.option "client_secret", "--client_secret <SECRET>", "Your oauth app client secret"
|
104
|
+
c.option "team_id", "--team_id <ID>", "The team to authenticate against"
|
105
|
+
c.option "org_name", "--org_name <NAME>", "An organization to authenticate against"
|
108
106
|
c.action do |_args, options|
|
109
107
|
if find_executable("heroku").nil?
|
110
108
|
puts "Looks like we're missing the Heroku client. Let's see if we can't install it..."
|
data/docs/SECURITY.md
ADDED
data/jekyll-auth.gemspec
CHANGED
@@ -16,15 +16,15 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
17
17
|
s.require_paths = ["lib"]
|
18
18
|
|
19
|
-
s.add_dependency "activesupport", "
|
19
|
+
s.add_dependency "activesupport", ">= 5", "< 7"
|
20
20
|
s.add_dependency "colorator", "~> 1.0"
|
21
21
|
s.add_dependency "dotenv", "~> 2.0"
|
22
|
-
s.add_dependency "jekyll", "~>
|
22
|
+
s.add_dependency "jekyll", "~> 4.0"
|
23
23
|
s.add_dependency "mercenary", "~> 0.3"
|
24
24
|
s.add_dependency "rack", "~> 1.6"
|
25
25
|
s.add_dependency "rack-protection", "~> 1.5", ">= 1.5.5"
|
26
26
|
s.add_dependency "rack-ssl-enforcer", "~> 0.2"
|
27
|
-
s.add_dependency "rake", "~>
|
27
|
+
s.add_dependency "rake", "~> 13.0"
|
28
28
|
s.add_dependency "safe_yaml", "~> 1.0"
|
29
29
|
s.add_dependency "sinatra-index", "~> 0.0"
|
30
30
|
s.add_dependency "sinatra_auth_github", "~> 1.1"
|
@@ -32,5 +32,7 @@ Gem::Specification.new do |s|
|
|
32
32
|
s.add_development_dependency "rack-test", "~> 0.6"
|
33
33
|
s.add_development_dependency "rspec", "~> 3.1"
|
34
34
|
s.add_development_dependency "rubocop", "~> 0.49", ">= 0.49.0"
|
35
|
-
s.add_development_dependency "
|
35
|
+
s.add_development_dependency "rubocop-jekyll", "~> 0.11.0"
|
36
|
+
s.add_development_dependency "rubocop-performance", "~> 1.0"
|
37
|
+
s.add_development_dependency "webmock", "~> 2.3 "
|
36
38
|
end
|
data/lib/jekyll_auth/commands.rb
CHANGED
@@ -22,6 +22,7 @@ class JekyllAuth
|
|
22
22
|
def self.execute_command(*args)
|
23
23
|
output, status = Open3.capture2e(*args)
|
24
24
|
raise "Command `#{args.join(" ")}` failed: #{output}" unless status.exitstatus.zero?
|
25
|
+
|
25
26
|
output
|
26
27
|
end
|
27
28
|
|
@@ -52,6 +53,7 @@ class JekyllAuth
|
|
52
53
|
execute_command "git", "init", destination
|
53
54
|
FILES.each do |file|
|
54
55
|
next if file == ".env"
|
56
|
+
|
55
57
|
execute_command("git", "add", "--", "#{destination}/#{file}")
|
56
58
|
end
|
57
59
|
end
|
data/lib/jekyll_auth/helpers.rb
CHANGED
data/lib/jekyll_auth/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Balter
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-03-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '5'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '7'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
29
|
+
version: '5'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '7'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: colorator
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,14 +64,14 @@ dependencies:
|
|
58
64
|
requirements:
|
59
65
|
- - "~>"
|
60
66
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
67
|
+
version: '4.0'
|
62
68
|
type: :runtime
|
63
69
|
prerelease: false
|
64
70
|
version_requirements: !ruby/object:Gem::Requirement
|
65
71
|
requirements:
|
66
72
|
- - "~>"
|
67
73
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
74
|
+
version: '4.0'
|
69
75
|
- !ruby/object:Gem::Dependency
|
70
76
|
name: mercenary
|
71
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -134,14 +140,14 @@ dependencies:
|
|
134
140
|
requirements:
|
135
141
|
- - "~>"
|
136
142
|
- !ruby/object:Gem::Version
|
137
|
-
version: '
|
143
|
+
version: '13.0'
|
138
144
|
type: :runtime
|
139
145
|
prerelease: false
|
140
146
|
version_requirements: !ruby/object:Gem::Requirement
|
141
147
|
requirements:
|
142
148
|
- - "~>"
|
143
149
|
- !ruby/object:Gem::Version
|
144
|
-
version: '
|
150
|
+
version: '13.0'
|
145
151
|
- !ruby/object:Gem::Dependency
|
146
152
|
name: safe_yaml
|
147
153
|
requirement: !ruby/object:Gem::Requirement
|
@@ -246,20 +252,48 @@ dependencies:
|
|
246
252
|
- - ">="
|
247
253
|
- !ruby/object:Gem::Version
|
248
254
|
version: 0.49.0
|
255
|
+
- !ruby/object:Gem::Dependency
|
256
|
+
name: rubocop-jekyll
|
257
|
+
requirement: !ruby/object:Gem::Requirement
|
258
|
+
requirements:
|
259
|
+
- - "~>"
|
260
|
+
- !ruby/object:Gem::Version
|
261
|
+
version: 0.11.0
|
262
|
+
type: :development
|
263
|
+
prerelease: false
|
264
|
+
version_requirements: !ruby/object:Gem::Requirement
|
265
|
+
requirements:
|
266
|
+
- - "~>"
|
267
|
+
- !ruby/object:Gem::Version
|
268
|
+
version: 0.11.0
|
269
|
+
- !ruby/object:Gem::Dependency
|
270
|
+
name: rubocop-performance
|
271
|
+
requirement: !ruby/object:Gem::Requirement
|
272
|
+
requirements:
|
273
|
+
- - "~>"
|
274
|
+
- !ruby/object:Gem::Version
|
275
|
+
version: '1.0'
|
276
|
+
type: :development
|
277
|
+
prerelease: false
|
278
|
+
version_requirements: !ruby/object:Gem::Requirement
|
279
|
+
requirements:
|
280
|
+
- - "~>"
|
281
|
+
- !ruby/object:Gem::Version
|
282
|
+
version: '1.0'
|
249
283
|
- !ruby/object:Gem::Dependency
|
250
284
|
name: webmock
|
251
285
|
requirement: !ruby/object:Gem::Requirement
|
252
286
|
requirements:
|
253
287
|
- - "~>"
|
254
288
|
- !ruby/object:Gem::Version
|
255
|
-
version: '
|
289
|
+
version: '2.3'
|
256
290
|
type: :development
|
257
291
|
prerelease: false
|
258
292
|
version_requirements: !ruby/object:Gem::Requirement
|
259
293
|
requirements:
|
260
294
|
- - "~>"
|
261
295
|
- !ruby/object:Gem::Version
|
262
|
-
version: '
|
296
|
+
version: '2.3'
|
263
297
|
description: A simple way to use GitHub OAuth to serve a protected jekyll site to
|
264
298
|
your GitHub organization.
|
265
299
|
email: ben@balter.com
|
@@ -269,8 +303,12 @@ extensions: []
|
|
269
303
|
extra_rdoc_files: []
|
270
304
|
files:
|
271
305
|
- ".github/CODEOWNERS"
|
306
|
+
- ".github/ISSUE_TEMPLATE/bug_report.md"
|
307
|
+
- ".github/ISSUE_TEMPLATE/feature_request.md"
|
272
308
|
- ".github/config.yml"
|
309
|
+
- ".github/funding.yml"
|
273
310
|
- ".github/no-response.yml"
|
311
|
+
- ".github/release-drafter.yml"
|
274
312
|
- ".github/settings.yml"
|
275
313
|
- ".github/stale.yml"
|
276
314
|
- ".gitignore"
|
@@ -282,6 +320,7 @@ files:
|
|
282
320
|
- docs/CODE_OF_CONDUCT.md
|
283
321
|
- docs/CONTRIBUTING.md
|
284
322
|
- docs/README.md
|
323
|
+
- docs/SECURITY.md
|
285
324
|
- docs/_config.yml
|
286
325
|
- docs/configuring.md
|
287
326
|
- docs/getting-started.md
|
@@ -319,7 +358,7 @@ homepage: https://github.com/benbalter/jekyll-auth
|
|
319
358
|
licenses:
|
320
359
|
- MIT
|
321
360
|
metadata: {}
|
322
|
-
post_install_message:
|
361
|
+
post_install_message:
|
323
362
|
rdoc_options: []
|
324
363
|
require_paths:
|
325
364
|
- lib
|
@@ -334,9 +373,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
334
373
|
- !ruby/object:Gem::Version
|
335
374
|
version: '0'
|
336
375
|
requirements: []
|
337
|
-
|
338
|
-
|
339
|
-
signing_key:
|
376
|
+
rubygems_version: 3.2.15
|
377
|
+
signing_key:
|
340
378
|
specification_version: 4
|
341
379
|
summary: A simple way to use GitHub OAuth to serve a protected jekyll site to your
|
342
380
|
GitHub organization
|