jekyll-scholar 5.0.0 → 5.1.0

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: c1a9174d59f0edc15f40cf4b9add6ff620fdfb96
4
- data.tar.gz: 67ae1aacef4d60a65bf1ed094fdb355da2a9081e
3
+ metadata.gz: b89b319b1a74b70f0621b549f836794043944bd2
4
+ data.tar.gz: 1ba365670b11446bd29302f562c7469bb350ff29
5
5
  SHA512:
6
- metadata.gz: 4c4fa55fe3ace0b47f34d079292f025967d9c8fea72fd925176286a8f7a215f8adfbf73ef46803ec8c2bfac698bde610acf977d2623c165a4c64ef3d724ff591
7
- data.tar.gz: f68ca2a4f8bce0bfb77e5826a651577e2a35640662a47c0930b675621f69201fb4ba4b6e45dd62786ecf4c1e5c4874eec27d34ad42610a3111db6a7755c8e5fb
6
+ metadata.gz: b82a59ebcac27fc92d7f718249c3a3abc1af3dfc385ed499bd714adab3c48fccbbd761860da5dc9202cb7b7290d181302017a76afcb6eca7eedfe933e3d5cabc
7
+ data.tar.gz: 36ce4960c6df747fb20102f79351d5103aa6052f0d773f9b56aac78edcd2218ae441d54e17daa929a6050f2ae696f868b3f9830b0eae6b9be8d8a8c77f36e381
@@ -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>{{reference}} |
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 "<i>The Ruby Programming Language</i>" in "_site/scholar.html"
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
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  class Scholar
3
- VERSION = '5.0.0'.freeze
3
+ VERSION = '5.1.0'.freeze
4
4
  end
5
5
  end
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.0.0
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-10-27 00:00:00.000000000 Z
11
+ date: 2015-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll