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: af9ff19d9ea7d16310bc06558e4b329108824820
4
- data.tar.gz: 435b1838c14226071eae1355fa3598e47f8332ba
3
+ metadata.gz: 1491ad3248dd3deb0686ee5178714f993802c962
4
+ data.tar.gz: f3f6a5f38a62bef1ccfd3f49f793c98afdb1e12d
5
5
  SHA512:
6
- metadata.gz: e9a4ac1706085d9cbaab36b4854c1ee705804597503adc301ff113c92dcb699b86ada18b685c37bc714fb22f3586e47a457a3650fa7257fd26e5a6ec9b19e935
7
- data.tar.gz: 472faef442ec507282e3c9c73db293cf7d07ff7369a6df464137d36e3edc0acdf7fdfaf96f9d3c84f769a3403b681d2146c31f166c3fb92e197876c7822d9ebb
6
+ metadata.gz: 925a96151b004291f800dcaf8aa56a39371fa02148aa8a8b41e0ac140935a67f7e56af49fe6dfb6767815b3618c52fc89c9bed0a55f6fdc74fbc0a42f803093f
7
+ data.tar.gz: 799a2addfe10f08f071b00689e3f381d442310c9beafd08f24f0f29cfbf74e17ac0d6d8cb79dd1fa1863c8ff6b48d95a8a6587599b911aba07c2e99b210be16b
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'jekyll-theme-open-project-helpers'
5
- s.version = '2.0.15'
5
+ s.version = '2.0.16'
6
6
  s.authors = ['Ribose Inc.']
7
7
  s.email = ['open.source@ribose.com']
8
8
 
@@ -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
- email = post.data['author']['email']
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.15
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-22 00:00:00.000000000 Z
11
+ date: 2019-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll