jekyll-auth 2.1.2 → 2.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +10 -0
- data/.github/workflows/ci.yml +24 -0
- data/.github/workflows/codeql-analysis.yml +70 -0
- data/.rubocop.yml +1 -0
- data/docs/README.md +4 -0
- data/jekyll-auth.gemspec +5 -5
- data/lib/jekyll_auth/version.rb +1 -1
- data/spec/jekyll_auth_jekyll_site_spec.rb +1 -1
- metadata +32 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 306be470270633bbb7a21020a1e1f8ddb9002b554aaeaed725d6f5563cdf38c6
|
4
|
+
data.tar.gz: 666d48dd94f5b68a82449270e34ad87753d0185ef1b432816e94730696d8bb39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5207e1ae7ba9beafe70c083c55d0b5470ebe64bc3f13fea97155b2246508ef454ad7a508379601ed8b4372908b2a58e6c5aab6169eaebf712976ba9f4a64ee6
|
7
|
+
data.tar.gz: a4927d356e22a7cf27455a7f95f3a34ab90ada570ecea74016580bd7045c2dff650ba4173f7c5ea9e56104236415c3ff130d3f0c4ef3200bd6b06f89eed30fbb
|
@@ -0,0 +1,24 @@
|
|
1
|
+
on: push
|
2
|
+
name: CI
|
3
|
+
jobs:
|
4
|
+
ci:
|
5
|
+
runs-on: ubuntu-latest
|
6
|
+
steps:
|
7
|
+
- name: Checkout
|
8
|
+
uses: actions/checkout@v3
|
9
|
+
|
10
|
+
- uses: ruby/setup-ruby@v1
|
11
|
+
with:
|
12
|
+
bundler-cache: true
|
13
|
+
ruby-version: 3.0
|
14
|
+
|
15
|
+
- name: Setup Git
|
16
|
+
run: |
|
17
|
+
git config --global user.email "you@example.com"
|
18
|
+
git config --global user.name "Your Name"
|
19
|
+
|
20
|
+
- name: Bootstrap
|
21
|
+
run: script/bootstrap
|
22
|
+
|
23
|
+
- name: test
|
24
|
+
run: script/cibuild
|
@@ -0,0 +1,70 @@
|
|
1
|
+
# For most projects, this workflow file will not need changing; you simply need
|
2
|
+
# to commit it to your repository.
|
3
|
+
#
|
4
|
+
# You may wish to alter this file to override the set of languages analyzed,
|
5
|
+
# or to provide custom queries or build logic.
|
6
|
+
#
|
7
|
+
# ******** NOTE ********
|
8
|
+
# We have attempted to detect the languages in your repository. Please check
|
9
|
+
# the `language` matrix defined below to confirm you have the correct set of
|
10
|
+
# supported CodeQL languages.
|
11
|
+
#
|
12
|
+
name: "CodeQL"
|
13
|
+
|
14
|
+
on:
|
15
|
+
push:
|
16
|
+
branches: [ master ]
|
17
|
+
pull_request:
|
18
|
+
# The branches below must be a subset of the branches above
|
19
|
+
branches: [ master ]
|
20
|
+
schedule:
|
21
|
+
- cron: '36 4 * * 3'
|
22
|
+
|
23
|
+
jobs:
|
24
|
+
analyze:
|
25
|
+
name: Analyze
|
26
|
+
runs-on: ubuntu-latest
|
27
|
+
permissions:
|
28
|
+
actions: read
|
29
|
+
contents: read
|
30
|
+
security-events: write
|
31
|
+
|
32
|
+
strategy:
|
33
|
+
fail-fast: false
|
34
|
+
matrix:
|
35
|
+
language: [ 'ruby' ]
|
36
|
+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
|
37
|
+
# Learn more about CodeQL language support at https://git.io/codeql-language-support
|
38
|
+
|
39
|
+
steps:
|
40
|
+
- name: Checkout repository
|
41
|
+
uses: actions/checkout@v3
|
42
|
+
|
43
|
+
# Initializes the CodeQL tools for scanning.
|
44
|
+
- name: Initialize CodeQL
|
45
|
+
uses: github/codeql-action/init@v2
|
46
|
+
with:
|
47
|
+
languages: ${{ matrix.language }}
|
48
|
+
# If you wish to specify custom queries, you can do so here or in a config file.
|
49
|
+
# By default, queries listed here will override any specified in a config file.
|
50
|
+
# Prefix the list here with "+" to use these queries and those in the config file.
|
51
|
+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
52
|
+
|
53
|
+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
54
|
+
# If this step fails, then you should remove it and run the build manually (see below)
|
55
|
+
- name: Autobuild
|
56
|
+
uses: github/codeql-action/autobuild@v2
|
57
|
+
|
58
|
+
# ℹ️ Command-line programs to run using the OS shell.
|
59
|
+
# 📚 https://git.io/JvXDl
|
60
|
+
|
61
|
+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
|
62
|
+
# and modify them (or add more) to build your code if your project
|
63
|
+
# uses a compiled language
|
64
|
+
|
65
|
+
#- run: |
|
66
|
+
# make bootstrap
|
67
|
+
# make release
|
68
|
+
|
69
|
+
- name: Perform CodeQL Analysis
|
70
|
+
uses: github/codeql-action/analyze@v2
|
data/.rubocop.yml
CHANGED
data/docs/README.md
CHANGED
@@ -4,6 +4,10 @@
|
|
4
4
|
|
5
5
|
[![Gem Version](https://badge.fury.io/rb/jekyll-auth.png)](http://badge.fury.io/rb/jekyll-auth) [![Build Status](https://travis-ci.org/benbalter/jekyll-auth.png?branch=master)](https://travis-ci.org/benbalter/jekyll-auth) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
|
6
6
|
|
7
|
+
## Status
|
8
|
+
|
9
|
+
This project is end of life. If you are looking to serve a Jekyll site privately, consider [changing the visibility of your GitHub Pages site](https://docs.github.com/en/enterprise-cloud@latest/pages/getting-started-with-github-pages/changing-the-visibility-of-your-github-pages-site).
|
10
|
+
|
7
11
|
## The problem
|
8
12
|
|
9
13
|
[Jekyll](http://github.com/mojombo/jekyll) and [GitHub Pages](http://pages.github.com) are awesome, right? Static site, lightning fast, everything versioned in Git. What else could you ask for?
|
data/jekyll-auth.gemspec
CHANGED
@@ -16,20 +16,20 @@ 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", ">= 5", "<
|
19
|
+
s.add_dependency "activesupport", ">= 5", "< 8"
|
20
20
|
s.add_dependency "colorator", "~> 1.0"
|
21
21
|
s.add_dependency "dotenv", "~> 2.0"
|
22
22
|
s.add_dependency "jekyll", "~> 4.0"
|
23
23
|
s.add_dependency "mercenary", "~> 0.3"
|
24
|
-
s.add_dependency "rack", "
|
25
|
-
s.add_dependency "rack-protection", "
|
24
|
+
s.add_dependency "rack", ">= 1.6", "< 3.0"
|
25
|
+
s.add_dependency "rack-protection", ">= 1.5.5", "< 3.0"
|
26
26
|
s.add_dependency "rack-ssl-enforcer", "~> 0.2"
|
27
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
|
-
s.add_dependency "sinatra_auth_github", "
|
30
|
+
s.add_dependency "sinatra_auth_github", ">= 1.1", "< 3.0"
|
31
31
|
s.add_development_dependency "pry", "~> 0.10"
|
32
|
-
s.add_development_dependency "rack-test", "~> 0
|
32
|
+
s.add_development_dependency "rack-test", "~> 2.0"
|
33
33
|
s.add_development_dependency "rspec", "~> 3.1"
|
34
34
|
s.add_development_dependency "rubocop", "~> 0.49", ">= 0.49.0"
|
35
35
|
s.add_development_dependency "rubocop-jekyll", "~> 0.11.0"
|
data/lib/jekyll_auth/version.rb
CHANGED
@@ -33,7 +33,7 @@ describe "jekyll site" do
|
|
33
33
|
it "serves the default 404" do
|
34
34
|
get "/a-bad-path"
|
35
35
|
expect(last_response.status).to eql(404)
|
36
|
-
expect(last_response.body).to
|
36
|
+
expect(last_response.body).to match(%r!Not ?Found!i)
|
37
37
|
end
|
38
38
|
|
39
39
|
it "serves a custom 404" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Balter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '5'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '8'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '5'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '8'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: colorator
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -90,36 +90,42 @@ dependencies:
|
|
90
90
|
name: rack
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
|
-
- - "
|
93
|
+
- - ">="
|
94
94
|
- !ruby/object:Gem::Version
|
95
95
|
version: '1.6'
|
96
|
+
- - "<"
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '3.0'
|
96
99
|
type: :runtime
|
97
100
|
prerelease: false
|
98
101
|
version_requirements: !ruby/object:Gem::Requirement
|
99
102
|
requirements:
|
100
|
-
- - "
|
103
|
+
- - ">="
|
101
104
|
- !ruby/object:Gem::Version
|
102
105
|
version: '1.6'
|
106
|
+
- - "<"
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: '3.0'
|
103
109
|
- !ruby/object:Gem::Dependency
|
104
110
|
name: rack-protection
|
105
111
|
requirement: !ruby/object:Gem::Requirement
|
106
112
|
requirements:
|
107
|
-
- - "~>"
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: '1.5'
|
110
113
|
- - ">="
|
111
114
|
- !ruby/object:Gem::Version
|
112
115
|
version: 1.5.5
|
116
|
+
- - "<"
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '3.0'
|
113
119
|
type: :runtime
|
114
120
|
prerelease: false
|
115
121
|
version_requirements: !ruby/object:Gem::Requirement
|
116
122
|
requirements:
|
117
|
-
- - "~>"
|
118
|
-
- !ruby/object:Gem::Version
|
119
|
-
version: '1.5'
|
120
123
|
- - ">="
|
121
124
|
- !ruby/object:Gem::Version
|
122
125
|
version: 1.5.5
|
126
|
+
- - "<"
|
127
|
+
- !ruby/object:Gem::Version
|
128
|
+
version: '3.0'
|
123
129
|
- !ruby/object:Gem::Dependency
|
124
130
|
name: rack-ssl-enforcer
|
125
131
|
requirement: !ruby/object:Gem::Requirement
|
@@ -180,16 +186,22 @@ dependencies:
|
|
180
186
|
name: sinatra_auth_github
|
181
187
|
requirement: !ruby/object:Gem::Requirement
|
182
188
|
requirements:
|
183
|
-
- - "
|
189
|
+
- - ">="
|
184
190
|
- !ruby/object:Gem::Version
|
185
191
|
version: '1.1'
|
192
|
+
- - "<"
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '3.0'
|
186
195
|
type: :runtime
|
187
196
|
prerelease: false
|
188
197
|
version_requirements: !ruby/object:Gem::Requirement
|
189
198
|
requirements:
|
190
|
-
- - "
|
199
|
+
- - ">="
|
191
200
|
- !ruby/object:Gem::Version
|
192
201
|
version: '1.1'
|
202
|
+
- - "<"
|
203
|
+
- !ruby/object:Gem::Version
|
204
|
+
version: '3.0'
|
193
205
|
- !ruby/object:Gem::Dependency
|
194
206
|
name: pry
|
195
207
|
requirement: !ruby/object:Gem::Requirement
|
@@ -210,14 +222,14 @@ dependencies:
|
|
210
222
|
requirements:
|
211
223
|
- - "~>"
|
212
224
|
- !ruby/object:Gem::Version
|
213
|
-
version: '0
|
225
|
+
version: '2.0'
|
214
226
|
type: :development
|
215
227
|
prerelease: false
|
216
228
|
version_requirements: !ruby/object:Gem::Requirement
|
217
229
|
requirements:
|
218
230
|
- - "~>"
|
219
231
|
- !ruby/object:Gem::Version
|
220
|
-
version: '0
|
232
|
+
version: '2.0'
|
221
233
|
- !ruby/object:Gem::Dependency
|
222
234
|
name: rspec
|
223
235
|
requirement: !ruby/object:Gem::Requirement
|
@@ -306,11 +318,14 @@ files:
|
|
306
318
|
- ".github/ISSUE_TEMPLATE/bug_report.md"
|
307
319
|
- ".github/ISSUE_TEMPLATE/feature_request.md"
|
308
320
|
- ".github/config.yml"
|
321
|
+
- ".github/dependabot.yml"
|
309
322
|
- ".github/funding.yml"
|
310
323
|
- ".github/no-response.yml"
|
311
324
|
- ".github/release-drafter.yml"
|
312
325
|
- ".github/settings.yml"
|
313
326
|
- ".github/stale.yml"
|
327
|
+
- ".github/workflows/ci.yml"
|
328
|
+
- ".github/workflows/codeql-analysis.yml"
|
314
329
|
- ".gitignore"
|
315
330
|
- ".rubocop.yml"
|
316
331
|
- ".travis.yml"
|
@@ -373,7 +388,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
373
388
|
- !ruby/object:Gem::Version
|
374
389
|
version: '0'
|
375
390
|
requirements: []
|
376
|
-
rubygems_version: 3.2.
|
391
|
+
rubygems_version: 3.2.33
|
377
392
|
signing_key:
|
378
393
|
specification_version: 4
|
379
394
|
summary: A simple way to use GitHub OAuth to serve a protected jekyll site to your
|