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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fa8f3feb5f7a37e1c6d6dc0333149e93b3de8886
4
- data.tar.gz: 41f642d68eb70f572c443d88065de1ee1cff3211
3
+ metadata.gz: 4e42f906653887ca384406bc9a088577ecba03bc
4
+ data.tar.gz: ffda2751e2ad55480888b91f687ffa3a217a80f7
5
5
  SHA512:
6
- metadata.gz: 1e254b34b02b3791ec81a70e017ac13237b25fd98f0ac092e9dab70676d73730e497e3ebfe45d17c4b97cddc730a07e7f517ed6085e573d027514c061b6cbd6b
7
- data.tar.gz: 86ea2abcec1da067c639d63b748a2a60cc6fa661c180de1a8fcd4f556d2e87ae4ed846b7e3b938034a57b49c4f496d79959f27ab8c054d560e015a1f55c7d5c3
6
+ metadata.gz: 9eea8f5bd0fa8e83d60a6e80031d5a3edec6448cb1e49aad368811c5eef74f7f89c561c964dcfe1859d550319c3eea5488e35cccb03bff18f8fc1e40c696f808
7
+ data.tar.gz: 8cf53e4e11ddbafff7d742507d9dc21e09760e4957487c68faa7367e2802f6716d980ef55afde3e787cd8826ef74085fec5ac172cee696293e83a936417d079e
data/.gitignore CHANGED
@@ -3,7 +3,8 @@
3
3
  /Gemfile.lock
4
4
  /_yardoc/
5
5
  /coverage/
6
- /doc/
7
6
  /pkg/
8
7
  /spec/reports/
9
8
  /tmp/
9
+
10
+ *.gem
@@ -1,7 +1,7 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - 2.1.0
4
+ - 2.1
5
5
  - 2.2.0
6
6
  - 2.3.3
7
7
  before_install: gem install bundler --pre
@@ -0,0 +1,7 @@
1
+ # 0.0.2
2
+
3
+ - #3 - Added option to specify scheme used for challenge url request
4
+
5
+ # 0.0.1
6
+
7
+ - Initial Release
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
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 = "http://#{domain}/"
110
+ url = "#{scheme}://#{domain}/"
111
111
  url += challenge.filename
112
112
  url += "/" if pretty_url?
113
113
  url
@@ -1,7 +1,7 @@
1
1
  module Jekyll
2
2
  module Gitlab
3
3
  module Letsencrypt
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
6
6
  end
7
7
  end
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.1
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-02-08 00:00:00.000000000 Z
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.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.