jekyll-gitlab-letsencrypt 0.3.0 → 0.4.0

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: 8077836262a44842ecedb9e2f4d2b9867e762739
4
- data.tar.gz: 583f08998de45b2126e9645d470c0ffa2e9c7a46
3
+ metadata.gz: 79378ccf5c1ca836797f30d679431a9376f84bb2
4
+ data.tar.gz: c96ee95aa011835934dc5530b3c27f5c868e059d
5
5
  SHA512:
6
- metadata.gz: 73d66711574fc5a45b6368f17317f35dc8775757cccebac1717593efe8cdaaf530dcabf35260e6058f110bb46abfddfe9bf1574bd186ec5f502b3026aa6dbea1
7
- data.tar.gz: 9d4ef45e01dfba73b32322acba2e81e2cfd06cd12d86c9cf14be938790708fa2499a8cac2ae92bb4867c1c69a2cc6d7b70cb01fc4287f8f6ce71b794bd0789ff
6
+ metadata.gz: ee2d248cd6eaf23e877d60204e5ce6da05e6362afe0af1bc4330dbb67b13c0c7377bb7ee208abd034e647907ea0f5faaf5560fe36ecbc30734ede4e2f2089839
7
+ data.tar.gz: d0470fed12427e434a4091894a611f77dfcf07faac825a9d24998b0f266cf15767cb25b9fe4717a67b4dafcce463dd8e4580e4c7b66e02e2a5ff9957493e2ef9
@@ -2,6 +2,19 @@ sudo: false
2
2
  language: ruby
3
3
  rvm:
4
4
  - 2.1
5
- - 2.2.0
6
- - 2.3.3
7
- before_install: gem install bundler --pre
5
+ - 2.2
6
+ - 2.3
7
+ - 2.4
8
+ - 2.5
9
+ env:
10
+ - JEKYLL_VERSION=3.3.1
11
+ - JEKYLL_VERSION=3.4.5
12
+ - JEKYLL_VERSION=3.5.2
13
+ - JEKYLL_VERSION=3.6.3
14
+ - JEKYLL_VERSION=3.7.4
15
+ - JEKYLL_VERSION=3.8.5
16
+ matrix:
17
+ allow_failures:
18
+ - rvm: 2.1 # Jekyll doesn't support 2.1.x itself -> https://github.com/jekyll/jekyll/pull/6623
19
+ before_install:
20
+ - echo "gem \"jekyll\", \"$JEKYLL_VERSION\"" >> Gemfile
@@ -1,3 +1,9 @@
1
+ # 0.4.0
2
+
3
+ - Updated travis testing matrix
4
+ - #21 - Add commit message configuration option
5
+ - Thanks to @daehlith !
6
+
1
7
  # 0.3.0
2
8
 
3
9
  - #17 - Check for repo id fetch request status
data/README.md CHANGED
@@ -25,7 +25,9 @@ You must have:
25
25
 
26
26
  Versions supported:
27
27
  - Jekyll 3+
28
+ - 3.3.x - 3.8.x is tested against
28
29
  - Ruby 2.1+
30
+ - Although 2.2+ recommend, as Jekyll itself doesn't support 2.1
29
31
 
30
32
  ### Installation
31
33
 
@@ -67,11 +69,12 @@ gitlab-letsencrypt:
67
69
  delay_time: 15 # How long to wait between each check once it starts looking for the file
68
70
 
69
71
  # Optional settings you probably don't need:
70
- gitlab_url: 'https://someurl' # Set if you need to use a self-hosted GitLab instance
71
- endpoint: 'https://somewhere' # if you're doing the ACME thing outside of letsencrypt
72
- branch: 'master' # Defaults to master, but you can use a different branch
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
+ gitlab_url: 'https://someurl' # Set if you need to use a self-hosted GitLab instance
73
+ endpoint: 'https://somewhere' # if you're doing the ACME thing outside of letsencrypt
74
+ branch: 'master' # Defaults to master, but you can use a different branch
75
+ layout: 'null' # Layout to use for challenge file - defaults to null, but you can change if needed
76
+ scheme: 'https' # Scheme to use for challenge request; default http
77
+ commit_message: 'Renew certificate [ROBOT]' # Commit message to use; defaults to "Automated Let's Encrypt renewal"
75
78
  ```
76
79
 
77
80
  ### Running
@@ -114,3 +117,6 @@ MIT
114
117
  - :heart: Gitlab for free page hosting, free repos, and free CI!
115
118
  - :heart: the Jekyll team for the easy-to-use blogging engine!
116
119
  - Inspired by the excellent [gitlab-letsencrypt](https://github.com/rolodato/gitlab-letsencrypt) npm package.
120
+ - Thanks to contributors:
121
+ - @ethernet-zero
122
+ - @daehlith
@@ -13,6 +13,7 @@ module Jekyll
13
13
  DEFAULT_DELAY_TIME = 15
14
14
  DEFAULT_SCHEME = 'http'
15
15
  DEFAULT_GITLAB_URL = 'https://gitlab.com'
16
+ DEFAULT_COMMIT_MESSAGE = "Automated Let's Encrypt renewal"
16
17
 
17
18
  REQUIRED_KEYS = %w{gitlab_repo email domain}
18
19
 
@@ -85,6 +86,10 @@ module Jekyll
85
86
  def jekyll_config
86
87
  @jekyll_config ||= (Jekyll.configuration({})['gitlab-letsencrypt'] || {})
87
88
  end
89
+
90
+ def commit_message
91
+ jekyll_config['commit_message'] || DEFAULT_COMMIT_MESSAGE
92
+ end
88
93
  end
89
94
  end
90
95
  end
@@ -7,7 +7,7 @@ module Jekyll
7
7
 
8
8
  attr_accessor :content
9
9
 
10
- delegate :filename, :personal_access_token, :gitlab_url, :gitlab_repo, :branch, :domain, to: Configuration
10
+ delegate :filename, :personal_access_token, :gitlab_url, :gitlab_repo, :branch, :domain, :commit_message, to: Configuration
11
11
 
12
12
  def commit!(content)
13
13
  @content = content
@@ -43,7 +43,7 @@ module Jekyll
43
43
  connection.run_request(request_method_for_commit, nil, nil, nil) do |req|
44
44
  req.url "projects/#{repo_id}/repository/files/#{enc_filename}"
45
45
  req.body = {
46
- commit_message: "Automated Let's Encrypt renewal",
46
+ commit_message: commit_message,
47
47
  branch: branch,
48
48
  content: content
49
49
  }.to_json
@@ -1,7 +1,7 @@
1
1
  module Jekyll
2
2
  module Gitlab
3
3
  module Letsencrypt
4
- VERSION = "0.3.0"
4
+ VERSION = "0.4.0"
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.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Aiken
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-11 00:00:00.000000000 Z
11
+ date: 2018-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler