jekyll-gitlab-letsencrypt 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/.travis.yml +1 -1
- data/CHANGELOG.markdown +7 -0
- data/README.md +4 -1
- data/doc/image.png +0 -0
- data/lib/jekyll/gitlab/letsencrypt/configuration.rb +5 -0
- data/lib/jekyll/gitlab/letsencrypt/process.rb +2 -2
- data/lib/jekyll/gitlab/letsencrypt/version.rb +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e42f906653887ca384406bc9a088577ecba03bc
|
4
|
+
data.tar.gz: ffda2751e2ad55480888b91f687ffa3a217a80f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9eea8f5bd0fa8e83d60a6e80031d5a3edec6448cb1e49aad368811c5eef74f7f89c561c964dcfe1859d550319c3eea5488e35cccb03bff18f8fc1e40c696f808
|
7
|
+
data.tar.gz: 8cf53e4e11ddbafff7d742507d9dc21e09760e4957487c68faa7367e2802f6716d980ef55afde3e787cd8826ef74085fec5ac172cee696293e83a936417d079e
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/CHANGELOG.markdown
ADDED
data/README.md
CHANGED
@@ -1,7 +1,9 @@
|
|
1
|
-
[![Build Status](http://img.shields.io/travis/JustinAiken/jekyll-gitlab-letsencrypt/master.svg)](http://travis-ci.org/JustinAiken/jekyll-gitlab-letsencrypt) [![Coveralls branch](http://img.shields.io/coveralls/JustinAiken/jekyll-gitlab-letsencrypt/master.svg)](https://coveralls.io/r/JustinAiken/jjekyll-gitlab-letsencrypt?branch=master) [![Code Climate](http://img.shields.io/codeclimate/github/JustinAiken/jekyll-gitlab-letsencrypt.svg)](https://codeclimate.com/github/JustinAiken/jekyll-gitlab-letsencrypt)
|
1
|
+
[![Gem Version](http://img.shields.io/gem/v/jekyll-gitlab-letsencrypt.svg)](https://rubygems.org/gems/jekyll-gitlab-letsencrypt) [![Build Status](http://img.shields.io/travis/JustinAiken/jekyll-gitlab-letsencrypt/master.svg)](http://travis-ci.org/JustinAiken/jekyll-gitlab-letsencrypt) [![Coveralls branch](http://img.shields.io/coveralls/JustinAiken/jekyll-gitlab-letsencrypt/master.svg)](https://coveralls.io/r/JustinAiken/jjekyll-gitlab-letsencrypt?branch=master) [![Code Climate](http://img.shields.io/codeclimate/github/JustinAiken/jekyll-gitlab-letsencrypt.svg)](https://codeclimate.com/github/JustinAiken/jekyll-gitlab-letsencrypt)
|
2
2
|
|
3
3
|
# jekyll-gitlab-letsencrypt
|
4
4
|
|
5
|
+
![img](doc/image.png)
|
6
|
+
|
5
7
|
This plugin automagically does 90% of the letsencrypt process for your gitlab-hosted jekyll blog.
|
6
8
|
|
7
9
|
- *(automatic)* It registers your email to the letsencrypt server
|
@@ -69,6 +71,7 @@ gitlab-letsencrypt:
|
|
69
71
|
endpoint: 'https://somewhere' # if you're doing the ACME thing outside of letsencrypt
|
70
72
|
branch: 'master' # Defaults to master, but you can use a different branch
|
71
73
|
layout: 'null' # Layout to use for challenge file - defaults to null, but you can change if needed
|
74
|
+
scheme: 'https' # Scheme to use for challenge request; default http
|
72
75
|
```
|
73
76
|
|
74
77
|
### Running
|
data/doc/image.png
ADDED
Binary file
|
@@ -9,6 +9,7 @@ module Jekyll
|
|
9
9
|
DEFAULT_LAYOUT = 'null'
|
10
10
|
DEFAULT_INITIAL_DELAY = 120
|
11
11
|
DEFAULT_DELAY_TIME = 15
|
12
|
+
DEFAULT_SCHEME = 'http'
|
12
13
|
|
13
14
|
REQUIRED_KEYS = %w{gitlab_repo personal_access_token email domain}
|
14
15
|
|
@@ -66,6 +67,10 @@ module Jekyll
|
|
66
67
|
jekyll_config['delay_time'] || DEFAULT_DELAY_TIME
|
67
68
|
end
|
68
69
|
|
70
|
+
def scheme
|
71
|
+
jekyll_config['scheme'] || DEFAULT_SCHEME
|
72
|
+
end
|
73
|
+
|
69
74
|
def reset!
|
70
75
|
@jekyll_config = nil
|
71
76
|
end
|
@@ -12,7 +12,7 @@ module Jekyll
|
|
12
12
|
self.new(client).process!
|
13
13
|
end
|
14
14
|
|
15
|
-
delegate :base_path, :gitlab_repo, :pretty_url?, :layout, :domain, :initial_delay, :delay_time, to: Configuration
|
15
|
+
delegate :base_path, :gitlab_repo, :pretty_url?, :layout, :domain, :initial_delay, :delay_time, :scheme, to: Configuration
|
16
16
|
|
17
17
|
def initialize(client)
|
18
18
|
@client = client
|
@@ -107,7 +107,7 @@ module Jekyll
|
|
107
107
|
|
108
108
|
def challenge_url
|
109
109
|
@challenge_url ||= begin
|
110
|
-
url = "
|
110
|
+
url = "#{scheme}://#{domain}/"
|
111
111
|
url += challenge.filename
|
112
112
|
url += "/" if pretty_url?
|
113
113
|
url
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-gitlab-letsencrypt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Aiken
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -132,10 +132,12 @@ files:
|
|
132
132
|
- ".gitignore"
|
133
133
|
- ".rspec"
|
134
134
|
- ".travis.yml"
|
135
|
+
- CHANGELOG.markdown
|
135
136
|
- Gemfile
|
136
137
|
- LICENSE.txt
|
137
138
|
- README.md
|
138
139
|
- Rakefile
|
140
|
+
- doc/image.png
|
139
141
|
- jekyll-gitlab-letsencrypt.gemspec
|
140
142
|
- lib/jekyll/commands/gitlab/letsencrypt.rb
|
141
143
|
- lib/jekyll/gitlab/letsencrypt.rb
|
@@ -164,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
166
|
version: '0'
|
165
167
|
requirements: []
|
166
168
|
rubyforge_project:
|
167
|
-
rubygems_version: 2.6.
|
169
|
+
rubygems_version: 2.6.13
|
168
170
|
signing_key:
|
169
171
|
specification_version: 4
|
170
172
|
summary: Automate letsencrypt renewals for gitlab pages.
|