jekyll-scholar 6.7.0 → 6.8.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: 7d41078acb5e68890960f62592839d27cf1fac7d305f41dac27fedf556f1c62d
4
- data.tar.gz: 5a00d7a0c00455a47ccd56b0e9584bdf16811baf4a90f126c05de1b02de975ee
3
+ metadata.gz: 9003e905d46343a563b51568a93777e2fda49ede94e0cf34f0efc326eff8d6f8
4
+ data.tar.gz: cc3020a8bd67e1ae7e1a7d069b47c3ffa359dd22f003ab05e7ea15d3fcc66b34
5
5
  SHA512:
6
- metadata.gz: f9fafa23f51a0e6790e547271ec26707455beacdfddac3780a83cbd06af5bd6ab42aae3f4a056f3c44323d93758a8c6dc3f4b6f01762f9fea311b4c05b8fa45c
7
- data.tar.gz: f9682cccf0b8bea4248b56702dc0e6349b5e5dfcfc074319bfa88bddfc1de2a841f7c49ec57e895dbb747e5c8e04e0600739cb67b2cc299d239904dc593d2794
6
+ metadata.gz: 4d297673512e24ba530830d62ae7c3ff89a3a6360593f6bb0cda41ad93e4a64276576ed4d05d47283b66d6825ef9a399f970b01bc616eb5f3bf1aa83794a9978
7
+ data.tar.gz: 57901b71b3ac3c289b19d8c60167593a08928f6a2d8c9608456806e0bab8d5e22e181e2ba547fe9f9db8cbb5e76c0132e9c71205115454355829a7efe6787a9d
@@ -1,6 +1,5 @@
1
1
  module Jekyll
2
2
  class Scholar
3
-
4
3
  class BibliographyTag < Liquid::Tag
5
4
  include Scholar::Utilities
6
5
 
@@ -34,7 +33,7 @@ module Jekyll
34
33
  def render_groups(groups)
35
34
  def group_renderer(groupsOrItems,keys,order,tags)
36
35
  if keys.count == 0
37
- renderer(true)
36
+ csl_renderer(true)
38
37
  render_items(groupsOrItems)
39
38
  else
40
39
  groupsOrItems
@@ -1,6 +1,5 @@
1
1
  module Jekyll
2
2
  class Scholar
3
-
4
3
  class BibTeXTag < Liquid::Block
5
4
  include Scholar::Utilities
6
5
 
@@ -15,16 +14,13 @@ module Jekyll
15
14
 
16
15
  def render(context)
17
16
  set_context_to context
18
-
17
+
19
18
  BibTeX.parse(super, bibtex_options).map { |entry|
20
19
  reference_tag entry
21
-
22
20
  }.join("\n")
23
21
  end
24
22
  end
25
-
26
23
  end
27
24
  end
28
25
 
29
26
  Liquid::Template.register_tag('bibtex', Jekyll::Scholar::BibTeXTag)
30
-
@@ -662,15 +662,15 @@ module Jekyll
662
662
  config['details_dir']
663
663
  end
664
664
 
665
- def renderer(force = false)
666
- return @renderer if @renderer && !force
665
+ def csl_renderer(force = false)
666
+ return @csl_renderer if @csl_renderer && !force
667
667
 
668
- @renderer = CiteProc::Ruby::Renderer.new :format => 'html',
668
+ @csl_renderer = CiteProc::Ruby::Renderer.new :format => 'html',
669
669
  :style => style, :locale => config['locale']
670
670
  end
671
671
 
672
672
  def render_citation(items)
673
- renderer.render items.zip(locators.zip(labels)).map { |entry, (locator, label)|
673
+ csl_renderer.render items.zip(locators.zip(labels)).map { |entry, (locator, label)|
674
674
  cited_keys << entry.key
675
675
  cited_keys.uniq!
676
676
 
@@ -684,17 +684,17 @@ module Jekyll
684
684
 
685
685
  def render_bibliography(entry, index = nil)
686
686
  begin
687
- original_locale, renderer.locale =
688
- renderer.locale, locales(entry.language)
687
+ original_locale = csl_renderer.locale
688
+ csl_renderer.locale = locales(entry.language)
689
689
  rescue
690
690
  # Locale failed to load; just use original one!
691
691
  end if allow_locale_overrides? &&
692
- entry['language'] != renderer.locale.language
692
+ entry['language'] != csl_renderer.locale.language
693
693
 
694
- renderer.render citation_item_for(entry, index),
694
+ csl_renderer.render citation_item_for(entry, index),
695
695
  styles(style).bibliography
696
696
  ensure
697
- renderer.locale = original_locale unless original_locale.nil?
697
+ csl_renderer.locale = original_locale unless original_locale.nil?
698
698
  end
699
699
 
700
700
  def citation_item_for(entry, citation_number = nil)
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  class Scholar
3
- VERSION = '6.7.0'.freeze
3
+ VERSION = '6.8.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.7.0
4
+ version: 6.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylvester Keil
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-26 00:00:00.000000000 Z
11
+ date: 2020-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -135,7 +135,7 @@ homepage: http://github.com/inukshuk/jekyll-scholar
135
135
  licenses:
136
136
  - MIT
137
137
  metadata: {}
138
- post_install_message:
138
+ post_install_message:
139
139
  rdoc_options: []
140
140
  require_paths:
141
141
  - lib
@@ -151,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  version: 1.3.6
152
152
  requirements: []
153
153
  rubygems_version: 3.1.2
154
- signing_key:
154
+ signing_key:
155
155
  specification_version: 4
156
156
  summary: Jekyll extensions for the academic blogger.
157
157
  test_files: