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.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/lib/jekyll/newsletter.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30be0e909beaec4ffd1070594b9d6d26a31c451afe96ec00976945628c933db0
|
4
|
+
data.tar.gz: 42133e06d31cdc2aa0fe9909af6572b55e910cfb61738d794dd49473201ed5c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/lib/jekyll/newsletter.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2021-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|