jekyll-scholar 5.0.0 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/features/bibtex.feature +3 -4
- data/lib/jekyll/scholar/utilities.rb +8 -0
- data/lib/jekyll/scholar/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b89b319b1a74b70f0621b549f836794043944bd2
|
|
4
|
+
data.tar.gz: 1ba365670b11446bd29302f562c7469bb350ff29
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b82a59ebcac27fc92d7f718249c3a3abc1af3dfc385ed499bd714adab3c48fccbbd761860da5dc9202cb7b7290d181302017a76afcb6eca7eedfe933e3d5cabc
|
|
7
|
+
data.tar.gz: 36ce4960c6df747fb20102f79351d5103aa6052f0d773f9b56aac78edcd2218ae441d54e17daa929a6050f2ae696f868b3f9830b0eae6b9be8d8a8c77f36e381
|
data/features/bibtex.feature
CHANGED
|
@@ -115,12 +115,12 @@ Feature: BibTeX
|
|
|
115
115
|
And the "_site/scholar.html" file should exist
|
|
116
116
|
And I should see "<i>The Ruby Programming Language</i>" in "_site/scholar.html"
|
|
117
117
|
|
|
118
|
-
@tags @bibliography @config
|
|
118
|
+
@tags @bibliography @config @template
|
|
119
119
|
Scenario: Simple Bibliography With Custom Template
|
|
120
120
|
Given I have a scholar configuration with:
|
|
121
121
|
| key | value |
|
|
122
122
|
| source | ./_bibliography |
|
|
123
|
-
| bibliography_template | <abbr>{{index}} {{entry.type}} [{{key}}]</abbr>{{
|
|
123
|
+
| bibliography_template | <abbr>{{index}} {{entry.type}} [{{key}}]</abbr>{{entry.author_1_last}} |
|
|
124
124
|
And I have a "_bibliography" directory
|
|
125
125
|
And I have a file "_bibliography/references.bib":
|
|
126
126
|
"""
|
|
@@ -140,8 +140,7 @@ Feature: BibTeX
|
|
|
140
140
|
When I run jekyll
|
|
141
141
|
Then the _site directory should exist
|
|
142
142
|
And the "_site/scholar.html" file should exist
|
|
143
|
-
And I should see "<
|
|
144
|
-
And I should see "<abbr>1 book \[ruby\]</abbr><span" in "_site/scholar.html"
|
|
143
|
+
And I should see "<abbr>1 book \[ruby\]</abbr>Matsumoto" in "_site/scholar.html"
|
|
145
144
|
|
|
146
145
|
@tags @filter
|
|
147
146
|
Scenario: Filtered Bibliography Loaded From Default Directory
|
|
@@ -325,6 +325,14 @@ module Jekyll
|
|
|
325
325
|
entry.fields.each do |key, value|
|
|
326
326
|
value = value.convert(*bibtex_filters) unless bibtex_filters.empty?
|
|
327
327
|
e[key.to_s] = value.to_s
|
|
328
|
+
|
|
329
|
+
if value.is_a?(BibTeX::Names)
|
|
330
|
+
value.each.with_index do |name, idx|
|
|
331
|
+
name.each_pair do |k, v|
|
|
332
|
+
e["#{key}_#{idx}_#{k}"] = v.to_s
|
|
333
|
+
end
|
|
334
|
+
end
|
|
335
|
+
end
|
|
328
336
|
end
|
|
329
337
|
|
|
330
338
|
e
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-scholar
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.
|
|
4
|
+
version: 5.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sylvester Keil
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-11-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|