jekyll-newsletter 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -1
  3. data/lib/jekyll/newsletter.rb +1 -0
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ef3265eb0c0fb1640bdc076e51e2ed8ad5fda5e8c9e021ee45fd1bc26f542471
4
- data.tar.gz: ec57058138e12defed971cfe4b4321185ad2081bb34646169831613c9c719248
3
+ metadata.gz: 30be0e909beaec4ffd1070594b9d6d26a31c451afe96ec00976945628c933db0
4
+ data.tar.gz: 42133e06d31cdc2aa0fe9909af6572b55e910cfb61738d794dd49473201ed5c0
5
5
  SHA512:
6
- metadata.gz: f25e08ce0d21d726eb3c5cbf661f464bb60bb3808c792ab58f92560224d2feaa71dcfea739871a11885bb4ade0bb06a61f8a115d69d4f52996e3d33c18f51733
7
- data.tar.gz: 315178839fa98e294c55bcc20a0bff685e51fdb0e0ea8be6acb01e967be16f6697db79fd5d7c1391ba9dca7e6fe5b02ae022749915ba24cb5c2b949ea8989067
6
+ metadata.gz: 32965537bb6c0af23187f76e58ddb88b5bca82859b1fb7ee8ae09d61ab7d09c7226745303dde99d800eb3d32b598e1f906f5fe20053cf121c1625e8adab5fd9b
7
+ data.tar.gz: 2bf2c8e24ef94e097d90e49844f6be998a827851993ecf4d244f493732c4b7970442aa96aa46bb7e0bb6ac00bb60b8a892bef7352aaa8148400d1cc122fe6aa7
data/README.md CHANGED
@@ -39,9 +39,10 @@ newsletter:
39
39
  Environment variables:
40
40
 
41
41
  ```bash
42
+ JEKYLL_NEWSLETTER_FROM # If it's a secret address
43
+ JEKYLL_NEWSLETTER_TO # If it's a secret address
42
44
  JEKYLL_NEWSLETTER_USERNAME # Defaults to From address
43
45
  JEKYLL_NEWSLETTER_PASSWORD
44
- JEKYLL_NEWSLETTER_TO # If it's a secret address
45
46
  JEKYLL_ENV=production # Anything else will just output the email
46
47
  ```
47
48
 
@@ -66,6 +66,7 @@ module Jekyll
66
66
  @config ||= Jekyll::Utils.deep_merge_hashes(CONFIG,
67
67
  (site.config['newsletter'] || {}).transform_keys(&:to_sym)).tap do |config|
68
68
 
69
+ config[:from] ||= ENV['JEKYLL_NEWSLETTER_FROM']
69
70
  config[:to] = [config[:to]].flatten
70
71
  config[:to].concat(ENV['JEKYLL_NEWSLETTER_TO']&.split(',')&.map(&:strip) || [])
71
72
  config[:to].compact!
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-newsletter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - f
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-01 00:00:00.000000000 Z
11
+ date: 2021-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll