jekyll-gitauthors 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/jekyll-gitauthors.gemspec +1 -1
- data/lib/jekyll-gitauthors.rb +18 -1
- 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: bfa41b4f866450beba3764f59151ef1ced1cba7d81d60aa3e16cdf756d08f7d1
|
4
|
+
data.tar.gz: 80b1b055e9ab2651c79b54ba8a653d5b233b57fce5a5b40cca52845bcc65e65c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9af326f64e5e8d173da8124bba40b39df4b734edc1a50940e32cb126958c1fabcc73c7729744b35bf90885e65314a39ac708251f1b9264fb540d74171126d6c
|
7
|
+
data.tar.gz: eb2c8bddc0922e0fc44bb88e55724b9ded940c5271082adfdcf42389386cd6a8d03c402c5a088792c6f53768e9985b6b770451b8a6cd66886eb651d5e3b5b0e9
|
data/.gitignore
CHANGED
data/jekyll-gitauthors.gemspec
CHANGED
data/lib/jekyll-gitauthors.rb
CHANGED
@@ -15,6 +15,23 @@ module Jekyll
|
|
15
15
|
`git log --pretty=format:"%an," #{lookup(context, 'page.path')} | sort | uniq`
|
16
16
|
end
|
17
17
|
end
|
18
|
+
class GitAuthorAllTag < Liquid::Tag
|
19
|
+
def initialize(tag_name, text, tokens)
|
20
|
+
super
|
21
|
+
@text = text
|
22
|
+
end
|
23
|
+
|
24
|
+
def lookup(context, name)
|
25
|
+
lookup = context
|
26
|
+
name.split(".").each { |value| lookup = lookup[value] }
|
27
|
+
lookup
|
28
|
+
end
|
29
|
+
|
30
|
+
def render(context)
|
31
|
+
`git log --pretty=format:"%an," . | sort | uniq`
|
32
|
+
end
|
33
|
+
end
|
18
34
|
end
|
19
35
|
|
20
|
-
Liquid::Template.register_tag('git_author', Jekyll::GitAuthorTag)
|
36
|
+
Liquid::Template.register_tag('git_author', Jekyll::GitAuthorTag)
|
37
|
+
Liquid::Template.register_tag('git_author_all', Jekyll::GitAuthorAllTag)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-gitauthors
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Green
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-06-
|
11
|
+
date: 2019-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|