letsencrypt_webfaction 2.2.0 → 2.2.1

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: 720148a070975d55b1b50b4fc1e987fe98ef1943
4
- data.tar.gz: 130323d83e8b3a85426ab7bbf08e47950a2296dc
3
+ metadata.gz: c590b0a45e8aff3a06c033469cd8865f3f2ab229
4
+ data.tar.gz: a23692c8443dca9cddff66e96fb9302a84c2cd71
5
5
  SHA512:
6
- metadata.gz: 472c79571beb51ed3654e34071872008470b116301eea63d1740b896e8a631029e4582e506a9ed0ffdbb3c4d3d207628200c0644c7e11896a9e1875acdac6184
7
- data.tar.gz: b25dc311e3a4097958fea417e183c41d635e8b5178f055b8c1ede981cd2467f429bfa21d0d295dcca8c5b2a848f4e67b5641f940d3d22bbfb1bb1d27f22724d2
6
+ metadata.gz: c0f00eb5e332f28a8ff4d64f00038243d917849ff3e57e871e78c0c21d500a99d2da351145fca630c72840e1e8768fd37866d2060407771e33b30607d69e401e
7
+ data.tar.gz: 2e7d7232dac737f2573834db8f5844d52ffbd58e52fc906555e4dba730eb87b9f106b439253afdeffd2142256b9deeb671de51b88b4e7d620d354472f9a2ce25
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ v2.2.1
2
+
3
+ * Fixes issue where older (pre-2.1.0) configs would have a string as the domain. Converts this to array internally.
4
+
1
5
  v2.2.0
2
6
 
3
7
  * Output helpful message on success unless `--quiet` flag is used. Fixes #86.
data/README.md CHANGED
@@ -167,9 +167,11 @@ Normally, you will run the script manually once to get the certificate, and then
167
167
  Your Cron task could look something like:
168
168
 
169
169
  # System Ruby Installation
170
- 0 4 1 */2 * PATH=$PATH:$GEM_HOME/bin:/usr/local/bin GEM_HOME=$HOME/.letsencrypt_webfaction/gems RUBYLIB=$GEM_HOME/lib ruby2.2 $HOME/.letsencrypt_webfaction/gems/bin/letsencrypt_webfaction --letsencrypt_account_email [you@youremail.com] --domains [yourdomain.com,www.yourdomain.com] --public ~/webapps/[yourapp/your_public_html]/
170
+ 0 4 1 */2 * PATH=$PATH:$GEM_HOME/bin:/usr/local/bin GEM_HOME=$HOME/.letsencrypt_webfaction/gems RUBYLIB=$GEM_HOME/lib ruby2.2 $HOME/.letsencrypt_webfaction/gems/bin/letsencrypt_webfaction --letsencrypt_account_email [you@youremail.com] --domains [yourdomain.com,www.yourdomain.com] --public ~/webapps/[yourapp/your_public_html]/ --quiet
171
171
  # RBEnv Installation
172
- 0 4 1 */2 * RBENV_ROOT=~/.rbenv RBENV_VERSION=2.3.1 ~/.rbenv/bin/rbenv exec letsencrypt_webfaction --letsencrypt_account_email [you@youremail.com] --domains [yourdomain.com,www.yourdomain.com] --public ~/webapps/[yourapp/your_public_html]/
172
+ 0 4 1 */2 * RBENV_ROOT=~/.rbenv RBENV_VERSION=2.3.1 ~/.rbenv/bin/rbenv exec letsencrypt_webfaction --letsencrypt_account_email [you@youremail.com] --domains [yourdomain.com,www.yourdomain.com] --public ~/webapps/[yourapp/your_public_html]/ --quiet
173
+
174
+ *Note the usage of `--quiet` to keep the success message from being shown and emailed.*
173
175
 
174
176
  This [would run](http://crontab.guru/#0_4_1_*/2_*) at 4 a.m. on the first day of January, March, May, July, September, and November. Certificates expire three months after issuance, so modify as desired (for example, you may want to run the task every two months initially, to be sure that everything is working before extending the period). Change the date of the Cron task so that WebFaction staff don't simultaneously receive all certificate change requests on the first day of the month.
175
177
 
@@ -1,3 +1,3 @@
1
1
  module LetsencryptWebfaction
2
- VERSION = '2.2.0'.freeze
2
+ VERSION = '2.2.1'.freeze
3
3
  end
@@ -80,7 +80,7 @@ module LetsencryptWebfaction
80
80
  config = YAML.load_file(config_path)
81
81
  FIELDS.each do |field|
82
82
  next unless config[field.identifier.to_s]
83
- instance_variable_set("@#{field.identifier}", config[field.identifier.to_s])
83
+ instance_variable_set("@#{field.identifier}", field.sanitize(config[field.identifier.to_s]))
84
84
  end
85
85
 
86
86
  @email_configuration = config['email_configuration'] || {}
@@ -29,6 +29,7 @@ module LetsencryptWebfaction
29
29
 
30
30
  class ListField < Field
31
31
  def sanitize(val)
32
+ return val if val.is_a?(Array)
32
33
  val.split(',').map(&:strip).compact
33
34
  end
34
35
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: letsencrypt_webfaction
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Johnston
@@ -30,7 +30,7 @@ cert_chain:
30
30
  Bgn1/q+P8H+/qkt6w5h8UzWYyXRlEjWvSJEjkNU0C05GQ0w0GFiqd62CgQty5xpa
31
31
  7M3NhWEjOZHE18Ro4Vy9CQCJxUasYC4JUMMQ9tQBW+vYIgHfBn0+xlw=
32
32
  -----END CERTIFICATE-----
33
- date: 2017-09-28 00:00:00.000000000 Z
33
+ date: 2017-10-01 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: acme-client
metadata.gz.sig CHANGED
Binary file