jekyll-scholar 6.4.0 → 6.5.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
  SHA256:
3
- metadata.gz: 9f08ad45a41f92d4a5c8b6884fc70ee5f158bed4f789bf01249bb85943b2143a
4
- data.tar.gz: 5e1fa10083f9ca4203ad3a5c0f1bf544c597faaa7965550f14f88c459f1bf5f3
3
+ metadata.gz: 53ccd7ae4c52e39622c5a4ce64c67c73472112109c4267eac20197f3a2fb23cb
4
+ data.tar.gz: 603f2df7070fff4b90ffee8716a28bb79dfd647a28b9619e2d83ce29ef2caad2
5
5
  SHA512:
6
- metadata.gz: ae4ce45a1cb1a87f67acac22aee9eefbc2877cb14f94b2589f0ccb3cdb9a356f47edc17a33edc3cbafa6ee2e9430216dc97b7ea9d55de7bec85901aa6226739d
7
- data.tar.gz: 9df55883635df57e77dd9b62faa3b18dfa745d01022141397361281758abee4d0a353d3782bd5b226744274d5c23c96ca97bebac084de67f612984062eeb7ce9
6
+ metadata.gz: dbaae7c9b3b7cd088466e5e6871e07d469abbdb126cfa0e72726d96075dc434cebbc8872c2b15730fcbb767ff9b97ad1da1be1c1373d8f098d52d1199b5ab951
7
+ data.tar.gz: ea232359c182161f33024c5922aeadc33db78c5c5b65b198a3d04b0b9cc5952521f034801defa51e673fe03bcb7d0e44cb324ab58f76b7a10e027c2679772c88
@@ -589,3 +589,52 @@ Feature: BibTeX
589
589
  Then the _site directory should exist
590
590
  And the "_site/test.html" file should exist
591
591
  And I should see "L’image de l’empereur en Gaule romaine" in "_site/test.html"
592
+ And I should see "Paris" in "_site/test.html"
593
+
594
+ Scenario: Simple Bibliography With Custom Template and Double Braces
595
+ Given I have a scholar configuration with:
596
+ | key | value |
597
+ | source | ./_bibliography |
598
+ | bibliography_template | <h1>{{entry.title}}</h1> |
599
+ And I have a "_bibliography" directory
600
+ And I have a file "_bibliography/references.bib":
601
+ """
602
+ @misc{x,
603
+ title = {{No Escape}},
604
+ year = {2019}
605
+ }
606
+ """
607
+ And I have a page "scholar.html":
608
+ """
609
+ ---
610
+ ---
611
+ {% bibliography %}
612
+ """
613
+ When I run jekyll
614
+ Then the _site directory should exist
615
+ And the "_site/scholar.html" file should exist
616
+ And I should see "<h1>No Escape</h1>" in "_site/scholar.html"
617
+
618
+ Scenario: Simple Bibliography With Custom Template and Raw BibTeX
619
+ Given I have a scholar configuration with:
620
+ | key | value |
621
+ | source | ./_bibliography |
622
+ | bibliography_template | <pre>{{entry.raw_bibtex}}</pre> |
623
+ And I have a "_bibliography" directory
624
+ And I have a file "_bibliography/references.bib":
625
+ """
626
+ @misc{x,
627
+ title = {{No Escape}},
628
+ year = {2019}
629
+ }
630
+ """
631
+ And I have a page "scholar.html":
632
+ """
633
+ ---
634
+ ---
635
+ {% bibliography %}
636
+ """
637
+ When I run jekyll
638
+ Then the _site directory should exist
639
+ And the "_site/scholar.html" file should exist
640
+ And I should see "{{No Escape}}" in "_site/scholar.html"
@@ -570,6 +570,8 @@ module Jekyll
570
570
  e['bibtex'] = tmp.to_s({ quotes: config['bibtex_quotes'] })
571
571
  end
572
572
 
573
+ e['raw_bibtex'] = "{%raw%}#{e['bibtex']}{%endraw%}"
574
+
573
575
  entry.fields.each do |key, value|
574
576
  value = value.convert(*bibtex_filters) unless bibtex_filters.empty?
575
577
  e[key.to_s] = value.to_s
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  class Scholar
3
- VERSION = '6.4.0'.freeze
3
+ VERSION = '6.5.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: 6.4.0
4
+ version: 6.5.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: 2019-11-18 00:00:00.000000000 Z
11
+ date: 2019-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -148,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
148
  - !ruby/object:Gem::Version
149
149
  version: 1.3.6
150
150
  requirements: []
151
- rubygems_version: 3.0.6
151
+ rubygems_version: 3.0.3
152
152
  signing_key:
153
153
  specification_version: 4
154
154
  summary: Jekyll extensions for the academic blogger.