jekyll-theme-open-project-helpers 2.0.15 → 2.0.16
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1491ad3248dd3deb0686ee5178714f993802c962
|
4
|
+
data.tar.gz: f3f6a5f38a62bef1ccfd3f49f793c98afdb1e12d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 925a96151b004291f800dcaf8aa56a39371fa02148aa8a8b41e0ac140935a67f7e56af49fe6dfb6767815b3618c52fc89c9bed0a55f6fdc74fbc0a42f803093f
|
7
|
+
data.tar.gz: 799a2addfe10f08f071b00689e3f381d442310c9beafd08f24f0f29cfbf74e17ac0d6d8cb79dd1fa1863c8ff6b48d95a8a6587599b911aba07c2e99b210be16b
|
@@ -1,3 +1,12 @@
|
|
1
|
+
def process_author(author)
|
2
|
+
email = author['email']
|
3
|
+
hash = Digest::MD5.hexdigest(email)
|
4
|
+
author['email'] = hash
|
5
|
+
author['plaintext_email'] = email
|
6
|
+
author
|
7
|
+
end
|
8
|
+
|
9
|
+
|
1
10
|
module Jekyll
|
2
11
|
module OpenProjectHelpers
|
3
12
|
|
@@ -47,11 +56,15 @@ module Jekyll
|
|
47
56
|
# suitable for hotlinking authors’ Gravatar profile pictures.
|
48
57
|
posts_combined = posts_combined.sort_by(&:date).reverse.map do |post|
|
49
58
|
if post.data.key? 'author'
|
50
|
-
|
51
|
-
hash = Digest::MD5.hexdigest(email)
|
52
|
-
post.data['author']['email'] = hash
|
53
|
-
post.data['author']['plaintext_email'] = email
|
59
|
+
process_author(post.data['author'])
|
54
60
|
end
|
61
|
+
|
62
|
+
if post.data.key? 'authors'
|
63
|
+
post.data['authors'].map do |author|
|
64
|
+
process_author(author)
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
55
68
|
post
|
56
69
|
end
|
57
70
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-open-project-helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|